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 smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.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 32422C433F5 for ; Thu, 14 Apr 2022 21:07:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id D680940B67; Thu, 14 Apr 2022 21:07:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxmldCVa7i61; Thu, 14 Apr 2022 21:07:27 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id A7E0B40146; Thu, 14 Apr 2022 21:07:26 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 80672C0082; Thu, 14 Apr 2022 21:07:26 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7AFCDC002C for ; Thu, 14 Apr 2022 21:07:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 681D040B67 for ; Thu, 14 Apr 2022 21:07:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PeDmlmKCS1RO for ; Thu, 14 Apr 2022 21:07:23 +0000 (UTC) X-Greylist: delayed 00:06:51 by SQLgrey-1.8.0 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by smtp2.osuosl.org (Postfix) with ESMTPS id DAC5A40146 for ; Thu, 14 Apr 2022 21:07:22 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220414210028euoutp0164df0a9228f27907d496549016476c3c~l3v_hAlOt1205012050euoutp01G for ; Thu, 14 Apr 2022 21:00:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220414210028euoutp0164df0a9228f27907d496549016476c3c~l3v_hAlOt1205012050euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1649970028; bh=1sPEUOenjbwSwEmgb/ae34G8hb7c40f80oqDc56Zjog=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=qV0P2+KA2dSOtefYtMIZJk4GIXIkakqFm8NXcMXXdGi6Rucg0Q5M/bbQigrj/2Jap 7ypGBw+WpSlejEi5Wjr7G0vl5KykkPVLHQaLoB4oamS793RGWoO6bhhfWqmmM/qeD7 FNvoqiRFfbBJ2WKeiz1oxmusCLXZ1jw20ufaqNfI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220414210027eucas1p185f27a902ba36c6fc8dc997ccd841c3e~l3v95CXSX2407624076eucas1p1T; Thu, 14 Apr 2022 21:00:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 5D.1F.10260.B6B88526; Thu, 14 Apr 2022 22:00:27 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220414210025eucas1p1c3faa4c9c3ce5fd273ba0675e7a2c86a~l3v8ltveF2383323833eucas1p1S; Thu, 14 Apr 2022 21:00:25 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220414210025eusmtrp174e6e526f6ccfdc233a5eaaefc1435cc~l3v8k4KZU2087320873eusmtrp1M; Thu, 14 Apr 2022 21:00:25 +0000 (GMT) X-AuditID: cbfec7f5-bf3ff70000002814-70-62588b6b0918 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8D.E8.09522.96B88526; Thu, 14 Apr 2022 22:00:25 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220414210025eusmtip19363f4121502594c4e8ce2c783e2eccc~l3v7zLbwE3006330063eusmtip1A; Thu, 14 Apr 2022 21:00:25 +0000 (GMT) Message-ID: <2093efb6-e898-9a2f-4d2a-4ec22ae016bd@samsung.com> Date: Thu, 14 Apr 2022 23:00:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 00/13] iommu: Retire bus_set_iommu() Content-Language: en-US To: Robin Murphy , joro@8bytes.org, will@kernel.org From: Marek Szyprowski In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFKsWRmVeSWpSXmKPExsWy7djPc7rZ3RFJBr/+8FhsnriVzeJ9c5zF gv3WFg2rL7BadM7ewG6x6fE1VovLu+awWWxYPJvZ4vnCH8wWBz88YbX4c/s/k8XPXfNYLPr2 Blm03DG1uD9pM4vF8ge72B0EPJ4cnMfksWbeGkaPnbPusntsWtXJ5nHn2h42jwmLDjB6zDsZ 6LF5Sb3H5BvLGT1aTu5n8ehtfsfm0T+vn8nj8ya5AN4oLpuU1JzMstQifbsEroz1rU1MBUtk K5onfmJsYFwn2sXIySEhYCLxeMJa9i5GLg4hgRWMEgv3nmKFcL4wSpzZdQQ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ootMTR: 20220414124252eucas1p1f2d8689ef5d281ea70d619888108d2fe X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220414124252eucas1p1f2d8689ef5d281ea70d619888108d2fe References: Cc: jean-philippe@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, thierry.reding@gmail.com, linux-arm-kernel@lists.infradead.org, gerald.schaefer@linux.ibm.com X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi Robin, On 14.04.2022 14:42, Robin Murphy wrote: > Hi all, > > Here's another chapter in my saga of moving to per-instance IOMMU ops - > iommu_present() and iommu_capable() cleanups will be ongoing for another > cycle or two, while this one is at least self-contained within the > subsystem. The next steps after this are making iommu_domain_alloc() > instance-aware - which should finish the public API - and pulling the > fwnode/of_xlate bits into __iommu_probe_device(). And then making sense > of whatever's left :) > > For ease of review here I split out individual driver patches based on > whether there was any non-trivial change or affect on control flow; the > straightforward deletions are all lumped together since the whole series > needs applying together either way, but I'm happy to split the final > patch up further if anyone would like. > > Patch #3 for AMD is based on Mario's SWIOTLB patch here: > > https://lore.kernel.org/linux-iommu/20220404204723.9767-1-mario.limonciello@amd.com/ > > since that wants merging first as fix material. The series is also based > contextually (but not functionally) on my device_iommu_capable() patches > here: > > https://lore.kernel.org/linux-iommu/cover.1649089693.git.robin.murphy@arm.com/ > > since those are pretty much good to go now (I'll send a slightly-tweaked > final version once the iommu/core branch is open). Works fine on Samsung Exynos based boards (both, ARM 32bit and 64bit). Tested-by: Marek Szyprowski # for Exynos relevant changes > > Thanks, > Robin. > > > Robin Murphy (13): > iommu: Always register bus notifiers > iommu: Move bus setup to IOMMU device registration > iommu/amd: Clean up bus_set_iommu() > iommu/arm-smmu: Clean up bus_set_iommu() > iommu/arm-smmu-v3: Clean up bus_set_iommu() > iommu/dart: Clean up bus_set_iommu() > iommu/exynos: Clean up bus_set_iommu() > iommu/ipmmu-vmsa: Clean up bus_set_iommu() > iommu/mtk: Clean up bus_set_iommu() > iommu/omap: Clean up bus_set_iommu() > iommu/tegra-smmu: Clean up bus_set_iommu() > iommu/virtio: Clean up bus_set_iommu() > iommu: Clean up bus_set_iommu() > > drivers/iommu/amd/amd_iommu.h | 1 - > drivers/iommu/amd/init.c | 9 +- > drivers/iommu/amd/iommu.c | 21 ---- > drivers/iommu/apple-dart.c | 30 +----- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 53 +--------- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 84 +-------------- > drivers/iommu/arm/arm-smmu/qcom_iommu.c | 4 - > drivers/iommu/exynos-iommu.c | 9 -- > drivers/iommu/fsl_pamu_domain.c | 4 - > drivers/iommu/intel/iommu.c | 1 - > drivers/iommu/iommu.c | 109 +++++++++----------- > drivers/iommu/ipmmu-vmsa.c | 35 +------ > drivers/iommu/msm_iommu.c | 2 - > drivers/iommu/mtk_iommu.c | 13 +-- > drivers/iommu/mtk_iommu_v1.c | 13 +-- > drivers/iommu/omap-iommu.c | 6 -- > drivers/iommu/rockchip-iommu.c | 2 - > drivers/iommu/s390-iommu.c | 6 -- > drivers/iommu/sprd-iommu.c | 5 - > drivers/iommu/sun50i-iommu.c | 2 - > drivers/iommu/tegra-smmu.c | 29 ++---- > drivers/iommu/virtio-iommu.c | 24 ----- > include/linux/iommu.h | 1 - > 23 files changed, 62 insertions(+), 401 deletions(-) > Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu