diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-29 17:27:33 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:21:11 +0200 |
commit | c6af2aa9ffc9763826607bc2664ef3ea4475ed18 (patch) | |
tree | a317bf9fea869ed4555759c155f0a95dc9a2cd95 /arch/mips/cavium-octeon | |
parent | a3e230926708125205ffd06d3dc2175a8263ae7e (diff) | |
download | lwn-c6af2aa9ffc9763826607bc2664ef3ea4475ed18.tar.gz lwn-c6af2aa9ffc9763826607bc2664ef3ea4475ed18.zip |
swiotlb: make the swiotlb_init interface more useful
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>
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r-- | arch/mips/cavium-octeon/dma-octeon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/dma-octeon.c b/arch/mips/cavium-octeon/dma-octeon.c index fb7547e21726..9fbba6a8fa4c 100644 --- a/arch/mips/cavium-octeon/dma-octeon.c +++ b/arch/mips/cavium-octeon/dma-octeon.c @@ -235,5 +235,5 @@ void __init plat_swiotlb_setup(void) #endif swiotlb_adjust_size(swiotlbsize); - swiotlb_init(1); + swiotlb_init(true, SWIOTLB_VERBOSE); } |