From patchwork Tue Sep 12 16:18:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13381926 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CF9ECA0EF2 for ; Tue, 12 Sep 2023 16:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=piT19KvdXeuv3HLknGeT2pjDi0K9ZXQSyoiW9tsuXNQ=; b=v8kFulAvGc734S ZUU0+Mq9zzkn1B6oQR8Q9ufssnAvCjAENzTVFzUGGGYqTH3lrisnlYF+ZQXoP1KT6eKzK89k64YiH 4E/BTDzVY9FxjbXp28nRKYXXyG9cpvkd0BZAh7raL3iDSghWG8bgeyX9xScRMHLJRHbWGCPtdMqNr bgxP+kt6PkkBe5mghOGRtnKn/cbS/W3EVHVqucZBzUbZeU2m4WsLJ09hnkeRJkBqR16Lu44vZHFSb fD5+XzWHf/tNM5swXE+WbtFeZHsv2mPPPtkJh5AdWEJZHb20M9rsmVf/ypQK+TU7xliHzaHF987uY aLiV8uDWwVEovbJWTBCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg66J-003oGE-1d; Tue, 12 Sep 2023 16:18:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg66G-003oFK-27 for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 16:18:54 +0000 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 26FD4C15; Tue, 12 Sep 2023 09:19:27 -0700 (PDT) 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 914A93F738; Tue, 12 Sep 2023 09:18:48 -0700 (PDT) From: Robin Murphy To: joro@8bytes.org, will@kernel.org Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com, heiko@sntech.de, jernej.skrabec@gmail.com, thierry.reding@gmail.com, vdumpa@nvidia.com Subject: [PATCH 0/8] iommu: Clean up map/unmap ops Date: Tue, 12 Sep 2023 17:18:36 +0100 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_091852_735470_92C76EF6 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, Time to repay a little more from the technical debt pile and actually finalise another of our half-finished API evolutions, since it turned out that by now this was dead simple. So much so in fact that I'm in two minds whether to squash all the driver patches into one or not, as they're so very mechanical. Note that the sun50i patch is just a placeholder to make a consistent series for now, as I'm anticipating a "proper" implementation from Jernej. Thanks, Robin. Robin Murphy (8): iommu/exynos: Update to {map,unmap}_pages iommu/omap: Update to {map,unmap}_pages iommu/rockchip: Update to {map,unmap}_pages iommu/sun50i: Update to {map,unmap}_pages iommu/tegra-gart: Update to {map,unmap}_pages iommu/tegra-smmu: Update to {map,unmap}_pages iommu: Retire map/unmap ops iommu: Improve map/unmap sanity checks drivers/iommu/exynos-iommu.c | 10 +++--- drivers/iommu/iommu.c | 66 +++++++++------------------------- drivers/iommu/omap-iommu.c | 11 +++--- drivers/iommu/rockchip-iommu.c | 11 +++--- drivers/iommu/sun50i-iommu.c | 10 +++--- drivers/iommu/tegra-gart.c | 12 ++++--- drivers/iommu/tegra-smmu.c | 12 ++++--- include/linux/iommu.h | 6 ---- 8 files changed, 58 insertions(+), 80 deletions(-)