[RFC PATCH v2 0/2] dma: swiotlb: Centralize default pool sizing
From: "Aneesh Kumar K.V (Arm)" <aneesh.kumar@kernel.org>
Date: 2026-08-13 10:25:50
Also in:
linux-arm-kernel, linux-coco, linux-iommu, linux-s390, lkml
Hi, This series centralizes swiotlb default-pool initialization and sizing. The first patch replaces the addressing-limit argument with initialization flags. It also moves the reduced kmalloc-bounce sizing policy into the swiotlb core. The second patch centralizes swiotlb sizing for memory-encrypted systems. It moves the existing x86 guest-sizing policy into the core. Host memory encryption retains the normal pool size. A shared default pool is not needed when a restricted DMA pool is present. SWIOTLB_INIT_CC_SHARED keeps the first patch self-contained. It is removed by the second patch when the policy moves into the core. This series is based on the dma-mapping-for-next branch of: https://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git Aneesh Kumar K.V (Arm) (2): dma: swiotlb: Centralize default pool initialization and sizing dma: swiotlb: Initialize and size shared default pools for memory encryption arch/arm/mm/init.c | 6 +- arch/arm64/mm/init.c | 14 +--- arch/loongarch/kernel/setup.c | 2 +- arch/mips/cavium-octeon/dma-octeon.c | 2 +- arch/mips/loongson64/dma.c | 2 +- arch/mips/sibyte/common/dma.c | 2 +- arch/powerpc/kernel/dma-swiotlb.c | 4 +- arch/powerpc/mm/mem.c | 15 +++- arch/powerpc/platforms/pseries/svm.c | 10 --- arch/powerpc/sysdev/fsl_pci.c | 1 + arch/riscv/mm/init.c | 18 +---- arch/s390/mm/init.c | 2 +- arch/x86/include/asm/iommu.h | 2 + arch/x86/kernel/amd_gart_64.c | 1 + arch/x86/kernel/pci-dma.c | 17 +++-- arch/x86/mm/mem_encrypt.c | 24 ------ include/linux/swiotlb.h | 10 ++- kernel/dma/swiotlb.c | 110 ++++++++++++++++++++++----- 18 files changed, 146 insertions(+), 96 deletions(-) -- 2.43.0