On 2/22/22 9:05 PM, Christoph Hellwig wrote: > Allow to pass a remap argument to the swiotlb initialization functions > to handle the Xen/x86 remap case. ARM/ARM64 never did any remapping > from xen_swiotlb_fixup, so we don't even need that quirk. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > arch/arm/xen/mm.c | 23 +++--- > arch/x86/include/asm/xen/page.h | 5 -- > arch/x86/kernel/pci-dma.c | 27 ++++--- > arch/x86/pci/sta2x11-fixup.c | 2 +- > drivers/xen/swiotlb-xen.c | 128 +------------------------------- > include/linux/swiotlb.h | 7 +- > include/xen/arm/page.h | 1 - > include/xen/swiotlb-xen.h | 8 +- > kernel/dma/swiotlb.c | 120 +++++++++++++++--------------- > 9 files changed, 102 insertions(+), 219 deletions(-) checkpatch.pl has some warnings here. ERROR: trailing whitespace #151: FILE: arch/x86/kernel/pci-dma.c:217: + $ WARNING: please, no spaces at the start of a line #151: FILE: arch/x86/kernel/pci-dma.c:217: + $ total: 1 errors, 1 warnings, 470 lines checked