Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4743632rwb; Wed, 17 Aug 2022 05:31:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5pfSaJM9s01jm/J2p/F+hpDG/0H3hRLNjX9qReYtfF9ZWcXMvengqRL+4SwsDMq7hnxTWC X-Received: by 2002:aa7:9637:0:b0:52d:b082:cd28 with SMTP id r23-20020aa79637000000b0052db082cd28mr25332243pfg.43.1660739499181; Wed, 17 Aug 2022 05:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660739499; cv=none; d=google.com; s=arc-20160816; b=SUAsKSUbH0Mbw5nBiJpV33JaakZVRfhSH2pBo3AAbo2EK7aJsGEuq3WGUhKSzwf0W0 PPJo+WWhltHcCgowjOkORlsRBfDrUkA75b6KVXufMzAaywCiS10UMwuqi84OqnCQTQ6y bK9+Sb5likFpq/RPfN1n+AGUWJW/kjBHjQBMHDMzyRUVLus6t17hDtUl8lPGFm+Ds3fY qmKYLsGHloxROglJCTWIZoeIjBwmbMj7N/gz4CC2g8gmFU52qIXy+p39Bgcxc1hJGcaY iFwA332BcaJatfXMhxvlUdy+/vnuOorKRQYuz3mTnoPVVTkeurOPpY95Eqct62hq28yL j5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=rsNboq/52NOpBREkBnlTSnXEWuhFZ17rP0ohr5tWGJQ=; b=d2M9pWNfeLHAXf09SwYnqS0oFWPle16eS6vuGai8vCo50u38vp/NE62HFT+3EN5S5m n/3wTQn8vTERsVuUKBgLIuOOdP6rr9+MgFfM7TR1em8JMTmbTSvvQRkWLFIY9gn2o+nE aIjq47EBknHROLagoEu3892/WKIiCi6lzMKDGz39ZOyOcVF5pAUzOWFfotkriN3UOt/o XH9PiKAo6V8SclOu8MgSOGUJCDvlYo9q8rAaylIc2YFLCOAsuZ6s603sKJ7FuJsEdtY6 146W1ZTuUuP1Z5BOHkcsUACK+xSixSm7OHO/h3d/aPHrqlPJkj5xnxmKo4NxL/q6dSNc 7niQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pR/Fqpc4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a056a00248c00b0052c78eecaffsi16417942pfv.174.2022.08.17.05.31.26; Wed, 17 Aug 2022 05:31:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pR/Fqpc4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbiHQMTR (ORCPT + 99 others); Wed, 17 Aug 2022 08:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238988AbiHQMTP (ORCPT ); Wed, 17 Aug 2022 08:19:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E920369F7D; Wed, 17 Aug 2022 05:19:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F67260B82; Wed, 17 Aug 2022 12:19:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFD7FC433D6; Wed, 17 Aug 2022 12:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660738752; bh=BBTXORGlFEwLgbRuxkkzNMEk2vrtwEdIFHOCs3ywN/0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pR/Fqpc4qFciyFif+Rz7Y2QU1wPblmLNOUD0NN87Gmz8UpPn1g3rm0bAXA5dTfs33 AqfH02QQfopKJx5JzziZnxrQDP4xohcoSzhk5Hp8ItmrhQjEXbPV5gX2RDTRJuH1AY b8Gu8UAdLP4Gj2DHWLrRICkNKd3q/C76ls5hom4lTX20h7Pt9rSFEG8gtl/3Qrb6kZ xFcHDLZK/FNXRKWKYuBfTMETBatSkKQhZCjqR4g0xTQEoDWP2kRbg+uJ38bYhRWLzA T/V2c978rL/8qyhb9ZGzLsBMGgNmzZhjUY9CFNjE3j2TD48GpL6XIbwc/TYAHYJcTB 5xvlEqfxQY6PA== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oOI0s-003j3K-Hy; Wed, 17 Aug 2022 13:19:10 +0100 Date: Wed, 17 Aug 2022 13:19:10 +0100 Message-ID: <87r11fvz9d.wl-maz@kernel.org> From: Marc Zyngier To: Robin Murphy Cc: joro@8bytes.org, will@kernel.org, catalin.marinas@arm.com, jean-philippe@linaro.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, tglx@linutronix.de, alex.williamson@redhat.com, cohuck@redhat.com, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 2/3] iommu/dma: Move public interfaces to linux/iommu.h In-Reply-To: <9cd99738f52094e6bed44bfee03fa4f288d20695.1660668998.git.robin.murphy@arm.com> References: <9cd99738f52094e6bed44bfee03fa4f288d20695.1660668998.git.robin.murphy@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, joro@8bytes.org, will@kernel.org, catalin.marinas@arm.com, jean-philippe@linaro.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, tglx@linutronix.de, alex.williamson@redhat.com, cohuck@redhat.com, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Aug 2022 18:28:04 +0100, Robin Murphy wrote: > > The iommu-dma layer is now mostly encapsulated by iommu_dma_ops, with > only a couple more public interfaces left pertaining to MSI integration. > Since these depend on the main IOMMU API header anyway, move their > declarations there, taking the opportunity to update the half-baked > comments to proper kerneldoc along the way. > > Signed-off-by: Robin Murphy > --- > > Note that iommu_setup_dma_ops() should also become internal in a future > phase of the great IOMMU API upheaval - for now as the last bit of true > arch code glue I consider it more "necessarily exposed" than "public". > > arch/arm64/mm/dma-mapping.c | 2 +- > drivers/iommu/dma-iommu.c | 15 ++++++++++-- > drivers/irqchip/irq-gic-v2m.c | 2 +- > drivers/irqchip/irq-gic-v3-its.c | 2 +- > drivers/irqchip/irq-gic-v3-mbi.c | 2 +- > drivers/irqchip/irq-ls-scfg-msi.c | 2 +- > drivers/vfio/vfio_iommu_type1.c | 1 - > include/linux/dma-iommu.h | 40 ------------------------------- > include/linux/iommu.h | 36 ++++++++++++++++++++++++++++ > 9 files changed, 54 insertions(+), 48 deletions(-) For the irqchip side: Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.