diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-29 18:27:33 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 08:21:11 +0300 |
commit | c6af2aa9ffc9763826607bc2664ef3ea4475ed18 (patch) | |
tree | a317bf9fea869ed4555759c155f0a95dc9a2cd95 /arch/s390/mm/init.c | |
parent | a3e230926708125205ffd06d3dc2175a8263ae7e (diff) | |
download | linux-c6af2aa9ffc9763826607bc2664ef3ea4475ed18.tar.xz |
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/s390/mm/init.c')
-rw-r--r-- | arch/s390/mm/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 86ffd0d51fd5..6fb6bf64326f 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -185,8 +185,7 @@ static void pv_init(void) return; /* make sure bounce buffers are shared */ - swiotlb_force = SWIOTLB_FORCE; - swiotlb_init(1); + swiotlb_init(true, SWIOTLB_FORCE | SWIOTLB_VERBOSE); swiotlb_update_mem_attributes(); } |