[PATCH v5 2/6] dma: swiotlb: Track whether the pool size was explicitly set
Catalin Marinas
catalin.marinas at arm.com
Mon Sep 21 05:50:10 PDT 2026
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 at kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list