From patchwork Tue Nov 15 15:26:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13043835 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 7E1C4C433FE for ; Tue, 15 Nov 2022 15:28:20 +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=ZdXcGJ2u/BWKF8y1s5onfLMLOtcciMxfpHD5IW6/huU=; b=gRJHTycL6QSh3V c1ASdJ91rjWfio5PA1xNByjkAnlSeoBjrGzmow4fNA6ySdVbakIdUE70tp88wTaaInzSzBEFQyyqp zwvzIVFPBtFvKVZUY5DRRPWf2LyzdC+9W46M/ODkSab4rXtZXhsOWKYJOiYWJR4QMdI7he6CUWR98 t6G7FAUk5ncdNwoh7eweY5zlgSWld7t/ojdsFF+/qpBx9i9T0H+ts6LL/Yo1XyKB7mDk5yi4apKXx EZg0wYhbrUon74JkVc4d05DAfgL29NBCM74Gmp1PNmgNljtnAxspWwxtPJd4EZ4LxBHt3Ofhth6Hd YSeL5xacwIxFjtCflV/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouxq2-00CHZH-61; Tue, 15 Nov 2022 15:27:02 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouxpw-00CHSU-Sy for linux-arm-kernel@lists.infradead.org; Tue, 15 Nov 2022 15:26:58 +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 A929F13D5; Tue, 15 Nov 2022 07:26:54 -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 7D8B33F587; Tue, 15 Nov 2022 07:26:47 -0800 (PST) From: Robin Murphy To: joro@8bytes.org, will@kernel.org Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, robdclark@gmail.com, yong.wu@mediatek.com Subject: [PATCH 0/9] iommu: {map,unmap}_pages cleanup Date: Tue, 15 Nov 2022 15:26:34 +0000 Message-Id: X-Mailer: git-send-email 2.36.1.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221115_072657_014646_9E57ABE2 X-CRM114-Status: UNSURE ( 7.80 ) 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, Here's a couple more strands of cleanup along a common theme. With the original pgsize_bitmap trick for multi-page mappings long gone from Intel and now getting cleaned up from s390 as well, the first two patches here convert the remaining instances of that to the proper new multi-page interfaces. The rest then convert the remaining users of the io-pgtable API, so we can clean up the old interfaces entirely at that level. Cheers, Robin. Robin Murphy (9): iommu/mediatek-v1: Update to {map,unmap}_pages iommu/sprd: Update to {map,unmap}_pages iommu/mediatek: Update to {map,unmap}_pages iommu/msm: Update to {map,unmap}_pages iommu/ipmmu-vmsa: Update to {map,unmap}_pages iommu/qcom: Update to {map,unmap}_pages iommu/io-pgtable-arm: Remove map/unmap iommu/io-pgtable-arm-v7s: Remove map/unmap iommu/io-pgtable: Remove map/unmap drivers/iommu/arm/arm-smmu/qcom_iommu.c | 14 +++++---- drivers/iommu/io-pgtable-arm-v7s.c | 41 +++++++++--------------- drivers/iommu/io-pgtable-arm.c | 42 +++++++++---------------- drivers/iommu/ipmmu-vmsa.c | 18 +++++------ drivers/iommu/msm_iommu.c | 18 ++++++----- drivers/iommu/mtk_iommu.c | 15 ++++----- drivers/iommu/mtk_iommu_v1.c | 30 +++++++++--------- drivers/iommu/sprd-iommu.c | 25 ++++++++------- include/linux/io-pgtable.h | 6 ---- 9 files changed, 94 insertions(+), 115 deletions(-) Acked-by: Will Deacon