Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4856327rdh; Wed, 29 Nov 2023 12:41:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKlKl9EFStOeDgqqXr/1ztOnzcERFOMY9eMIZ+8pBbcszZESspvWgrGoOURR6I3TPRxr5b X-Received: by 2002:a17:902:db02:b0:1cf:ca67:4336 with SMTP id m2-20020a170902db0200b001cfca674336mr13531695plx.11.1701290481228; Wed, 29 Nov 2023 12:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701290481; cv=none; d=google.com; s=arc-20160816; b=ys7TDKOwSCjAf61EqnAcsrC1oUN+QObrYB53peO3tMQ92oO7w8l017a3DwBAeUyrej sPn9uTPnl+RcDUdjoE7vX94U+Cj6IsqZ4gr3RJBaPEcOlHfl9JMOpyPFKqbRnQW7fIv+ 2wN14A3QSw/NYOJpEgYs07u+yqg3D9BREUwlGbJMSq39s9Nprztqjvf0oVBDLDee7GmT AZjh29YxDbjVS7c7GGiod/IzVyAWXZ4wcrKIU0vyGXRCyfOuo9yXbXSgHxHQxb+0qfK3 7+63NSAblXBcl+u2FikT2O98vJI312A8OACO276pnQtDyaA2hB6Im/nQDKEa79RnBkDw kAcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i4is+UaFXgNmfUwcjSjgaiG0RVAiB9ug48COJL1kEfc=; fh=6tWgUIFJ7duv5X0bhqu3rfGsa66d7jCAOHHHXIXCUCc=; b=BMf5U3JH+luyWs6lVLlN7c58xevPrUnYXji3yffLc7NH8BhSMp8L7fD/n571SKgE4Q FDP+YvrsbRaPNWainPU/tuDt0pn+rJrvW+5iktcy0Yqurxy+mJVAwXvKRv62xflgydGm 5W0QjUGzVxJ2X2GykqVQQb3VG94yG614l/lgtFSMidZBCL0NvpSrt4N+s04tvHfT6N+t +py9AZuX6jUzB3fBbEGEcYduWTwaJUcXM/7eRhu46qfP03BxzFBL5MYZIWhalj+R6M4S AmOLntzIYn8rdHvj4je2S/MeRxPIi+btCalRm3A0zJDW2mgsf5B/LgIyLuxATqeYRKVx EKcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=FPRXhtOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id jo3-20020a170903054300b001cfb55da13bsi9985457plb.332.2023.11.29.12.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 12:41:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=FPRXhtOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id ACFEE8084626; Wed, 29 Nov 2023 12:41:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234061AbjK2Ukj (ORCPT + 99 others); Wed, 29 Nov 2023 15:40:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233983AbjK2Ukj (ORCPT ); Wed, 29 Nov 2023 15:40:39 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CC3D6E for ; Wed, 29 Nov 2023 12:40:44 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6ce322b62aeso150325a34.3 for ; Wed, 29 Nov 2023 12:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1701290444; x=1701895244; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=i4is+UaFXgNmfUwcjSjgaiG0RVAiB9ug48COJL1kEfc=; b=FPRXhtOrAV5xg2ep6+npC90ZSnpQalIGR2w53QMKa3XLO/hG0KmMCeIAEJYG9nBJWa /XyyUlxnf8qxAxQaWmKVhby4s5m9Ta/R4x8QhtH8YfdNzl+p6aeapMOLXIPz8RLo/pjh IOpI2VD/QnYVyMPPrxjtdK9wv8Otlic/ctIvKNQMpTzekcCTjVogfQF4jR5thhHXsjCs XONtlIfvzyaZj/K/WAsdq3tTQWkbny+MdS0Xc+CJBzPOQ/LHxjv7V0aeigbx0nYcDG9u Gawbifm5xn+KRSCUaJc1fnk6/rBRvV8nKVVLyaEi4QZnJFHIJEs+ftWuSwbPhkVly6xB Ux/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701290444; x=1701895244; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i4is+UaFXgNmfUwcjSjgaiG0RVAiB9ug48COJL1kEfc=; b=dN8vtvpEdV48ZDr6LWRrKYrTHzydt5mycSQNVLGtpbsz9rAL33jR27N4rY1YbhYYD0 y13XdQFscxcrtaEMWVCJ9AwF6fC3LeV1k4OnwUfufOwKZ8yHS8lJ2djrhOMwwID9ExRT V6f8nj47bBxKlqDlLanzF8AYIfpIXyt4S3xHwJ02fLsdsQVcRQN4/Yv2LnAvpakwdzLf 5f7CH2Y+C/bVHhjW6OuElVa/PbDsSXAL1tdH8DNzX4NLW6TrepQhJRVgqWKP5vzpu/sP Hn1v3OtO1TFp1JrWHR7J5geNk/I54+Yo09h053v+Pm65NMOJ5FMr/LP34oTIWbDlSjek qS5g== X-Gm-Message-State: AOJu0Yz5qwQwBKVe6F7jucNAbcxi3uQ/chFqjXU2+8Zr+xEChLNiAgbV Ge6ZO9bmcjisGQm6Entdh+XQLg== X-Received: by 2002:a05:6830:1d41:b0:6d6:3ff8:aab7 with SMTP id p1-20020a0568301d4100b006d63ff8aab7mr19895331oth.1.1701290444152; Wed, 29 Nov 2023 12:40:44 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id e11-20020a9d560b000000b006d3161e612dsm2113398oti.30.2023.11.29.12.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 12:40:43 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1r8RMQ-005pfu-R5; Wed, 29 Nov 2023 16:40:42 -0400 Date: Wed, 29 Nov 2023 16:40:42 -0400 From: Jason Gunthorpe 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 , 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: <20231129204042.GP1312390@ziepe.ca> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 12:41:02 -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. > > Signed-off-by: Robin Murphy > --- > arch/loongarch/kernel/dma.c | 9 ++------- > drivers/acpi/arm64/dma.c | 8 +------- > drivers/of/device.c | 11 ++--------- > include/linux/dma-direct.h | 18 ++++++++++++++++++ > 4 files changed, 23 insertions(+), 23 deletions(-) Reviewed-by: Jason Gunthorpe Jason