From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.77]) by mx.groups.io with SMTP id smtpd.web12.86.1623775026750523844 for ; Tue, 15 Jun 2021 09:37:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=WtwG/w6F; spf=pass (domain: arm.com, ip: 40.107.6.77, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/CmI67eo3cWo5iDQAQZAPfkUZ0RWaE8Dz0ptV37TLpI=; b=WtwG/w6F4AwIcj2JEQvq4SHgunfrUcn4BcSQTmnxvoKZpJ1k9hQW+szcm3sbZe6ke962aFTGwfg5O2/FO78ATZJ/SNhDqGn+Ujp8JDObOUDgXAkPNDADTxcTPr2W9adBEINqYpfpu+SMNzLh30kTXO4Zmd0Z+Jfr+DFr634DZM4= Received: from DU2P251CA0011.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::6) by AM6PR08MB5207.eurprd08.prod.outlook.com (2603:10a6:20b:ea::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.25; Tue, 15 Jun 2021 16:37:04 +0000 Received: from DB5EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:230:cafe::9b) by DU2P251CA0011.outlook.office365.com (2603:10a6:10:230::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Tue, 15 Jun 2021 16:37:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT060.mail.protection.outlook.com (10.152.21.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 16:37:04 +0000 Received: ("Tessian outbound 596959d6512a:v93"); Tue, 15 Jun 2021 16:37:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 545cc09c498c9de9 X-CR-MTA-TID: 64aa7808 Received: from e96f734b0f87.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9B814D51-326C-48F4-BFD6-44E35BAEA769.1; Tue, 15 Jun 2021 16:36:57 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e96f734b0f87.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 15 Jun 2021 16:36:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CH0RaV9MfSjVdWmrDA/qVg8NWXKpnXRb9uqIrBttrKaCjXkpuKFp+k1AswYerJMp1ZdFsT2jgZGhFAcqYcIl2NfKXgCiDwZ++p2DH4mc2yNR5lnN9sN2D+f3I8i5UWudjb8JOx+kOT3qPWZbjQcqYja3n5D8PLKL4XDWacwxegBlB/pKTqtgiPkEKXzDu2huYRiUBB3os9T2IriKEWre/m0OfZ1HRxRo4bafWzGRCvrI3Nku9AY3FQqp5wcX7QXq+dIPmlK2G8KKszLmXn6ZDX+FpTn9O+Mcz5MCeFpMBMZEbUs4dn3PS6EPzWuBoCwTSz0OAEuIkUo+SHYkJb+9nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/CmI67eo3cWo5iDQAQZAPfkUZ0RWaE8Dz0ptV37TLpI=; b=cWarcopWxpJDWKgPtwWj1pnjmqFt9ew8h6yNDCr6VUao+zvxJSboYxJHb0HoE53M16slaRFc4z8x4nDGKQ7mJcKzh7xk6wiD66BHGhjzG4RRqYoXBGY6rlYH9fEX66xW1yYpusJ73E8dmnkMvOSGsMrNU0KzWlO32S7DH0v9iMeYNoxLsvUY70ZdfRxV9nppSuMjmtdmWEh4UtBYnH/WV4B5qWprC3fEgPbw799nwYOxr1ZMERGnXWvpIjc8fqkaK7u+LD3fnXlj0nUYs6B4IW9oJD9l4Y8FdGmFfR/fo4YxHe+Nwcs2Y8IAbyMWiXvhqd5tmzqortaFtVOj5glxEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/CmI67eo3cWo5iDQAQZAPfkUZ0RWaE8Dz0ptV37TLpI=; b=WtwG/w6F4AwIcj2JEQvq4SHgunfrUcn4BcSQTmnxvoKZpJ1k9hQW+szcm3sbZe6ke962aFTGwfg5O2/FO78ATZJ/SNhDqGn+Ujp8JDObOUDgXAkPNDADTxcTPr2W9adBEINqYpfpu+SMNzLh30kTXO4Zmd0Z+Jfr+DFr634DZM4= Received: from AM6P193CA0047.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::24) by AM4PR0802MB2129.eurprd08.prod.outlook.com (2603:10a6:200:5d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.25; Tue, 15 Jun 2021 16:36:44 +0000 Received: from AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8e:cafe::29) by AM6P193CA0047.outlook.office365.com (2603:10a6:209:8e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Tue, 15 Jun 2021 16:36:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT005.mail.protection.outlook.com (10.152.16.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 16:36:44 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 15 Jun 2021 16:36:24 +0000 Received: from E114225.Arm.com (10.1.196.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 15 Jun 2021 16:36:23 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , Subject: [PATCH v1 7/8] DynamicTablesPkg: Update ArmNameSpaceObjects for IORT Rev E.b Date: Tue, 15 Jun 2021 17:36:17 +0100 Message-ID: <20210615163618.85200-8-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20210615163618.85200-1-sami.mujawar@arm.com> References: <20210615163618.85200-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bef3dcde-a082-4cf7-e132-08d9301bceef X-MS-TrafficTypeDiagnostic: AM4PR0802MB2129:|AM6PR08MB5207: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: aQodJSGAo5E4GEG4yskuBVQjumGvzPxFTPpE2L8ARZfXDdAd2YX4pJSV5hp144jzKYStgazSh0bA+Q3P1IIwgs6pQayWdGM5xFllASLd5VLITWgwxArDBK7ipkyZIGErCozkBoE8rEsuvhAVlSyErSSSOIvoDF5X0KYHZtJafNZSgHEBwWEM851BsdpMBdLVxj1QtAvFeNNS9o73e5hlCeYGxzMnElGlqphYwJoQPIWS/yXuAWEZ7QJVVreH1e52flLaNyxRMsgkhB10Ngz5N9gHA7QqWhEAIw3FrliaR5Gc6nlLIuuRpIcth6MzMCx51q4Im4vqUX9lNgU9YOdJBlRGsmrKZYukY68LsUMOoSY5KY9vORCnQxXml+5Gpc5dJ8sC9+22a5hyOYhGnHutlVwiktjSmzafBeWaFopRDoe/u0JIosPFw6vxXEy2+EyLCC+P7LS8v9d0Yp2ixevgOyV/qnk17Ggoxm0HRAwciy4UpnOXjG8+5DnXrREM+pnI0bzhQ6rdxzEVeEde2SWynO2h6ay8M+OFUt+DNuK7T3KZXYH3UnC6PYAHiCyVMjhXXqCKWKuZAbf6EKlMdTyK3u/3E9gnUaYQVF4S5m1B3YgSlUWwcrJQpbS+YKp7zBGK7eEW9YV8KBK2NTWvh5Qylm1ftasqiDSNUVka/XUA8xNLSNLUvSQre86HsrjgAVYJVF6vaRBp+bbJMAZiZ0tdI0ZFZzufEA3m3jcaTkhKl9tmrl9IpHyoO1zjIFMAgx34+6TFVhqweTeiIehccBDwaImJo8nFPYYsV3kvl14KOrtwdXo2NoACKqhSSx8wh2vWxw2JWn29bdQkThtkwxHNBLpCt4GITQzHgQQo3FqJ+Xc= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(396003)(376002)(346002)(39850400004)(36840700001)(46966006)(336012)(4326008)(44832011)(15650500001)(426003)(316002)(81166007)(47076005)(356005)(6916009)(82740400003)(26005)(36756003)(36860700001)(83380400001)(2616005)(86362001)(82310400003)(70586007)(54906003)(70206006)(2906002)(19627235002)(6666004)(186003)(8676002)(1076003)(8936002)(5660300002)(478600001)(7696005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2129 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ed6586c1-742e-4421-e071-08d9301bc31f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g+wLZby5FvY3BuKlLBwiZ2fhcnRct3+SzuZ69gwEaCIyOzo+yaejkASCXSW7jYzKLJj7UOBF1FUg2UJ8GELMnqB92Aq7wd3r+nDQYDyDgcVcj8NJdYHc3fvTqEhb0byj0l42LW4rShRKTpSfC+X2NY5ms9t/3dDsnIIIpXjvgcuVXvc6IHjKP/A3020PNW7QUmDQsTjDhvMql5YpLLyfPg5ccsI4v1Met4d3KwRJY48juHoiM5rIamjTfizNxJyH9ufggN/zunqlyL+nzbCWG/uzvFJZYDAkYmq2n+/wikFLoqGIcRe351uNQpQmjcN/5qYdYpNkxWeOxqir/icNM3vselz/dRQA/ehrLYLp3dIC5TZR6FZguG73orhDzPTvI+0UvJ5Mi8+fwnOXKgFFvr0E1bOmJ5l0dUhAoPB8nUaUuV5HhaTGOJWgAuqyNbCgbpKrJWGcQPXUPykfhEGySW9nQNy+Al2y+58pzBpKCKuabp7WtKAZQSC8JD0wF3j8e99tM23Xaps5yiaPoBlFxzjkvwGxFXDo9JGV1myIOcPAz7O889fYAvPr5MFd9bn/Vi0wbFRBadl1PoYZ3qK7GxKtu3fTm1Yw8qwYYR6aS6boTEMKBXC9Dxw7HkfnBXOnjwwFBSGRMSV35Whv02V5vFWAC56pQSXHbwL2RsqFJ5hXLoIDYixZg5k0Cg6yzfTbYneulRPwyvhrDmDCptR79nCogyasNGNIIefri5HRqBFKjXzBsONJgOxtsowIhkdGeRZt2u4u3De0KVuBB239qmIkuRp0GqfRkx56RBvX2e7sN78mYeJzs942wxAuxZQm X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(39850400004)(136003)(396003)(376002)(346002)(46966006)(36840700001)(82740400003)(478600001)(19627235002)(70586007)(4326008)(36860700001)(81166007)(8936002)(82310400003)(6666004)(426003)(70206006)(2906002)(36756003)(54906003)(336012)(6916009)(8676002)(44832011)(47076005)(83380400001)(2616005)(5660300002)(186003)(15650500001)(7696005)(1076003)(316002)(26005)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 16:37:04.3593 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bef3dcde-a082-4cf7-e132-08d9301bceef X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5207 Content-Type: text/plain Bugzilla: 3458 - Add support IORT Rev E.b specification updates (https://bugzilla.tianocore.org/show_bug.cgi?id=3458) The IO Remapping Table, Platform Design Document, Revision E.b, Feb 2021 (https://developer.arm.com/documentation/den0049/) introduces the following updates, collectively including the updates and errata fixes to Rev E and Rev E.a: - increments the IORT table revision to 3. - updates the node definition to add an 'Identifier' field. - adds definition of node type 6 - Reserved Memory Range node. - adds definition for Memory Range Descriptors. - adds flag to indicate PRI support for root complexes. - adds flag to indicate if the root complex supports forwarding of PASID information on translated transactions to the SMMU. Therefore, update the Arm namespace objects to: - add Identifier field to IORT nodes. - introduce enums to represent RMR nodes and Memory Range descriptors. - add definition of node type 6 - Reserved Memory Range node. - add definition for Memory Range Descriptors. Signed-off-by: Sami Mujawar --- DynamicTablesPkg/Include/ArmNameSpaceObjects.h | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h index 19dcae13b2191e5f0b03ea85edec1191d2a406bf..98143cb5df127273cdd75452170fa651372b3896 100644 --- a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h @@ -58,6 +58,8 @@ typedef enum ArmObjectID { EArmObjGenericInitiatorAffinityInfo, ///< 34 - Generic Initiator Affinity EArmObjSerialPortInfo, ///< 35 - Generic Serial Port Info EArmObjCmn600Info, ///< 36 - CMN-600 Info + EArmObjRmr, ///< 37 - Reserved Memory Range Node + EArmObjMemoryRangeDescriptor, ///< 38 - Memory Range Descriptor EArmObjMax } EARM_OBJECT_ID; @@ -466,6 +468,9 @@ typedef struct CmArmItsGroupNode { UINT32 ItsIdCount; /// Reference token for the ITS identifier array CM_OBJECT_TOKEN ItsIdToken; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_ITS_GROUP_NODE; /** A structure that describes the @@ -497,6 +502,9 @@ typedef struct CmArmNamedComponentNode { the entry in the namespace for this object. */ CHAR8* ObjectName; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_NAMED_COMPONENT_NODE; /** A structure that describes the @@ -525,6 +533,9 @@ typedef struct CmArmRootComplexNode { UINT32 PciSegmentNumber; /// Memory address size limit UINT8 MemoryAddressSize; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_ROOT_COMPLEX_NODE; /** A structure that describes the @@ -567,6 +578,9 @@ typedef struct CmArmSmmuV1SmmuV2Node { UINT32 SMMU_NSgCfgIrpt; /// SMMU_NSgCfgIrpt interrupt flags UINT32 SMMU_NSgCfgIrptFlags; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_SMMUV1_SMMUV2_NODE; /** A structure that describes the @@ -603,6 +617,9 @@ typedef struct CmArmSmmuV3Node { UINT32 ProximityDomain; /// Index into the array of ID mapping UINT32 DeviceIdMappingIndex; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_SMMUV3_NODE; /** A structure that describes the @@ -627,6 +644,9 @@ typedef struct CmArmPmcgNode { /// Reference token for the IORT node associated with this node CM_OBJECT_TOKEN ReferenceToken; + + /// Unique identifier for this node. + UINT32 Identifier; } CM_ARM_PMCG_NODE; /** A structure that describes the @@ -878,6 +898,44 @@ typedef struct CmArmCmn600Info { CM_ARM_EXTENDED_INTERRUPT DtcInterrupt[4]; } CM_ARM_CMN_600_INFO; +/** A structure that describes the + RMR node for the Platform. + + ID: EArmObjRmr +*/ +typedef struct CmArmRmrNode { + /// An unique token used to identify this object + CM_OBJECT_TOKEN Token; + /// Number of ID mappings + UINT32 IdMappingCount; + /// Reference token for the ID mapping array + CM_OBJECT_TOKEN IdMappingToken; + + /// Reserved Memory Range flags. + UINT32 Flags; + + /// Memory range descriptor count. + UINT32 MemRangeDescCount; + /// Reference token for the Memory Range descriptor array + CM_OBJECT_TOKEN MemRangeDescToken; + + /// Unique identifier for this node. + UINT32 Identifier; +} CM_ARM_RMR_NODE; + +/** A structure that describes the + Memory Range descriptor. + + ID: EArmObjMemoryRangeDescriptor +*/ +typedef struct CmArmRmrDescriptor { + /// Base address. + UINT64 BaseAddress; + + /// Length. + UINT64 Length; +} CM_ARM_MEMORY_RANGE_DESCRIPTOR; + #pragma pack() #endif // ARM_NAMESPACE_OBJECTS_H_ -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'