swiotlb: add a SWIOTLB_ANY flag to lift the low memory restriction
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:36:57 +0000 (13:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 05:21:12 +0000 (07:21 +0200)
commit8ba2ed1be90fc210126f68186564707478552c95
tree60e45049a4f38cc20ca83bc77af9495ddc9944f0
parentc6af2aa9ffc9763826607bc2664ef3ea4475ed18
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>
arch/powerpc/include/asm/svm.h
arch/powerpc/include/asm/swiotlb.h
arch/powerpc/kernel/dma-swiotlb.c
arch/powerpc/mm/mem.c
arch/powerpc/platforms/pseries/svm.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c