From nobody Mon Feb 9 18:18:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76659+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1623923773706115.79508114461339; Thu, 17 Jun 2021 02:56:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 3OMVYY1788612xjdhPffPkik; Thu, 17 Jun 2021 02:56:13 -0700 X-Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.87]) by mx.groups.io with SMTP id smtpd.web10.5649.1623923767286982620 for ; Thu, 17 Jun 2021 02:56:07 -0700 X-Received: from AM6P193CA0082.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::23) by DB8PR08MB5052.eurprd08.prod.outlook.com (2603:10a6:10:e8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15; Thu, 17 Jun 2021 09:56:01 +0000 X-Received: from VE1EUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::38) by AM6P193CA0082.outlook.office365.com (2603:10a6:209:88::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Thu, 17 Jun 2021 09:56:01 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+76659+1787277+3901457@groups.io; helo=mail02.groups.io; 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; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT039.mail.protection.outlook.com (10.152.19.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Thu, 17 Jun 2021 09:56:00 +0000 X-Received: ("Tessian outbound d8701fbbf774:v93"); Thu, 17 Jun 2021 09:56:00 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1de7b9ccd148266d X-CR-MTA-TID: 64aa7808 X-Received: from d247b08d9d20.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 20368E46-D213-41D3-88CE-EAF48FD17206.1; Thu, 17 Jun 2021 09:55:53 +0000 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d247b08d9d20.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Jun 2021 09:55:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lkPEMfqqfF+GVr4cND62M1Bt1LBuj2yHXp/aCJ8L4XJ/VjY7xKUiO9+uKnv7PEipAz0rHULz1hrRfErw+I/JBFha/pk2eIyNPIDUhoR5nbIURZECAk2xGfQ6c661139yXYAXFMJH8MNscaxY57FNwg2r3+YgfsBN6NWGUeLWMUFh1CXPIPJYVA0zMU1aXPwXAeC+fq9XsmQlWozaxIiLEK0mYIto4p6Vd8jCAT33xoaXw17phZLWUUWzIM9NNUJgU83AH9DersHPKH4O9JgFO3HYYIgqBu9Plw66WXcQgQadUF0LmTiCDs067sS5h0y7DYrhwOQPMAWf15vbK7PO6g== 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=3KWqEbqC/dYd8VSGBIpynCGhD+18/G0/gIkiGaeDh0Y=; b=OcprdyHXgATp5RLWI+b8houlEMXiWD68+sKdUBnLdo2YPweeSORyCMZwXbUnIQg2WUy4AHti5FPcFBO9cJTCuAPhe6Rxj/iYXT7o3JyNaJYZdwRJ1csC0OigVZFGH9K5Y03SdOaaGuP5z3OUfoJ4Xi2qfpp2cY3mAa4LTOj+anrScxcY9exZJrXZhIm24QCvpUwDP+TG36vYY481qa1GJeAXkUgmiFREvqkutvZl5sgyB3Fla1GeRkSG9Ix4YoozRC4XzmqsLhbLq2PFpTOKDxXePfct6UnzvMZFOW5KLOaoNPGN0g7N7HUm+JYNMXt+Mf07tUgStFBj0TWfB27c8w== 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 X-Received: from AM5PR0701CA0003.eurprd07.prod.outlook.com (2603:10a6:203:51::13) by AM0PR08MB3857.eurprd08.prod.outlook.com (2603:10a6:208:104::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Thu, 17 Jun 2021 09:55:51 +0000 X-Received: from AM5EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:51:cafe::ef) by AM5PR0701CA0003.outlook.office365.com (2603:10a6:203:51::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.7 via Frontend Transport; Thu, 17 Jun 2021 09:55:51 +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; X-Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT040.mail.protection.outlook.com (10.152.17.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4242.16 via Frontend Transport; Thu, 17 Jun 2021 09:55:51 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.14; Thu, 17 Jun 2021 09:55:45 +0000 X-Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Thu, 17 Jun 2021 09:55:44 +0000 X-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; Thu, 17 Jun 2021 09:55:44 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , Subject: [edk2-devel] [PATCH v2 7/8] DynamicTablesPkg: Update ArmNameSpaceObjects for IORT Rev E.b Date: Thu, 17 Jun 2021 10:55:36 +0100 Message-ID: <20210617095538.93280-8-sami.mujawar@arm.com> In-Reply-To: <20210617095538.93280-1-sami.mujawar@arm.com> References: <20210617095538.93280-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff200aac-61c3-425c-2f9a-08d931761cca X-MS-TrafficTypeDiagnostic: AM0PR08MB3857:|DB8PR08MB5052: 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: 54wLry9nZVvLKVALwAmMt/QD/TdlYieE/FQVIISrxM9VWUfIq4xhGgEqxmoVuVk7G4Am6x6hETlrrECljGu0XfUIz0uEG6/EwCLTayi9OBI4TWxYu25kCl0sC6HC8CL7iPcOrChu5InBiRa5Ib+HKorQvNc+6PLBdbbsspHjd5co1tyQ9mowKZA0PkpOrWO5jbJpz+0QjoWQguaH5bUkNa/S2oNAnqsnLTYHuVJ1YAWAXAiKrCLz8FPW036CTVxLkMjiZcu0Q2p3iBGsQfjfzdleDbuqKujHqoqE+E/Jh7vFhm4aTlpN8YGk5N0J8fk4j5ydhVMLwMAiE/qhEGh6u98Nm0JLVY60Eil8knxFzHX3PkPjeSL6UXyYKAE2ZpYq/37wkpfzuKb1EI1p6No2DFpad9CkbXzrv8rU/vxiYOS+kcUMZ9BQ8vWUjbMniR24Un8e88hipdtYxAjihLEM6MzwnDoMthMFDBg9QNfujGet2mXuSpI9Ac0NfcFv5dqn1mDNCXV0cvHmfDnPHKOfiw4ai7ITjq4ajmzkCqGwg4UdKInn5utiZ0eTPmuu3XMabPCOe+I+FGKisE1OtIuUdoOdIHpQKVuK7H3q226i+l4JZBfchIhVxWug8C5x86ZbegQCyVIzncPGKgvztgPEyrFhMRjMEa2OugR8I47Ba/P813kFX+IjPuqIo8GRrRUGUnEQF4EFM90gSetvZEgHssyrMoruzMYVmxXA4I8Z69i2qrXAFC7E8XxRpdZF48MQNOT3PH0q3yaH3e9TrNNMMmBqfXFKfYFZRClcAnLtxOPsTcptJmPcmZFZGgmSqDjZMbDYZ5nDE0qz+52ejJ9PS+7UG7bgv2DUyPc4W0I9ksY= 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)(39860400002)(46966006)(36840700001)(44832011)(2906002)(15650500001)(82310400003)(6916009)(6666004)(70206006)(8936002)(8676002)(47076005)(86362001)(70586007)(2616005)(316002)(336012)(54906003)(4326008)(426003)(26005)(1076003)(7696005)(36756003)(5660300002)(82740400003)(19627235002)(356005)(83380400001)(36860700001)(81166007)(478600001)(186003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3857 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5eff4f7d-2557-4cfb-dfe3-08d931761702 X-Microsoft-Antispam-Message-Info: VmA9OA54G2WogT3B6GWiIr3CKknGYtLtgQ/RhiCWVzHGIfbMudniPPPX+9WkxTqpJfVGilV5+73WGrxW9zdFI+Q/h0tbTJ/x5VGl3ECaAj3cbAr5tfYMSMpLqq+teYswhjPj9FkM/NjMUELrk84naFFqc7W5Sqpx0s/VOL/+WK6XVZCRX16GbAjiRNt4YbAZBIEOjcd4+xwjM7R+R4deysvalWiHiPlNVcHCjQ2VvmeIQY7CCyTQRJW/pT53v2BQSrl3mmQ/A/pBwPNZLt1xVRWpEWhTZdUDgMBJ6fK43jwHOwILhG4W0okHIfTUouKT99NH/degJtfrk8a4J2IuuzbC4sH1HcMCqonFRmh8xxZu8IqdHsNQIV9KUYVxhtOqpnG8Sr2juukIAVM1TErskhFbRdWKImmOsx1rvJIlTT/L4uP7iOHqFkoAT0Y6TcsMvCg1U2Q3BygnRATh5WQ7/rHNMETtbGOmb9/9Hr5SqjP6we8zn1U3HIScRbYcPkB7w8NDzpxCYjkSkDXe1K78JbziWiLqb02jQEk3EVfEnDTz+dEXimu8YSsrNEZyecBFYaRNkeHe7t+ljf5NUElE0tBBHtUHGFy1RdPBwl4/NeiNXcPPOma1tv9eealg8Baa4jU9AnikWTVzG+tJLS9mZEnLZmL/UQDCNmppQZql3Y6WYZ/F708JPPqonjtfNJEq X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2021 09:56:00.7380 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff200aac-61c3-425c-2f9a-08d931761cca 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: VE1EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5052 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com X-Gm-Message-State: LvJ9qv5ayQJWJHaMVv1JULT4x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1623923773; bh=32kI8YKrAlos5Xu1xoRXrFj9xj5y2yYBym8LMjxHyDU=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=LX3C7kTiYHoeA01dV4T8CQkgt05ZQbaX2FEKzp8pwqzcK+KuJpuCMbLB60iyLlBur3F u45gXZyf1Qmw4OIYhwTUdoJ+WOKMG9+4G4j8rYCIJw5Tsan5278f2ZFZ/5uBU2gGOkb6D MLbnTuotr/OSYm8gf3mViJq0gvoefYzrsZ8= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3458 - Add support IORT Rev E.b specification updates (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3458) 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 Reviewed-by: Pierre Gondois --- Notes: v2: - No code change since v1. Re-sending with v2 series. [SAMI] DynamicTablesPkg/Include/ArmNameSpaceObjects.h | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTables= Pkg/Include/ArmNameSpaceObjects.h index 19dcae13b2191e5f0b03ea85edec1191d2a406bf..98143cb5df127273cdd75452170= fa651372b3896 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; =20 @@ -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; =20 /** 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; =20 /** 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; =20 /** 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; =20 /** 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; =20 /** A structure that describes the @@ -627,6 +644,9 @@ typedef struct CmArmPmcgNode { =20 /// 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; =20 /** A structure that describes the @@ -878,6 +898,44 @@ typedef struct CmArmCmn600Info { CM_ARM_EXTENDED_INTERRUPT DtcInterrupt[4]; } CM_ARM_CMN_600_INFO; =20 +/** 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() =20 #endif // ARM_NAMESPACE_OBJECTS_H_ --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#76659): https://edk2.groups.io/g/devel/message/76659 Mute This Topic: https://groups.io/mt/83600723/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-