From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.2.78; helo=eur01-db5-obe.outbound.protection.outlook.com; envelope-from=evan.lloyd@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0078.outbound.protection.outlook.com [104.47.2.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9AC1D220C2A7A for ; Mon, 19 Mar 2018 09:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1bkE5wFEL7xubDhpO4vHWCqdwuBwBpjh3FJWDiI0trA=; b=Gs/6MmZR+DQ2fjrqf8cSyvo5g3McrcjclLbWt3k/049TfUK01t7zvuAOpGkJ735MSaBXgZp2WvcrWi2zW7vYhFdt9kLMzPRP6uzRFwmKDJ2Q7dNsFH2cHHrDnwNCguQdaxticNXi1uhC2sUIQeNtAdGRI4nu3qeuIAl3I2r4aRY= Received: from HE1PR0801MB1771.eurprd08.prod.outlook.com (10.168.150.14) by HE1PR0801MB1820.eurprd08.prod.outlook.com (10.168.150.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 16:15:59 +0000 Received: from HE1PR0801MB1771.eurprd08.prod.outlook.com ([fe80::69cc:3ecf:9c8c:f5a3]) by HE1PR0801MB1771.eurprd08.prod.outlook.com ([fe80::69cc:3ecf:9c8c:f5a3%17]) with mapi id 15.20.0588.016; Mon, 19 Mar 2018 16:16:00 +0000 From: Evan Lloyd To: Sami Mujawar , "edk2-devel@lists.01.org" CC: "leif.lindholm@linaro.org" , Matteo Carlini , Stephanie Hughes-Fitt , nd Thread-Topic: [staging/dynamictables PATCH 1/2] MdePkg: SMMUv3 updates for IORT table definitions Thread-Index: AQHTv5We+tlIdDZwSUqRRiZwGfTWtaPXu9/A Date: Mon, 19 Mar 2018 16:16:00 +0000 Message-ID: References: <20180319151847.85204-1-sami.mujawar@arm.com> <20180319151847.85204-2-sami.mujawar@arm.com> In-Reply-To: <20180319151847.85204-2-sami.mujawar@arm.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Evan.Lloyd@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0801MB1820; 7:lDd75ErrlW9PpeLz1+tKe2/FY9Gnl8slHEfkYjQJ53hwHy0O598jYAJ1UwGpFfPTAgO36ZAhtzyZHbCVa60QGSISEyfVbVD06pdH8LDwTlzt5yn5YszUTRyb7QSAYQXTaVFxj2ONDsGe0kzVJ0fMcd2rxPQMYCN0MDUyM33cTBkAOLYBvTr3z+gCnM6RDhX2ojl4w6/lZTiUmXd0HKWSzcCyI8vaJyGxY93GPsISez/ws3kLptnfjO8nhJDOHZXU x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b447b461-ea26-4892-65e6-08d58db4b459 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603328)(7153060)(7193020); SRVR:HE1PR0801MB1820; x-ms-traffictypediagnostic: HE1PR0801MB1820: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(162533806227266); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231221)(944501300)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0801MB1820; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1820; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(366004)(346002)(39860400002)(396003)(189003)(13464003)(199004)(5250100002)(478600001)(33656002)(2501003)(14454004)(114624004)(4326008)(72206003)(3280700002)(53936002)(25786009)(6436002)(10710500007)(55016002)(7110500001)(8676002)(9686003)(6306002)(7696005)(105586002)(5660300001)(99286004)(2900100001)(97736004)(2906002)(6246003)(76176011)(68736007)(26005)(54906003)(66066001)(2420400007)(305945005)(74316002)(86362001)(102836004)(6506007)(53546011)(59450400001)(7736002)(81166006)(6116002)(8936002)(106356001)(2950100002)(229853002)(81156014)(966005)(15650500001)(3660700001)(110136005)(3846002)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0801MB1820; H:HE1PR0801MB1771.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: DwuGdOO9j/n/pQXQahBd48GORp6dg0F9oj063U0bJZvupFbnEYH1wrhaO7bwIsbW5v8YQ/wT26Ib/DLCyZ/45GgcE5nY3h1YkoPtPFhva+S4uHjhOpYfgsODF14/y2xmI47p+BcD92/9GGKfOmt2f/a5Efh0INAXu9WPlhLtCn1/9OEIrRsJxcG2QT+hty1zClPUS/M7sgfqCH1cNAWX1Gh0l6Uhvnpxv7YbXf2qB4+uCYIjrXD2Q0pCVaJWSpauix3Y2CiuybWT8VZfwUBpmD7sXiTFFc+kMePaoF8fGo9PFVtPpqTl7oOdYpA1gKA9SpR/mCQssoBBhB6tXNnJ6w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: b447b461-ea26-4892-65e6-08d58db4b459 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:16:00.0774 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1820 Subject: Re: [staging/dynamictables PATCH 1/2] MdePkg: SMMUv3 updates for IORT table definitions X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 16:09:35 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Sami Mujawar [mailto:sami.mujawar@arm.com] > Sent: 19 March 2018 15:19 > To: edk2-devel@lists.01.org > Cc: Evan Lloyd ; leif.lindholm@linaro.org; Matteo > Carlini ; Stephanie Hughes-Fitt > ; nd > Subject: [staging/dynamictables PATCH 1/2] MdePkg: SMMUv3 updates for > IORT table definitions >=20 > Updated the IORT SMMUv3 Node structure and flags to match the IO > Remapping Table, Platform Design Document, Revision C dated > 15 MAY 2017. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Sami Mujawar > Reviewed-by: Ard Biesheuvel Reviewed-by: Evan Lloyd > --- > MdePkg/Include/IndustryStandard/IoRemappingTable.h | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/IoRemappingTable.h > b/MdePkg/Include/IndustryStandard/IoRemappingTable.h > index > c113afdd27843111bc7ad6e1de1108260fad2bbc..2e5cb45d7e2ffd4a0559ef > 706b71874843e3fdbd 100644 > --- a/MdePkg/Include/IndustryStandard/IoRemappingTable.h > +++ b/MdePkg/Include/IndustryStandard/IoRemappingTable.h > @@ -4,6 +4,7 @@ >=20 > http://infocenter.arm.com/help/topic/com.arm.doc.den0049c/DEN0049C_ > IO_Remapping_Table.pdf >=20 > Copyright (c) 2017, Linaro Limited. All rights reserved.
> + Copyright (c) 2018, ARM Limited. All rights reserved.
>=20 > This program and the accompanying materials > are licensed and made available under the terms and conditions of the > BSD License @@ -53,6 +54,11 @@ >=20 > #define EFI_ACPI_IORT_SMMUv3_FLAG_COHAC_OVERRIDE BIT0 > #define EFI_ACPI_IORT_SMMUv3_FLAG_HTTU_OVERRIDE BIT1 > +#define EFI_ACPI_IORT_SMMUv3_FLAG_PROXIMITY_DOMAIN BIT3 > + > +#define EFI_ACPI_IORT_SMMUv3_MODEL_GENERIC 0x0 > +#define EFI_ACPI_IORT_SMMUv3_MODEL_HISILICON_HI161X 0x1 > +#define EFI_ACPI_IORT_SMMUv3_MODEL_CAVIUM_CN99XX 0x2 >=20 > #define EFI_ACPI_IORT_ROOT_COMPLEX_ATS_UNSUPPORTED 0x0 > #define EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED 0x1 > @@ -165,7 +171,7 @@ typedef struct { > } EFI_ACPI_6_0_IO_REMAPPING_SMMU_NODE; >=20 > /// > -/// Node type 4: SMMUv4 node > +/// Node type 4: SMMUv3 node > /// > typedef struct { > EFI_ACPI_6_0_IO_REMAPPING_NODE Node; > @@ -179,6 +185,9 @@ typedef struct { > UINT32 Pri; > UINT32 Gerr; > UINT32 Sync; > + UINT8 ProximityDomain; > + UINT8 Reserved1[3]; > + UINT32 DeviceIdMappingIndex; > } EFI_ACPI_6_0_IO_REMAPPING_SMMU3_NODE; >=20 > /// > -- > 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' >=20