Message ID | cover.1707493264.git.robin.murphy@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-59672-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp985094dyd; Fri, 9 Feb 2024 08:54:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYAqI5DPfHk19Y+zBGWXHwEAf0E/WBm7Tjvosrqy1vdtWXW5tV4nb8UBGfFG20sY1+8aEtIL6vI+KplvvQq/w4lAnH8Q== X-Google-Smtp-Source: AGHT+IHA44Qbbj8Yu9meS4iGMBDwbo2pdDlDXqeMCGRLDDqnLbf5nTKWkp8sdBxpBAJ2xMjx20E/ X-Received: by 2002:aa7:df82:0:b0:55f:fe85:ed47 with SMTP id b2-20020aa7df82000000b0055ffe85ed47mr1732571edy.12.1707497676015; Fri, 09 Feb 2024 08:54:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707497676; cv=pass; d=google.com; s=arc-20160816; b=Om7EOzawaKNF/kudQqLUc5LpisnM+o9V9KuA4/AswJ9mnld8nS5e7+TSt1n8YWsqwU T2fpv0GxvCbYdwz7AvA5DEWElToJv7uO/Uj/gHJPmEYjtZ2bgXu0oAtgIgYeej2lTlu8 mgc1Cf+ikKuopuqEYjOld1MBXMTPT8zvwsbJ6ypXNRHdPgPoaO0JqCPmq4A8IvHPfTBY AjSjoJSFsLvy9AHSufKXwdvaHx73H77zo0w2gERn0VYX2AzUZV+13gtLDYe0xRjIzWD3 xhHL0Fl+uVTu8kqbXw1lwmEOsPkBz6hfG6jyBpAt4fXgp5+IcBC9feIS9IvhTUUNw7LQ 1VLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=LCmsdhF9Ln8Ha7Wx7HH1VaAqiy1/E1iVU7qImOUxxzY=; fh=pk6qr2v/HkqLSQRt7n6u893xJRpTp3vd1ZVDlR0rc+Q=; b=kWqclWq4ihK6YgJaq4UXOfDO/cGemnjWF6lqkZtG/cd1kji8eLReuJnJcW16BdE616 vZ43HCcF13D8BITdyFH07KwXkMDjTh0oaUhlYoGVh0dOmTwRCMOuzk+ih9lMxhdfXTcq nFsEm418B7xlSYYJQxBBqRgdS4jc5xx546WfQcq2ssA6PacplumbDC0Y9GeYgSMIhi3L to+ysnFVNS1WDAFMuUGqIhPVyLaZDcUXh2uhE5ArdRxvkdKAo6C+4n3MrxK3qMkba6KA 3ZbzB4Z7MZGTE6+98gOa9tHyE9O8CC2iIGelSz4evOUqQZJvZkqd/B6G61gCpmASkUUZ D5dQ==; 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-59672-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59672-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=2; AJvYcCWTp5+B3Tw9xXtNDn3D4MImpHPLAJcPF5m7rkLQBY1SgXQfV/6L/q6QHoPNjTLoj9aIe4MJGg7S1sufSRGZs8x1Hpvd8w== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cm19-20020a0564020c9300b00560ae180b8bsi1043404edb.372.2024.02.09.08.54.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:54:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59672-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-59672-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59672-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id A1C621F2170F for <ouuuleilei@gmail.com>; Fri, 9 Feb 2024 16:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E459D80C07; Fri, 9 Feb 2024 16:50:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A2D176415; Fri, 9 Feb 2024 16:50:23 +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=1707497426; cv=none; b=uy5QnV+8qduLLnKYloDq6fRQMm+gKcBSgI/EEc0QLAg2a8nayI36L9tNwmAhOu5Vev78WzuLxXZHaiZqGs2FZpF9lEBDOjooGM4OEogkOilP72DIt1Vcf1847dfZ8xKv/9xImTdqUnLfPehymkc3V5kfHvMjBNV5u/LhiH/kXSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707497426; c=relaxed/simple; bh=jodxKeMIB3u02I6vwJHLmyAGch/HD5ufVLh3ZfgAW3Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=boYioL8Tx6PjR4kDvW7J9S0vLpppQZgofLssEMjR9IvqrSL0Er3H8YaCyDFT41URxEkTSSKsIeyH03Iaq7iPE5x4JRkgvnnt4fSylV6DTyvpqNIYRs1B9uJL/S8IjPTL2zRxl8+l/9prVyeWSHsmTonuzVrfjcp+QKseoWlzqL8= 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 A10CADA7; Fri, 9 Feb 2024 08:51:04 -0800 (PST) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AF0DA3F64C; Fri, 9 Feb 2024 08:50:18 -0800 (PST) From: Robin Murphy <robin.murphy@arm.com> To: Joerg Roedel <joro@8bytes.org>, Christoph Hellwig <hch@lst.de> Cc: Vineet Gupta <vgupta@kernel.org>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Hanjun Guo <guohanjun@huawei.com>, Sudeep Holla <sudeep.holla@arm.com>, "K. Y. Srinivasan" <kys@microsoft.com>, Haiyang Zhang <haiyangz@microsoft.com>, Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>, Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, David Woodhouse <dwmw2@infradead.org>, Lu Baolu <baolu.lu@linux.intel.com>, Niklas Schnelle <schnelle@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Gerald Schaefer <gerald.schaefer@linux.ibm.com>, Jean-Philippe Brucker <jean-philippe@linaro.org>, Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Jason Gunthorpe <jgg@ziepe.ca>, 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: [PATCH v3 0/7] dma-mapping: Simplify arch_setup_dma_ops() Date: Fri, 9 Feb 2024 16:49:57 +0000 Message-Id: <cover.1707493264.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790441083377647931 X-GMAIL-MSGID: 1790441083377647931 |
Series |
dma-mapping: Simplify arch_setup_dma_ops()
|
|
Message
Robin Murphy
Feb. 9, 2024, 4:49 p.m. UTC
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). 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(-)