Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1015870lqs; Wed, 6 Mar 2024 04:03:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgmAI6pAlrKvWhyj0z6yeSTRj5jfbLMv32wrF4Fqvw1utWdyYnHvNeUZppYiLHGeIxi97KvPmKdw3n/dxyh6YQVgerLC8QHYxJ4274cQ== X-Google-Smtp-Source: AGHT+IE4qjhs0orZ3vWb7HHiZ5AZx9lnjjKND50cKKKvP0bIObSZW16RjH+gdHD1lZF3o8ag7A1i X-Received: by 2002:a05:6a21:2d06:b0:1a1:4d86:5e3 with SMTP id tw6-20020a056a212d0600b001a14d8605e3mr5566631pzb.22.1709726598108; Wed, 06 Mar 2024 04:03:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709726598; cv=pass; d=google.com; s=arc-20160816; b=RAnwzRHGGKKVyzRwDxwbhnQIKHSHxxu4JBs8CM4uWTWMjpHgkDx9vrohNzl1rzWQpY GsJWYS6eVQfiLjtPbDNN25XO56SRDE+Oavs816G8TszoiqB/coIwpq8Npzao4V63bJcj IcBFjQNjCLkgiJRlT+TtowIxzRFaldk3lgOo1RZvcZsxNVjeclEpLl93d3BGQ6NgKVDR 87OgRh2azFvfDqL9TBlyDj57pM5SGR8CDOt/3vMozeBZ2wYd0SNdvLXvWdOFz2FHiN1G 2uNpANk+Xkqn6iTIacbe4sYWKwjuXCW9yq8IEgqgGqArcX7PHHLr7iByo2eKDdiVtnzD EnSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=VaMLeVrRz6e1j2tcleZ+nSRW3OcvndOkVPfcxNO9N58=; fh=GNBXEYaBv/m3jVEMpTGTRjnFoUB0WOii+EMJk4vaWPQ=; b=wEbQaWE+0QbBpTJONQp0sII3rUQDSk1DCZrJINUzT9UvXepx/zPh77APclX1vzfBNU beNjAm0x8ySI74bXNzVY/38lHQJ9rC8MTZehF+e2MUZHdQ6jdzP8OhUG8C+FAY1/Kh65 g0+ppe8HNZBNsA7cXtRLhLzA8rT3UizM/jP64c2bRCn2grWkKSSze0pDsgXUNhWAom11 HTilceCgU7f/tUy2sysCh8D6MkXTXO7qE4DEQa9ViyAS91/DjJJ0Ww3q5YHGismN+ELA RCmmKZq/78qRweOwKYm4E/TLWPn7q3YHdOPVwP96q+OTp1TQu7S17fEwvOAYOhnMrQSN dmUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-93864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z5-20020a6552c5000000b005dccf9a43ccsi11817762pgp.202.2024.03.06.04.03.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-93864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB8C5286432 for ; Wed, 6 Mar 2024 12:03:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F3BC7FBD5; Wed, 6 Mar 2024 12:02:54 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0122A78B43; Wed, 6 Mar 2024 12:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709726573; cv=none; b=ABDxJ24d7A1zNz2d8RVHP//ydVcsNc2F0BcLeoaAcLoxFHCEha4FTE69Nm+1KvpL8yA+9ibNZAKJd6v6+IUlUcs6qOSC/+t787pgw/JDwFOcENR+74aO3K+Of5k28I2hcUsNlXTo2Rh+53BOtpPfIxrvucydNA9sv82YWVV7GjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709726573; c=relaxed/simple; bh=yF6gwCEWbGF3pPVi8P+IIvtLpYFThZkXLvepHc0U0MA=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=XC9ZLbHXV/y+n/oYYkxPNAVYr2VPuPTCYMhwJZbr8a1rsm2Bp83uiuT0dxcLMOxWIxlmqwte8XffIU8Dbhv6in6GtJdHm/BXLy4m0p/GasqYsnhhIvSduPXlfWelQcf/688/Ts+eEwObc93A7HK476pyuJcjNyM7OmsOMTv+XPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 552571FB; Wed, 6 Mar 2024 04:03:27 -0800 (PST) Received: from [10.57.67.126] (unknown [10.57.67.126]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1AF433F738; Wed, 6 Mar 2024 04:02:41 -0800 (PST) Message-ID: <6af5e7da-08ba-4fc7-8e57-863377182142@arm.com> Date: Wed, 6 Mar 2024 12:02:41 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/7] dma-mapping: Simplify arch_setup_dma_ops() Content-Language: en-GB From: Robin Murphy To: Joerg Roedel , Christoph Hellwig Cc: 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 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Joerg, Christoph, On 2024-02-09 4:49 pm, Robin Murphy wrote: > v2: https://lore.kernel.org/linux-iommu/cover.1702486837.git.robin.murphy@arm.com/ > > Hi all, > > Here's v3, rebased and fixing the thinko from v2, so unless anything > else has changed behind my back I hope it's good to go (via the IOMMU > tree, as mentioned before). Are either of you happy to pick this series up now that we have Hanjun's acks for the IORT parts? As it stands it still applies cleanly to both iommu/next and dma/for-next. I do have some followup IOMMU patches prepared already (continuing to delete more code, yay!), but I don't want to get too far ahead of myself. Cheers, Robin. > > Thanks, > Robin. > > > Robin Murphy (7): > OF: Retire dma-ranges mask workaround > OF: Simplify DMA range ca1lculations > ACPI/IORT: Handle memory address size limits as limits > dma-mapping: Add helpers for dma_range_map bounds > iommu/dma: Make limit checks self-contained > iommu/dma: Centralise iommu_setup_dma_ops() > dma-mapping: Simplify arch_setup_dma_ops() > > arch/arc/mm/dma.c | 3 +-- > arch/arm/mm/dma-mapping-nommu.c | 3 +-- > arch/arm/mm/dma-mapping.c | 16 +++++++------ > arch/arm64/mm/dma-mapping.c | 5 +--- > arch/loongarch/kernel/dma.c | 9 ++----- > arch/mips/mm/dma-noncoherent.c | 3 +-- > arch/riscv/mm/dma-noncoherent.c | 3 +-- > drivers/acpi/arm64/dma.c | 17 ++++--------- > drivers/acpi/arm64/iort.c | 20 ++++++++-------- > drivers/acpi/scan.c | 7 +----- > drivers/hv/hv_common.c | 6 +---- > drivers/iommu/amd/iommu.c | 8 ------- > drivers/iommu/dma-iommu.c | 39 ++++++++++++------------------ > drivers/iommu/dma-iommu.h | 14 +++++------ > drivers/iommu/intel/iommu.c | 7 ------ > drivers/iommu/iommu.c | 20 ++++++---------- > drivers/iommu/s390-iommu.c | 6 ----- > drivers/iommu/virtio-iommu.c | 10 -------- > drivers/of/device.c | 42 ++++++--------------------------- > include/linux/acpi_iort.h | 4 ++-- > include/linux/dma-direct.h | 18 ++++++++++++++ > include/linux/dma-map-ops.h | 6 ++--- > include/linux/iommu.h | 7 ------ > 23 files changed, 89 insertions(+), 184 deletions(-) >