Thread (20 messages) 20 messages, 3 authors, 8d ago

Re: [PATCH v5 2/6] dma: swiotlb: Track whether the pool size was explicitly set

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2026-09-21 12:50:28
Also in: linux-iommu, linux-mips, linux-riscv, linux-s390, linuxppc-dev, lkml, loongarch

On Mon, Sep 21, 2026 at 12:06:24PM +0530, Aneesh Kumar K.V (Arm) wrote:
swiotlb_adjust_size() must not override a pool size supplied through the
swiotlb= command-line parameter.

Currently, it determines whether a size was supplied by comparing
default_nslabs with IO_TLB_DEFAULT_SIZE. This fails when the user
explicitly requests the compiled-in default size, allowing the request
to be overwritten by automatic pool sizing.

Record whether swiotlb= supplied a numeric size and add
swiotlb_default_size_changed() to query that state.

Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help