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 26765C433EF for ; Thu, 10 Mar 2022 10:45:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B269B40B3E; Thu, 10 Mar 2022 10:45:58 +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 M7lufcdoz_qV; Thu, 10 Mar 2022 10:45:57 +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 360C740B06; Thu, 10 Mar 2022 10:45:57 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D8650C0012; Thu, 10 Mar 2022 10:45:56 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 523F0C000B for ; Thu, 10 Mar 2022 10:45:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2D84E611EE for ; Thu, 10 Mar 2022 10:45:55 +0000 (UTC) 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 nxHLOzkqOI98 for ; Thu, 10 Mar 2022 10:45:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by smtp3.osuosl.org (Postfix) with ESMTPS id F2D00611F9 for ; Thu, 10 Mar 2022 10:45:53 +0000 (UTC) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KDm0B5Kc7zfYqJ; Thu, 10 Mar 2022 18:44:26 +0800 (CST) Received: from dggpemm100008.china.huawei.com (7.185.36.125) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 18:45:50 +0800 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by dggpemm100008.china.huawei.com (7.185.36.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 18:45:49 +0800 Received: from lhreml710-chm.china.huawei.com ([169.254.81.184]) by lhreml710-chm.china.huawei.com ([169.254.81.184]) with mapi id 15.01.2308.021; Thu, 10 Mar 2022 10:45:47 +0000 To: "eric.auger@redhat.com" , "linux-arm-kernel@lists.infradead.org" , "linux-acpi@vger.kernel.org" , "iommu@lists.linux-foundation.org" Subject: RE: [PATCH v8 03/11] ACPI/IORT: Add helper functions to parse RMR nodes Thread-Topic: [PATCH v8 03/11] ACPI/IORT: Add helper functions to parse RMR nodes Thread-Index: AQHYJzoU7y0scyFWHEWb6SBtCVveFqy4hbiAgAAB0fA= Date: Thu, 10 Mar 2022 10:45:47 +0000 Message-ID: <464edc7655514a89afd5d91a4553da4d@huawei.com> References: <20220221154344.2126-1-shameerali.kolothum.thodi@huawei.com> <20220221154344.2126-4-shameerali.kolothum.thodi@huawei.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.85.233] MIME-Version: 1.0 X-CFilter-Loop: Reflected Cc: "robin.murphy@arm.com" , "jon@solid-run.com" , Linuxarm , "steven.price@arm.com" , "Guohanjun \(Hanjun Guo\)" , yangyicong , "Sami.Mujawar@arm.com" , "will@kernel.org" , wanghuiqiang 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: , From: Shameerali Kolothum Thodi via iommu Reply-To: Shameerali Kolothum Thodi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi Eric, > -----Original Message----- > From: Eric Auger [mailto:eric.auger@redhat.com] > Sent: 10 March 2022 10:32 > To: Shameerali Kolothum Thodi ; > linux-arm-kernel@lists.infradead.org; linux-acpi@vger.kernel.org; > iommu@lists.linux-foundation.org > Cc: Linuxarm ; lorenzo.pieralisi@arm.com; > joro@8bytes.org; robin.murphy@arm.com; will@kernel.org; wanghuiqiang > ; Guohanjun (Hanjun Guo) > ; steven.price@arm.com; Sami.Mujawar@arm.com; > jon@solid-run.com; yangyicong > Subject: Re: [PATCH v8 03/11] ACPI/IORT: Add helper functions to parse RMR > nodes > > Hi Shameer, > > On 2/21/22 4:43 PM, Shameer Kolothum wrote: > > The helper functions here parse through the IORT RMR nodes and > > populate a reserved region list corresponding to a given iommu > > and device(optional). These also go through the ID mappings of > > the RMR node and retrieves all the SIDs associated with a RMR > > descriptor. > > > > Signed-off-by: Shameer Kolothum > > > --- > > drivers/acpi/arm64/iort.c | 225 > ++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 225 insertions(+) > > > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > > index 0730c4dbb700..05da9ebff50a 100644 > > --- a/drivers/acpi/arm64/iort.c > > +++ b/drivers/acpi/arm64/iort.c > > @@ -830,6 +830,231 @@ static struct acpi_iort_node > *iort_get_msi_resv_iommu(struct device *dev) > > return NULL; > > } > > [...] > > +static void iort_find_rmrs(struct acpi_iort_node *iommu, struct device *dev, > > + struct list_head *head) > > +{ > > + struct acpi_table_iort *iort; > > + struct acpi_iort_node *iort_node, *iort_end; > > + int i; > > + > > + if (iort_table->revision < 5) > This means E.b and E.c revs are not supported. Is it what we want? Yes. E.b lacks memory attributes info associated with RMR node. Though E.c added those, it broke backward compatibility with ACPICA E.b support and is now deprecated. Thanks, Shameer _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu