Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6750230rdb; Fri, 15 Dec 2023 07:26:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTOv4NZkkfHjNP7XRwpVTqqJOCdLs463evQRekCvCwYrAJmZkldMGlLrPBVZuSaOOEcBGx X-Received: by 2002:a17:90a:e613:b0:28b:1f7f:a9b8 with SMTP id j19-20020a17090ae61300b0028b1f7fa9b8mr1242563pjy.50.1702653984063; Fri, 15 Dec 2023 07:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702653984; cv=none; d=google.com; s=arc-20160816; b=c1iV5mEW6VyqCf9WmvMXlfOALqGDL4sjbumdWj+r9U7LHY+R9C+xI/otZOeiR7JKvQ BeCU7Npo/or2XXS9uvE07nc4BdjcC0HNGhYN9XqBu8YzMItsiaEYNdfld7nK6YibLAtn wDbHUDHLO1aPfScMRSrw8BalfpSVzqQllj+pEFKj209xYQUppMFgpilDdaaHvHKvEt6x zV3JuoxkIVy7fCIjrnSGj2iky8YMETw3rPI8alFYgdC6Cm1+LWEgH/LRmQR0M/d8bpD6 J+sZziuq5yKJ77zzogdkSxVLxXYjzQeKV1aFMgwWMpA7Zzh4FZD7hSE2385+M1kkOwde OIVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=o1KxO6deZnelp4zRShdYeXlRDuUBsn1JgcYXM2Knxlg=; fh=4Lb8V5PTVP9S7tUX5ycg9d9QIUN4ZE2/pGfMghvbm4I=; b=FJmUIdN/S2Zm5Fz+wMEb+HUPB6v9hji98XE4flm4InVLab09e9pP++o45O6E+enV4c PCxKaNRTVRbBdasMlXK8lntv9SOKtTr0zwqOaXdbkSVzS8yNkBiGlghFOgnIudoql4zK rVoEYEDcbRt5p5SAHT006uqPBABZ4XCtIwR9OwrBC1Jh8k1Wl/GNuTDcvxPs9T00yOhb vHyFAS3QHzwJbz58IlhGCbdATCvcGTsM4w+S3358YxA5fq5OOK7LnO2+gzXGsgA7WqEq NNXsBqM/mlYRYKkKmCsBoXwzlcK2KimN9/389yDBgM08BFfMWxt5p2k0kBddc+TsphXL wDUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a15-20020a17090acb8f00b00288814acec9si2988130pju.65.2023.12.15.07.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:26:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 72D7CB23041 for ; Fri, 15 Dec 2023 15:25:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4684F39FEB; Fri, 15 Dec 2023 15:25:01 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A6B536AEA; Fri, 15 Dec 2023 15:24:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-6d9f7af8918so673341a34.0; Fri, 15 Dec 2023 07:24:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702653898; x=1703258698; 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=o1KxO6deZnelp4zRShdYeXlRDuUBsn1JgcYXM2Knxlg=; b=PwSl3Iunve/zkU7EPNhxvQyDkFA4RlutWQmk0FaV1xZNWoWRjJiDqyd7nwx9fTI5kk RblVqCFBL64ogERGeARPBpWnINPU4vPRvZ9pjlI3NT2i6MoqLxtfFpflxqGia3ogBZpO UWW5S6U790HOrUDchqwBaGXvJYieJj24mLRjp1OLpnTJ2a98tKdeLyBwd8ReR9kyx9cd wK4r17mhUn2NJYaqrme4/9G13IhNV1ttbqJiFBkeaEzWWijXFVQyqCyUZhMlQOVI3KbB YOOQ4SDEavjtfK/OytwKPgsgSo9XV00txciqf3lS9jXqHpVNcXzBoZuIQYCrWAj2jQV0 GAOw== X-Gm-Message-State: AOJu0YyXZAUzwytwHBov68jUq+cQjDiPfh3RSR/cJBfPX5keQ5toR8yr 9gFs2P4bxQk89VlV7C0BTg== X-Received: by 2002:a05:6830:1107:b0:6d9:f66e:f557 with SMTP id w7-20020a056830110700b006d9f66ef557mr11375830otq.8.1702653898434; Fri, 15 Dec 2023 07:24:58 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m18-20020a9d6ad2000000b006d7e23c58b6sm3614287otq.38.2023.12.15.07.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:24:57 -0800 (PST) Received: (nullmailer pid 3989129 invoked by uid 1000); Fri, 15 Dec 2023 15:24:56 -0000 Date: Fri, 15 Dec 2023 09:24:56 -0600 From: Rob Herring To: Robin Murphy Cc: Albert Ou , "K. Y. Srinivasan" , David Woodhouse , Sudeep Holla , Will Deacon , Paul Walmsley , Palmer Dabbelt , Frank Rowand , Gerald Schaefer , Jason Gunthorpe , linux-arm-kernel@lists.infradead.org, Rob Herring , Jason Gunthorpe , iommu@lists.linux.dev, Huacai Chen , Joerg Roedel , Dexuan Cui , Vineet Gupta , Jean-Philippe Brucker , Lorenzo Pieralisi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lu Baolu , Niklas Schnelle , Wei Liu , Russell King , Christoph Hellwig , Hanjun Guo , linux-acpi@vger.kernel.org, Suravee Suthikulpanit , Matthew Rosato , Haiyang Zhang , Catalin Marinas , Marek Szyprowski , Thomas Bogendoerfer , WANG Xuerui Subject: Re: [PATCH v2 4/7] dma-mapping: Add helpers for dma_range_map bounds Message-ID: <170265389548.3988948.144759236279201432.robh@kernel.org> References: <16d3e9100cd4a4a397641df963f416cc7f70cc4c.1702486837.git.robin.murphy@arm.com> 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: <16d3e9100cd4a4a397641df963f416cc7f70cc4c.1702486837.git.robin.murphy@arm.com> On Wed, 13 Dec 2023 17:17:57 +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. > > Reviewed-by: Christoph Hellwig > Reviewed-by: Jason Gunthorpe > Signed-off-by: Robin Murphy > --- > v2: fix warning for 32-bit builds > --- > 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(-) > Acked-by: Rob Herring