From nobody Mon Feb 9 10:48:26 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+83544+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 1636541751692406.58832661595716; Wed, 10 Nov 2021 02:55:51 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 678OYY1788612xr9QtWKWjRQ; Wed, 10 Nov 2021 02:55:51 -0800 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.47]) by mx.groups.io with SMTP id smtpd.web09.10582.1636541749645039062 for ; Wed, 10 Nov 2021 02:55:50 -0800 X-Received: from AM9P195CA0016.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::21) by AS8PR08MB7356.eurprd08.prod.outlook.com (2603:10a6:20b:447::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 10:55:46 +0000 X-Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:21f:cafe::28) by AM9P195CA0016.outlook.office365.com (2603:10a6:20b:21f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 10:55:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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+83544+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 VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14 via Frontend Transport; Wed, 10 Nov 2021 10:55:46 +0000 X-Received: ("Tessian outbound d49ee2bec50d:v108"); Wed, 10 Nov 2021 10:55:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7bf7476e61918c55 X-CR-MTA-TID: 64aa7808 X-Received: from c2fe87a01108.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0B85C578-636A-4686-8FD3-5820FEC40B4C.1; Wed, 10 Nov 2021 10:55:38 +0000 X-Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c2fe87a01108.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 10 Nov 2021 10:55:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vb1jQLGqaLcBAIOsfCLNb6wgQcdYUVZBkZIFPTJHp0mDoLItETR7evzz5DAeiquZcb/6ObYvLkigKHuwKSu92bTVNI9xMSzK73/65ZpZwd8NcOD5mh/mOtyBqGJenz1Uskv7/c2H6Gxjfe4AY+l0SnheQVru8LUp+AJ2Sd/J3Hdx2X3KOV0fCSRVEbqSBeyNJm1J3AO9/lj66PqVeFSj9xzPDqc7ezFMPUQB3jBmb3DZLh2Y8ATeKW0DnJxRfJNFs1VhOFkDYow+QSM+14pDYvWevM34/nT+L4JggXCWt1wnHUzdbqxvzJnuF31l3Hi9DziJQi5o9RHpGKNJ1PRU/g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jy7QEE7P3zNOWgZPrLFqSFZi7v5KLEm/xwfkvBIDGp0=; b=MhaSsXfvR95sYuWKue/6gxzC6DtvVPbowYgEaJfe/3gsk4NGfNmpLEjSOPecCvIWdo8bkH+ayWA/He0uQGuqWCqxfFhZWTg0Ixi4m71h68voth1BAecOr55Gq7WV1lf+mnimS4M10U7XaqdJHmZgnfP5uUcCh3JupexuTJbZr+PRJ69JTQDteJrD40eOq4OxSS6vmJRpT5PBNtbaa/oUQ7qD/K1RU3I6xXK7xwGqinkSl/EEVAJjjZp320m3vaw2a3wm+biU/q61tmZgZye460rJpXyl35sutVxh+aKz2FW8Dk5Lj4S5bygqWYeInd78R4SoezQLvVHsigj8nmbKow== 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 AM6P191CA0004.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::17) by DB6PR0801MB1621.eurprd08.prod.outlook.com (2603:10a6:4:39::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 10:55:33 +0000 X-Received: from VE1EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8b:cafe::b2) by AM6P191CA0004.outlook.office365.com (2603:10a6:209:8b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 10:55:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;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 VE1EUR03FT037.mail.protection.outlook.com (10.152.19.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4649.14 via Frontend Transport; Wed, 10 Nov 2021 10:55:33 +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.2308.14; Wed, 10 Nov 2021 10:55:31 +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.2308.14; Wed, 10 Nov 2021 10:55:31 +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.2308.14 via Frontend Transport; Wed, 10 Nov 2021 10:55:31 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [edk2-devel] [PATCH v3 7/8] DynamicTablesPkg: Update ArmNameSpaceObjects for IORT Rev E.b Date: Wed, 10 Nov 2021 10:55:31 +0000 Message-ID: <20211110105532.38696-8-sami.mujawar@arm.com> In-Reply-To: <20211110105532.38696-1-sami.mujawar@arm.com> References: <20211110105532.38696-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34f309ca-29ad-419f-00ad-08d9a438a62c X-MS-TrafficTypeDiagnostic: DB6PR0801MB1621:|AS8PR08MB7356: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UIE5I48sUx+jjFxlGNkWpidLD99w/1leEOQCiEw6gDlgJgy3Syu2p/FvXwcoZD42UHmKwp+Hf0emjV51JEC6cAWRjyZbDQWw8RtQMhrt/F+0iq70cQkrx35A+W87DBiGCzlW7GcclBuqKMjucVXh1+myJOXG5nq74S/Qu5/pMSaXAJnaqipS90Ug2OpYx/Y5jn1JaEV2h9B/ARvJ1aunFgy8OZLdNdlFdtK/t3BLBs0nKdaq8U9wi0vUXaM2psoaTV5vQHftWJl8Y34HSc/npCC+b7Kl+2KVitma+3itY55xyPXbkAhibpezd13snjSiFEGmFJboH2RQO9YZUiTnLarwoeYb4Tv2Ab91ztpVNwhNGATOMiYD0fxwBkQsBZoOhljvujGepX4KBNCBNodMH8ah2Mi9HKW/eiCNxFSBk0mdSpjdJZw8MIF2rxcvAU1+zM1GIw79jVm41+jo2+mwOtg2Q0eAcHhUDSzeb7BgPVDmgGWy2kv2aFcv/xYASo4FYQ1gsSqEj68N0DO+Qe6KoFC0XYrPiC/V+HDeQlsphyLw7ZJLuoAMjK1u1P1TOfG8snCl2JbZ5rkMSwCxTSEP054JguOPYzWMFR0rgHTVK5pD7n9+T60pqr/tYDE47Xb6KtYL3yyXQXpDsSWfm7YdtjQZ6xQR/JJhhETR6SDGcJEbQ5fIx5ZaKzX3/ByLdzbSl3IdiaL2IXUXmhsaHf82qLneuoUtqBI05PsLGC1KjgzsU1RaSM3Xp4LchtNdJgC8xq0qLnHpyQyX6I6IrYPIaBMqmpkYTdCzWL+HLRpYLpnSEZRppVO2W3uActI7MAaJ1YJnmYfI5LMwzEhakYtDaCXq2ivadmHNxZpeB6a30XI= 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)(46966006)(36840700001)(70586007)(2906002)(19627235002)(36860700001)(1076003)(15650500001)(508600001)(70206006)(47076005)(54906003)(6916009)(8936002)(316002)(336012)(356005)(86362001)(82310400003)(966005)(81166007)(2616005)(5660300002)(426003)(4326008)(36756003)(8676002)(186003)(7696005)(26005)(83380400001)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1621 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: b0c5270e-e49a-4374-9c0b-08d9a4389e60 X-Microsoft-Antispam-Message-Info: SAzuvUnDwOT2SgeR+5N+vMetq/u/g17HO02gB9zuLW4Ausp/4LkLs1UHlR+vnuuxEO+eK9htL0AG0NApQKkvYGZ83qBdbN6CDqzW8Hmlra9hsj/MoceeWwfsEKm0k4dR35hCdTO61VbC2d8csYdxyDPTNvNjrLM0RDABB03ApCxcmow4KNW9qI/6j51Kj9+627l3Q2v42Me6dd27BsqE5ngrut8E0VLVgxvZSMgELtx/w6ZK4dX36p7GD8P7OhD+9iVumo8mkapVPOlFyXCJRRUvcnmp0sYdo9rsIlUWaPSt32AVi7hRJ0F294KArw7gNQVkcN08QMPJ+i1lTueabJOU+ETm51TqEOOO67SPvTM66tSf0f6KXwKMBq1NRj43Ckrs6Ff78ncwHIInaBHUFPKoBXIOqbUZlYpldReQGLX1nC6xXuKzc/cu65lO+wBXDnjDHKFc0r+RrmyJXWEG9q2+rY0ZYUoYGWUqRtX2xisEPxonXIjnkzAkvPrYXjW4WwWsD9wSspVmuvGbcoD+FIDs0jf0ayLkUPVFQUNjOcLIWpwjO8Yaw9uPjqXzCbC6kRml//ovXLHZSyeDpOzjQ+p2Md0yYZkh2hJyWFKiDe2gU8dWkVRUCrJ4nuJ7HlwxBMDMhK710a4YG1auxy+0q/ow0UqpIVA3xgkDrbnFdxPymdg3Ks5zCYoLc+b/2DY2/BCOQ/EsmSovaiH+9DcTRMyL/WHdLKhS/qi8b5ztOdDNk3davJ/iyWaYB+xq6j17WZpERfn2knaHRd2dG0AWUYvOCM5TO0p7Xpj1kVDmf37JsG7TMR9Tv/u7+QkUGedEy78q5k0YuKAdzKxlRO60KQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 10:55:46.1481 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34f309ca-29ad-419f-00ad-08d9a438a62c 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: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB7356 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: fTZfG6NCT8LqBiNPG6RLnyZPx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1636541751; bh=ranUhJSq3pIvaaDG9wAYE+bv/ogdm2GGA00ERx3sSYc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=NGBmTPNJuDSd2fEs2DTnObcw/7hvQ23GMJY6xQFZ1YzGjnkhpvRwn8uGuqmhYDCyeF3 Q1zxfHLAwhIBl7etktVdvZVDeMlKBe8zZIreJUhlq6tXfq3ERNZRgPy76SsZKQh7lE/x9 eTYFQlLQ+rMt/ftlO5vHJ90yG/TR/ckf9k8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1636541753185100002 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] =20 v3: - Move Identifier field before Flags field in [PIERRE] CM_ARM_RMR_NODE. - Add description for CM_ARM_MEMORY_RANGE_DESCRIPTOR [PIERRE] field. - Updated based on review feedback. [SAMI] Ref: https://edk2.groups.io/g/devel/topic/83600723#76659 DynamicTablesPkg/Include/ArmNameSpaceObjects.h | 60 ++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTables= Pkg/Include/ArmNameSpaceObjects.h index f19c9c70666970bb70b6aa09f064bb10a9a67112..9fb08eef4aa4b4b51c5c7946a08= 451219e89d622 100644 --- a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h @@ -59,6 +59,8 @@ typedef enum ArmObjectID { EArmObjSerialPortInfo, ///< 35 - Generic Serial Port Info EArmObjCmn600Info, ///< 36 - CMN-600 Info EArmObjLpiInfo, ///< 37 - Lpi Info + EArmObjRmr, ///< 38 - Reserved Memory Range Node + EArmObjMemoryRangeDescriptor, ///< 39 - Memory Range Descriptor EArmObjMax } EARM_OBJECT_ID; =20 @@ -467,6 +469,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 @@ -498,6 +503,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 @@ -526,6 +534,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 @@ -568,6 +579,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 @@ -604,6 +618,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 @@ -628,6 +645,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 @@ -946,6 +966,46 @@ typedef struct CmArmLpiInfo { CHAR8 StateName[16]; } CM_ARM_LPI_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; + + /// Unique identifier for this node. + UINT32 Identifier; + + /// Reserved Memory Range flags. + UINT32 Flags; + + /// Memory range descriptor count. + UINT32 MemRangeDescCount; + /// Reference token for the Memory Range descriptor array + CM_OBJECT_TOKEN MemRangeDescToken; +} CM_ARM_RMR_NODE; + +/** A structure that describes the + Memory Range descriptor. + + ID: EArmObjMemoryRangeDescriptor +*/ +typedef struct CmArmRmrDescriptor { + /// Base address of Reserved Memory Range, + /// aligned to a page size of 64K. + UINT64 BaseAddress; + + /// Length of the Reserved Memory range. + /// Must be a multiple of the page size of 64K. + 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 (#83544): https://edk2.groups.io/g/devel/message/83544 Mute This Topic: https://groups.io/mt/86954321/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-