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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 581A0C4332F for ; Mon, 6 Nov 2023 07:27:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E44B4610D7; Mon, 6 Nov 2023 07:27:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E44B4610D7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xY_j_yzQ1Es1; Mon, 6 Nov 2023 07:27:35 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6BE32610CD; Mon, 6 Nov 2023 07:27:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6BE32610CD Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 46AE1C0071; Mon, 6 Nov 2023 07:27:34 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id AEACCC0032 for ; Mon, 6 Nov 2023 07:27:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 86BEF610CE for ; Mon, 6 Nov 2023 07:27:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 86BEF610CE X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kuf5cIJFIx7S for ; Mon, 6 Nov 2023 07:27:30 +0000 (UTC) X-Greylist: delayed 590 seconds by postgrey-1.37 at util1.osuosl.org; Mon, 06 Nov 2023 07:27:30 UTC DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5813961038 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by smtp3.osuosl.org (Postfix) with ESMTPS id 5813961038 for ; Mon, 6 Nov 2023 07:27:30 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 4BBAD6732D; Mon, 6 Nov 2023 08:17:33 +0100 (CET) Date: Mon, 6 Nov 2023 08:17:33 +0100 From: Christoph Hellwig To: Jason Gunthorpe Subject: Re: [PATCH RFC 01/17] iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops() Message-ID: <20231106071733.GA17258@lst.de> References: <0-v1-5f734af130a3+34f-iommu_fwspec_jgg@nvidia.com> <1-v1-5f734af130a3+34f-iommu_fwspec_jgg@nvidia.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1-v1-5f734af130a3+34f-iommu_fwspec_jgg@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: linux-hyperv@vger.kernel.org, "Rafael J. Wysocki" , Catalin Marinas , Lorenzo Pieralisi , Robert Moore , Thierry Reding , Hanjun Guo , acpica-devel@lists.linuxfoundation.org, Christoph Hellwig , Alyssa Rosenzweig , Marek Szyprowski , Jean-Philippe Brucker , Wei Liu , Will Deacon , Joerg Roedel , Dexuan Cui , Russell King , linux-riscv@lists.infradead.org, Jonathan Hunter , linux-acpi@vger.kernel.org, iommu@lists.linux.dev, Vineet Gupta , linux-snps-arc@lists.infradead.org, Len Brown , devicetree@vger.kernel.org, Albert Ou , Sven Peter , Haiyang Zhang , Krishna Reddy , Rob Herring , Paul Walmsley , linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, Thomas Bogendoerfer , Robin Murphy , Zhenhua Huang , Hector Martin , linux-mips@vger.kernel.org, Palmer Dabbelt , asahi@lists.linux.dev, Suravee Suthikulpanit , Sudeep Holla , David Woodhouse , Lu Baolu X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" On Fri, Nov 03, 2023 at 01:44:46PM -0300, Jason Gunthorpe wrote: > This is not being used to pass ops, it is just a way to tell if an > iommu driver was probed. These days this can be detected directly via > device_iommu_mapped(). Call device_iommu_mapped() in the two places that > need to check it and remove the iommu parameter everywhere. Yes, that's much better than exposing the iommu ops to a place that should not care about them: Acked-by: Christoph Hellwig _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization