From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE6BE499F0B; Mon, 21 Sep 2026 12:52:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789995160; cv=none; b=mrNW4nA6Nt642Mfud0JKTnmZhJLtjHI7c82zPfoNhTfohldSdCqkRMirDDUS2GGBOHrQYvrZxJPYyw/yIqW64l5tvOWdo0oIv+dzW7n5w8v9JlTw8qFq2yBfTFD3epdq07HT6RXei5NkSAxMYsvM7Ft/TYCUbmBcx1V0KlBRkkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789995160; c=relaxed/simple; bh=K/50ZomrN1bFLTBeeVPhJwuc1yciBmPSu8YX6Qsus9I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=empT3pxpSk6g9t9ko6NsLB/T/+FhS3RHtuhLtVyVsicr0QhK7oZMMiRvEelP0rKGVfeJHN/GwdPw9b0Z5S1BlGRYlv7XiZMnEqSVFg6H9fQ5fNfV9ksawc7QwvyTbc3x3nXxSg85q6tauV0UTVeLYh95OsqyjX/ZWkFKrHk2u6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=UFZe4bpR; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="UFZe4bpR" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B2F87176C; Mon, 21 Sep 2026 05:52:34 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B7E673F86C; Mon, 21 Sep 2026 05:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789995158; bh=K/50ZomrN1bFLTBeeVPhJwuc1yciBmPSu8YX6Qsus9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UFZe4bpR5E17t5D1Lm9j6zlnOoMKygimSB1DPY+3+q0C6iJgg+EiBHxg6xnrKV8uS ne9l4ZgvIvWxD6dQ7eM1P+nFVo3S70EXtWpP4Lh2XJhn7wUJFW+NV19QrXwjpC/RJ4 gyNTyjuCs5XZdDcvhmAKMYX8J4AXAbctL+YOlquU= Date: Mon, 21 Sep 2026 13:52:28 +0100 From: Catalin Marinas To: "Aneesh Kumar K.V (Arm)" Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Jiri Pirko , Jason Gunthorpe , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Russell King , Huacai Chen , Thomas Bogendoerfer , Jiaxun Yang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v5 3/6] dma: swiotlb: Centralize minimal pool sizing Message-ID: References: <20260921063628.362078-1-aneesh.kumar@kernel.org> <20260921063628.362078-4-aneesh.kumar@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260921063628.362078-4-aneesh.kumar@kernel.org> On Mon, Sep 21, 2026 at 12:06:25PM +0530, Aneesh Kumar K.V (Arm) wrote: > A default SWIOTLB pool used only for unaligned kmalloc bouncing can be > smaller than one required for limited DMA addressing. Arm64 and RISC-V > currently implement this sizing independently, using 1 MiB of SWIOTLB > space per GiB of RAM. > > The SWIOTLB core now identifies this case with SWIOTLB_POOL_MINIMAL. > Size that policy in swiotlb_adjust_pool_size() and remove the > architecture-specific adjustments. > > Explicit swiotlb= sizing remains unchanged because swiotlb_adjust_size() > preserves a user-configured size. > > Signed-off-by: Aneesh Kumar K.V (Arm) Reviewed-by: Catalin Marinas