Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2567350rdb; Mon, 4 Dec 2023 00:44:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRSlbYm1JQwDGkNZ1mpJbdrN8edFybQJ4yG4oNR5sGyM7kfRA6I4KZd90rK0GBz1q/REqA X-Received: by 2002:a05:6a21:a597:b0:18f:7621:9d6d with SMTP id gd23-20020a056a21a59700b0018f76219d6dmr237915pzc.113.1701679475515; Mon, 04 Dec 2023 00:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701679475; cv=none; d=google.com; s=arc-20160816; b=g29gdf1x31s6PTF4qG9VkpeZ1VWQPFGEFjmNSaVmW2/Crj8P0StAAbJDrXLNq7QZ/k SJTq0nQH36lGkrVSilcxEYPiSHGvGWsVUVZEvaxtLSqISJaJNvQppTiMK05uZhrSYeY4 HNtDwXGqTYt1NaJ+H+2XoZaO5CkdyOMC+7JlpSuM8y88wTNA1eu1jjOcjLiiRX2GpJjB pjDNeRiKG2jg/eyWXiga+ZuigOB733Yc6pA/C3zs+Sbxca9OckFmwMfiL/cM/Slt/fl9 RHYW3yqXxdT21i/MspKY6dP0gQZFXurMRZsTrDub4qH3N/z/Da405VvYIHDd1T88J4HN sOrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zIXLFC17xqo8KSSMEwwkBqmPBA08GHdffAQ5FUYG0uE=; fh=k+Y+hYbwCj+SMhnXdWlTmDv6XUyjE+rcX7eFD7WNXSQ=; b=WIvyHUXK+usrINwrXxxNgh9stKomkpiB9Rr59ORxJD4RRYi3xsdebwh1kp0pyjDniE AJxfIw+miyWKs+RABhtHkTX9/DbNcqJqqiV1X8ZSkFMbKJSknl6/WNVFsj61Ubv27Fzi wl17C/PrpZsAJlSjc6qPqDrPcaFZ4YxDnJOJYFnz92Z1q8qDeD584h/tSqn7B3TCtLN5 jDz1mPzFffgKgT5KI1uCGDKMhIVrhnZ9MWPtZA8gwnZ3ITgzuhcNdiP+KlQONFVhlD8K n8FXYtId+M9Xk4pZ8X6qAJZ8O6G4+xwjfiNziYCRfM7DSyYNKiKxBSnSJbWzxu0xRUvj SPLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id mt23-20020a17090b231700b00286b33bfca0si1189134pjb.106.2023.12.04.00.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:44:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3B54B805FB94; Mon, 4 Dec 2023 00:44:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235381AbjLDIoT (ORCPT + 99 others); Mon, 4 Dec 2023 03:44:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbjLDIny (ORCPT ); Mon, 4 Dec 2023 03:43:54 -0500 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: 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) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 00:44:33 -0800 (PST) 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