From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 46B22C982D6 for ; Thu, 17 Sep 2026 16:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UH4nDuNm8WETOKRWe7SRNZU9XQYiIXLypWVTigplchc=; b=FwFpHPpS/tpg8d Sjjke6eRPVEl7kQdkr8CKW7jX2n/3Cql3hEBHvTUeaSov0yOEgnt3cBrRbOq36lg1bh1p40WBUN57 WXhRuOgY3VI66kVZSJzlO6vYI176qcZ3Rhr4Z6pHvFYTpzArYV9hHSDDuUyUKV5337VUXHLpNIcsI XOZm/TTbeLhW7cE45iBXlgoXYT6IwcUhbd7VWyoC48RLq9GiFY/qvVlwDxdxN63K0yrQjmmd3JJ9O Nx3wau42U0ljkqlfIcp6VvsAvBAb3HQmSyxM4ogpg9utNlCY0mn+joMqaRYBT2YFsQ8eRxeuFPuvi pzyfWam3tEMgR5fjJsmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7EfP-0000000Bppi-22Kr; Thu, 17 Sep 2026 16:08:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7EfN-0000000Bpnl-20y3; Thu, 17 Sep 2026 16:08:54 +0000 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 D71DA1476; Thu, 17 Sep 2026 09:08:48 -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 7C2B23F86F; Thu, 17 Sep 2026 09:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789661332; bh=LTrp4k+I8MTH1TFb/n0jAUNy6sMkQLKvNVm0Ssk0Ik4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fg2BVR2hsmdfzOw802jgLmkU4C8dYgDiVodN/BCQcJnNlXQvUZTot4764bZzdYHoP KpxaXu68DSJ+nTWkJw0nr52jlY0S/pY38k0WZGKhlRoxtkP4hWgPjgsWanps+qYf6p OWz0B8EVzI71pY/BTigybbpetQ2VZbhxL7LsQAdw= Date: Thu, 17 Sep 2026 17:08:43 +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 v4 5/5] dma: swiotlb: Remove SWIOTLB_ANY Message-ID: References: <20260914070135.313337-1-aneesh.kumar@kernel.org> <20260914070135.313337-6-aneesh.kumar@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260914070135.313337-6-aneesh.kumar@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260917_090853_565991_1488CEE5 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Mon, Sep 14, 2026 at 12:31:34PM +0530, Aneesh Kumar K.V (Arm) wrote: > swiotlb pools are currently allocated below the architecture's low > address limit by default. SWIOTLB_ANY overrides this and permits > allocation anywhere in directly mapped memory. > > SWIOTLB_INIT_ADDRESSING_LIMIT now explicitly identifies callers which > need a pool that is reachable by devices with limited DMA addressing. > Use it as the placement constraint and remove SWIOTLB_ANY. > > This changes the default behavior for callers which do not set either > flag. Previously, omitting SWIOTLB_ANY placed the default pool below the > architecture's low address limit and also constrained dynamically > allocated pools to the same range. After this change, omitting > SWIOTLB_INIT_ADDRESSING_LIMIT permits both static and dynamic pools to > use any directly mapped memory. > > Signed-off-by: Aneesh Kumar K.V (Arm) Reviewed-by: Catalin Marinas _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv