Re: [PATCH v5 2/6] dma: swiotlb: Track whether the pool size was explicitly set
From: Catalin Marinas
Date: Mon Sep 21 2026 - 09:40:04 EST
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@xxxxxxxxxx>
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>