diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-28 13:36:57 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:21:12 +0200 |
commit | 8ba2ed1be90fc210126f68186564707478552c95 (patch) | |
tree | 60e45049a4f38cc20ca83bc77af9495ddc9944f0 /arch/powerpc/mm/mem.c | |
parent | c6af2aa9ffc9763826607bc2664ef3ea4475ed18 (diff) | |
download | lwn-8ba2ed1be90fc210126f68186564707478552c95.tar.gz lwn-8ba2ed1be90fc210126f68186564707478552c95.zip |
swiotlb: add a SWIOTLB_ANY flag to lift the low memory restriction
Power SVM wants to allocate a swiotlb buffer that is not restricted to
low memory for the trusted hypervisor scheme. Consolidate the support
for this into the swiotlb_init interface by adding a new flag.
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/powerpc/mm/mem.c')
-rw-r--r-- | arch/powerpc/mm/mem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 74ca516c3e7e..46fb78e3bb36 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -249,10 +249,7 @@ void __init mem_init(void) * back to to-down. */ memblock_set_bottom_up(true); - if (is_secure_guest()) - svm_swiotlb_init(); - else - swiotlb_init(ppc_swiotlb_enable, 0); + swiotlb_init(ppc_swiotlb_enable, ppc_swiotlb_flags); #endif high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); |