[PATCH 08/11] swiotlb: make the swiotlb_init interface more useful

Christophe Leroy christophe.leroy at csgroup.eu
Sun Feb 27 10:15:23 PST 2022



Le 27/02/2022 à 15:30, Christoph Hellwig a écrit :
> Pass a bool to pass 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 using swiotlb=force 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 at lst.de>
> ---
>   arch/arm/mm/init.c                     |  6 +----
>   arch/arm64/mm/init.c                   |  6 +----
>   arch/ia64/mm/init.c                    |  4 +--
>   arch/mips/cavium-octeon/dma-octeon.c   |  2 +-
>   arch/mips/loongson64/dma.c             |  2 +-
>   arch/mips/sibyte/common/dma.c          |  2 +-
>   arch/powerpc/include/asm/swiotlb.h     |  1 +
>   arch/powerpc/mm/mem.c                  |  3 ++-

arch/powerpc/mm/mem.o:(.toc+0x0): undefined reference to `ppc_swiotlb_flags'
make[1]: *** [vmlinux] Error 1
/linux/Makefile:1155: recipe for target 'vmlinux' failed


>   arch/powerpc/platforms/pseries/setup.c |  3 ---
>   arch/riscv/mm/init.c                   |  8 +-----
>   arch/s390/mm/init.c                    |  3 +--
>   arch/x86/kernel/cpu/mshyperv.c         |  8 ------
>   arch/x86/kernel/pci-dma.c              | 15 ++++++-----
>   arch/x86/mm/mem_encrypt_amd.c          |  3 ---
>   drivers/xen/swiotlb-xen.c              |  4 +--
>   include/linux/swiotlb.h                | 15 ++++++-----
>   include/trace/events/swiotlb.h         | 29 ++++++++-------------
>   kernel/dma/swiotlb.c                   | 35 ++++++++++++++------------
>   18 files changed, 56 insertions(+), 93 deletions(-)
> 


More information about the linux-riscv mailing list