diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-28 12:36:57 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:21:12 +0200 |
commit | 8ba2ed1be90fc210126f68186564707478552c95 (patch) | |
tree | 60e45049a4f38cc20ca83bc77af9495ddc9944f0 /arch/powerpc/include/asm/swiotlb.h | |
parent | swiotlb: make the swiotlb_init interface more useful (diff) | |
download | linux-8ba2ed1be90fc210126f68186564707478552c95.tar.xz linux-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/include/asm/swiotlb.h')
-rw-r--r-- | arch/powerpc/include/asm/swiotlb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/swiotlb.h b/arch/powerpc/include/asm/swiotlb.h index 3c1a1cd16128..4203b5e0a88e 100644 --- a/arch/powerpc/include/asm/swiotlb.h +++ b/arch/powerpc/include/asm/swiotlb.h @@ -9,6 +9,7 @@ #include <linux/swiotlb.h> extern unsigned int ppc_swiotlb_enable; +extern unsigned int ppc_swiotlb_flags; #ifdef CONFIG_SWIOTLB void swiotlb_detect_4g(void); |