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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2D8AC6FD18 for ; Wed, 29 Mar 2023 10:25:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbjC2KZt (ORCPT ); Wed, 29 Mar 2023 06:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjC2KZs (ORCPT ); Wed, 29 Mar 2023 06:25:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA622125; Wed, 29 Mar 2023 03:25:47 -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 ams.source.kernel.org (Postfix) with ESMTPS id 568CBB82233; Wed, 29 Mar 2023 10:25:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924BFC433D2; Wed, 29 Mar 2023 10:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680085545; bh=0cMG6bHX7Yqr5TdtMRpR+wLldqDh5d48ZBc9aV3rya0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RH5cMEq1TxDcu997zF75ZqnDOdV41aWE3bQ01z358ENbF2sL6JwR5vbUnaadL9BY/ kWjW7m7LwrkwhtWK/pSeWgURZl5CAR2pPUeVfwM+hWigMAXOJy/dmBF3F8NV5hqio3 l9pNa0meCYxQb3BcZ/m6ztTHZPeD4MffUwVB/wf0= Date: Wed, 29 Mar 2023 12:25:42 +0200 From: Greg KH To: Nipun Gupta Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, song.bao.hua@hisilicon.com, mchehab+huawei@kernel.org, maz@kernel.org, f.fainelli@gmail.com, jeffrey.l.hugo@gmail.com, saravanak@google.com, Michael.Srba@seznam.cz, mani@kernel.org, yishaih@nvidia.com, jgg@ziepe.ca, jgg@nvidia.com, robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, masahiroy@kernel.org, ndesaulniers@google.com, rdunlap@infradead.org, baolu.lu@linux.intel.com, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, okaya@kernel.org, harpreet.anand@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, pieter.jansen-van-vuuren@amd.com, pablo.cascon@amd.com, git@amd.com Subject: Re: [PATCH v10 2/7] iommu: Add iommu probe for CDX bus Message-ID: References: <20230313132636.31850-1-nipun.gupta@amd.com> <20230313132636.31850-3-nipun.gupta@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230313132636.31850-3-nipun.gupta@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org On Mon, Mar 13, 2023 at 06:56:31PM +0530, Nipun Gupta wrote: > Add CDX bus to iommu_buses so that IOMMU probe is called > for it. > > Signed-off-by: Nipun Gupta > Reviewed-by: Pieter Jansen van Vuuren > Reviewed-by: Lu Baolu > Tested-by: Nikhil Agarwal > --- > drivers/iommu/iommu.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > index 10db680acaed..0025a631b8e1 100644 > --- a/drivers/iommu/iommu.c > +++ b/drivers/iommu/iommu.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -129,6 +130,9 @@ static struct bus_type * const iommu_buses[] = { > #ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS > &host1x_context_device_bus_type, > #endif > +#ifdef CONFIG_CDX_BUS > + &cdx_bus_type, > +#endif > }; Note, this prevents the ability for this struct bus_type from being moved into read-only memory in the future. But hopefully that will be fixed up eventually, you are in good company with some other busses here... Other than that, this series looks good, I'll queue this up through my tree for now as I seem to collect new subsystems. Feel free to send future patches through me as well until you get tired of that and want to send stuff to Linus directly. thanks, greg k-h 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 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 78AB0C74A5B for ; Wed, 29 Mar 2023 10:26:45 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1GCP+SrKopKuqPtoADQcHcpw5rh6oKYbO7daSL+AZwU=; b=k9Pm+yiukB2pBh YWPPEnm9D3wzVlpYB+0aG3isyDvj9HCQv+rSdOcjS3UleB2krfJaell/o18HsmgUjbJYPiE5ZJwmT Tl6ZbXBDFcisn29UN+/UI+bkdgbc9H3Jv6ufnSMQEmBHU5RnyGcgKKwfuh27zJ0cLAuMSw9q6vhMt Eqc6LvoPV4s9wvpGsO1p0F8eXq9yEmLeqzQ9miB+QXnKT3XfVEJjV5J9pCvRiUIWuDUYtRgFXz+4H VHkrQEbz7DRZJd7shm7/CRPg1tmJaRfifVbjuEesUYPkeyXlnRmZj7pCkCa/694M9FHEvw2Wlz6MF UrQD7RjR7QpoefuC9oxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phT01-00HRov-1O; Wed, 29 Mar 2023 10:25:49 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phSzy-00HRnt-0k for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2023 10:25:47 +0000 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 ACF6561C4A; Wed, 29 Mar 2023 10:25:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924BFC433D2; Wed, 29 Mar 2023 10:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680085545; bh=0cMG6bHX7Yqr5TdtMRpR+wLldqDh5d48ZBc9aV3rya0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RH5cMEq1TxDcu997zF75ZqnDOdV41aWE3bQ01z358ENbF2sL6JwR5vbUnaadL9BY/ kWjW7m7LwrkwhtWK/pSeWgURZl5CAR2pPUeVfwM+hWigMAXOJy/dmBF3F8NV5hqio3 l9pNa0meCYxQb3BcZ/m6ztTHZPeD4MffUwVB/wf0= Date: Wed, 29 Mar 2023 12:25:42 +0200 From: Greg KH To: Nipun Gupta Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, song.bao.hua@hisilicon.com, mchehab+huawei@kernel.org, maz@kernel.org, f.fainelli@gmail.com, jeffrey.l.hugo@gmail.com, saravanak@google.com, Michael.Srba@seznam.cz, mani@kernel.org, yishaih@nvidia.com, jgg@ziepe.ca, jgg@nvidia.com, robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, masahiroy@kernel.org, ndesaulniers@google.com, rdunlap@infradead.org, baolu.lu@linux.intel.com, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, okaya@kernel.org, harpreet.anand@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, pieter.jansen-van-vuuren@amd.com, pablo.cascon@amd.com, git@amd.com Subject: Re: [PATCH v10 2/7] iommu: Add iommu probe for CDX bus Message-ID: References: <20230313132636.31850-1-nipun.gupta@amd.com> <20230313132636.31850-3-nipun.gupta@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230313132636.31850-3-nipun.gupta@amd.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_032546_344435_FE4D3F19 X-CRM114-Status: GOOD ( 15.35 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 13, 2023 at 06:56:31PM +0530, Nipun Gupta wrote: > Add CDX bus to iommu_buses so that IOMMU probe is called > for it. > > Signed-off-by: Nipun Gupta > Reviewed-by: Pieter Jansen van Vuuren > Reviewed-by: Lu Baolu > Tested-by: Nikhil Agarwal > --- > drivers/iommu/iommu.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > index 10db680acaed..0025a631b8e1 100644 > --- a/drivers/iommu/iommu.c > +++ b/drivers/iommu/iommu.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -129,6 +130,9 @@ static struct bus_type * const iommu_buses[] = { > #ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS > &host1x_context_device_bus_type, > #endif > +#ifdef CONFIG_CDX_BUS > + &cdx_bus_type, > +#endif > }; Note, this prevents the ability for this struct bus_type from being moved into read-only memory in the future. But hopefully that will be fixed up eventually, you are in good company with some other busses here... Other than that, this series looks good, I'll queue this up through my tree for now as I seem to collect new subsystems. Feel free to send future patches through me as well until you get tired of that and want to send stuff to Linus directly. thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel