From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A511733; Mon, 4 Dec 2023 00:43:26 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id D793368AFE; Mon, 4 Dec 2023 09:43:19 +0100 (CET) Date: Mon, 4 Dec 2023 09:43:19 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Joerg Roedel , Christoph Hellwig , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH 4/7] dma-mapping: Add helpers for dma_range_map bounds Message-ID: <20231204084319.GA919@lst.de> References: Precedence: bulk X-Mailing-List: linux-acpi@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Nov 29, 2023 at 05:43:01PM +0000, Robin Murphy wrote: > Several places want to compute the lower and/or upper bounds of a > dma_range_map, so let's factor that out into reusable helpers. As the build bot pointed out this will need a fix for the initialization all-Fs for a 32-bit dma_addr_t, e.g. by using (dma_addr_t)-1, but otherwise looks good: Reviewed-by: Christoph Hellwig 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 B812FC10DC1 for ; Mon, 4 Dec 2023 08:44:01 +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=rac0k9Di6ODovk/2sGRrAihic/CUHx0vNTK973sgxq0=; b=Y8djkE3fFXDft8 iDTMk7JhOUZXivsMhVbqTd/0LzPE20VGGbMCQxmCcf5dH0xNBH5YYJwSFmqgnK6TB4IGb3NhF0+iT C8yQeT1ddRFAqcFN3M3kXH4cVXmEvmbNeC1wK7MrQVA0rY5tWaPxjr1a+Oh3q2hzUTiihm7ECVM9H +NRKXEVqVcp7kVUOTwJYOEFWrNLujnvXs4Rhu/jwGhu/eVzvyV8ohbC1HClOq7VSpx/SDtLzw6PH+ blNVCJopxlT/oY+fIdSRy0EDYyhDkOd36IOdH0fAQ31SIgN4jmFVToLbBRDRfeboI4nLm5nYJj+zf 3q1jtfZj0Y+2vwt+6uwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rA4YA-003JCn-1U; Mon, 04 Dec 2023 08:43:34 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rA4Y3-003J3r-0R for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2023 08:43:30 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id D793368AFE; Mon, 4 Dec 2023 09:43:19 +0100 (CET) Date: Mon, 4 Dec 2023 09:43:19 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Joerg Roedel , Christoph Hellwig , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH 4/7] dma-mapping: Add helpers for dma_range_map bounds Message-ID: <20231204084319.GA919@lst.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231204_004327_334485_EF6036D7 X-CRM114-Status: GOOD ( 13.68 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 29, 2023 at 05:43:01PM +0000, Robin Murphy wrote: > Several places want to compute the lower and/or upper bounds of a > dma_range_map, so let's factor that out into reusable helpers. As the build bot pointed out this will need a fix for the initialization all-Fs for a 32-bit dma_addr_t, e.g. by using (dma_addr_t)-1, but otherwise looks good: Reviewed-by: Christoph Hellwig _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel