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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 006F6C4167B for ; Mon, 27 Nov 2023 21:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbjK0VlK (ORCPT ); Mon, 27 Nov 2023 16:41:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjK0VlI (ORCPT ); Mon, 27 Nov 2023 16:41:08 -0500 Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F2E131; Mon, 27 Nov 2023 13:41:14 -0800 (PST) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-1f9efd5303cso2476927fac.0; Mon, 27 Nov 2023 13:41:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701121274; x=1701726074; 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=pI2M+j6ioFcb4GQHCuGwFJdfm9icuD7b8LXD5YDuNJg=; b=ruXGmity9u8iNcq4s2Fu+4PczWS3t5PJZVDV3xTRDH0MgCl7uv0HrVSMsnTD/C+att oo8t8/esSu0wfJ965ibKeFcNrjPbc/qDOwyNNO9uoeDEa2wAWbRYRzwliw5G1kyYswnk dA69puYXQ3OgH7hBvK/vv3nsrWvgw0EvjVM62b/JkXF4k/zN+nTwY24jFZgQuNH8TLDi HBZktOK+ZKb+arjd91eRp7c6p4h46fUi3nTChoUMd8YLrddtZ8PFb0ec+WYxci55jMNc ej7t6TDX+0O5ERiUB61wg3MaXkK3xsMYGbcRHFNonFPEbJOZZjyRcNrFh3JzKMmbPtZy zPMg== X-Gm-Message-State: AOJu0YzI3OQarTFcBlLgjfge5w3HanntNUNIWouJKZDSj9WJdIIL+Qq+ BULaP3EPN7EFDlSHV+U19A== X-Google-Smtp-Source: AGHT+IGFvSz34MKUy/WxsVB8cBQNpehhrzjKecPe0agYQUZpudaSX6ZWR8xRNmcDqWBXrxt6W+KwRA== X-Received: by 2002:a05:6870:e0cb:b0:1f9:385a:f6ef with SMTP id a11-20020a056870e0cb00b001f9385af6efmr14434582oab.19.1701121274068; Mon, 27 Nov 2023 13:41:14 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id mm23-20020a056871729700b001eaf486140asm2190758oac.28.2023.11.27.13.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 13:41:13 -0800 (PST) Received: (nullmailer pid 3795972 invoked by uid 1000); Mon, 27 Nov 2023 21:41:12 -0000 Date: Mon, 27 Nov 2023 15:41:12 -0600 From: Rob Herring To: Robin Murphy Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, frowand.list@gmail.com, james.quinlan@broadcom.com, m.szyprowski@samsung.com, hch@lst.de, devicetree@vger.kernel.org, lenb@kernel.org, robh+dt@kernel.org, rafael@kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH] dma-mapping: Don't store redundant offsets Message-ID: <170112126999.3795360.2028083328309296729.robh@kernel.org> References: <94e0cec15546ef2be61d90869e499e40e2a55308.1700849106.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94e0cec15546ef2be61d90869e499e40e2a55308.1700849106.git.robin.murphy@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Nov 2023 18:10:03 +0000, Robin Murphy wrote: > A bus_dma_region necessarily stores both CPU and DMA base addresses for > a range, so there's no need to also store the difference between them. > > Signed-off-by: Robin Murphy > --- > drivers/acpi/scan.c | 1 - > drivers/of/address.c | 1 - > include/linux/dma-direct.h | 19 ++++++++++++------- > kernel/dma/direct.c | 1 - > 4 files changed, 12 insertions(+), 10 deletions(-) > Acked-by: Rob Herring