mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
c6af2aa9ff
Pass a boolean flag to indicate if swiotlb needs to be enabled based on the addressing needs, and replace the verbose argument with a set of flags, including one to force enable bounce buffering. Note that this patch removes the possibility to force xen-swiotlb use with the swiotlb=force parameter on the command line on x86 (arm and arm64 never supported that), but this interface will be restored shortly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
14 lines
268 B
C
14 lines
268 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* DMA support for Broadcom SiByte platforms.
|
|
*
|
|
* Copyright (c) 2018 Maciej W. Rozycki
|
|
*/
|
|
|
|
#include <linux/swiotlb.h>
|
|
#include <asm/bootinfo.h>
|
|
|
|
void __init plat_swiotlb_setup(void)
|
|
{
|
|
swiotlb_init(true, SWIOTLB_VERBOSE);
|
|
}
|