From nobody Mon Feb 9 18:19:52 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+76535+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 1623775060399506.0137104470624; Tue, 15 Jun 2021 09:37:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 48u8YY1788612xzEbImLRVhx; Tue, 15 Jun 2021 09:37:39 -0700 X-Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.41]) by mx.groups.io with SMTP id smtpd.web08.90.1623775020106890153 for ; Tue, 15 Jun 2021 09:37:00 -0700 X-Received: from AM6PR0502CA0052.eurprd05.prod.outlook.com (2603:10a6:20b:56::29) by DB7PR08MB2988.eurprd08.prod.outlook.com (2603:10a6:5:18::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Tue, 15 Jun 2021 16:36:51 +0000 X-Received: from AM5EUR03FT013.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:56:cafe::75) by AM6PR0502CA0052.outlook.office365.com (2603:10a6:20b:56::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Tue, 15 Jun 2021 16:36:51 +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+76535+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 AM5EUR03FT013.mail.protection.outlook.com (10.152.16.140) 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:36:50 +0000 X-Received: ("Tessian outbound a65d687b17e4:v93"); Tue, 15 Jun 2021 16:36:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c0bd41acfede0a33 X-CR-MTA-TID: 64aa7808 X-Received: from 514dc50da9ea.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 958EC744-66DA-4EF2-AC7D-C298C8818359.1; Tue, 15 Jun 2021 16:36:44 +0000 X-Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 514dc50da9ea.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 15 Jun 2021 16:36:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABdg7y/JBEoAACMy/9VGTSjSaRN2MmKgcXQVT3PTSnjdXxponVo+SP7CiIbbh5rp6PHM6XXTWMddrbrcTGOSeWrHLHIZGlf6XN4KVjMlPJZfxOdL3Jf9GzR/WW+bbNJvoM5jEKBNfmtiE4AFn1KY3bNLsWSmHpSmFljqAe7qDf2UQfBqkfia5elrLmOtf5Wt2E88PBc+xuo8yXDtl58ihhrd2W58wPDcU7h2tO9nrWgfOMA/Xg8zaFQWl20tvCkqX7K1YnqRflNfHDGcRhFly/zaXQK2Lq8r+gq1nGyTd5lVppoa7NXarZ5edE/Dhkgbnerv+gMssLPJr55YC1Ni0A== 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=+iGL4nkIs9cfw9xNJ9JxwkJQEHJDtmNBHo8JwmP+2ck=; b=UDjDXu8VzVgrjiE4Nuppq63zPogCnZ7HeQRu0GJ2SehiML52wBrqa/ZAfWCeN7PwcQcE/Tacdkbp3fpzZIKUmdGAqL9YEfJHCYyKMhOeTbquRip+0h2OsrfwoYb7uclAUCD8WPLcgY+PPhfasDpWU6RaLvuQaPb0x+PzICfGd6ZRaFmArXTb57rrcW+5CdZb8tdiC1daOr+C65WJV8jVAJJXF3t7HM08wlTo6SElok9G6gLMpBcE0BYOFdKwbVYiOyYweSU7ix4Plxupg6vuC/wovvqKPJpBHfKylTklniqY8pep7SUT6HP1llxd5wIwd88bU4nKIgOIpo/ILKZXkw== 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 AM6P193CA0048.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::25) by AM9PR08MB5921.eurprd08.prod.outlook.com (2603:10a6:20b:2d4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Tue, 15 Jun 2021 16:36:38 +0000 X-Received: from AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8e:cafe::15) by AM6P193CA0048.outlook.office365.com (2603:10a6:209:8e::25) 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:38 +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 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:38 +0000 X-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:20 +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; Tue, 15 Jun 2021 16:36:20 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , Subject: [edk2-devel] [PATCH v1 2/8] MdePkg: IORT header update for IORT Rev E.b spec Date: Tue, 15 Jun 2021 17:36:12 +0100 Message-ID: <20210615163618.85200-3-sami.mujawar@arm.com> 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: 605bf9f3-0684-4542-00d9-08d9301bc6f6 X-MS-TrafficTypeDiagnostic: AM9PR08MB5921:|DB7PR08MB2988: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:7691;OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: xCEDf4dPZ9xS3FR21S6jsruo6sCSZlDGBVcZLgoRQydUJ4joPrp3CqIbQwAPPIj8tMXPF7Xpjb1Bo4zBng01jamHevc90h7t08dpbQmyG1V2C+Yv5aJexZmAQTVB9hmRPjBdoIkrtrDhinu4UJSujAd9c58lzGZOpCka/0UuLeyVUx7VW0PM1Qug2l5byI72c+SqP+kr1aja5J+TIC7mpTvMrfWeFZEEBCOWOqVouvo6RGR7OHxzo9rF3gzJVmqnNQR/u49THsex8Y8LkhrrcVYISOBYtn61H4E8o2q+CYKJR3sXwNWjia6gRmePIordLPFZJ8sIjGYGmXNb0VyPn//KjF+en63CK+tSi3yuRCMohaFuKKAwVCE3TKsKd1CXQot/Ljs9G8q4qKMfpyaKMl6uuESQqhMi1u3D2PU3VXcgMWv1GzWvhDRXzV8YNVh0qIdAwwle5zUw92/N3DWVZScY2dRaRnSUmzZFwia679qyTfsaWbl+cF60hFWFEYUpPSS/UKsWccchTCcyqxv3HfTMy52U39VjfdHZwajQrUl3kqUmoJkryyJnyJt1sZke5FFtZtEB6qMTja0EoDd9URvSvUHbZjT/sgwMBnuJus3lYrApyP1tLZZeSf3Uo4YO5sRnFL5BJYkNp+Gr2bMzxcZenpT1DJ/o3wFXHwgKEDQSJg4f3UfKilxVoAZf4kGO/SeEwfW2khKzrDia65Dfp32QkVsqqdIDia1wk8cs59wr+M8bdR0TuoAGZi+e2T7wekb6CmUYMZ7ERU3h+STICCO6eDVNgTVB6L4GmLG571tm7tF5koJfSTvAg/LS1+TLOtEtTsU4p4p0GMjXO899sw== 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)(346002)(136003)(396003)(39850400004)(376002)(36840700001)(46966006)(15650500001)(8676002)(5660300002)(2906002)(82740400003)(86362001)(8936002)(6666004)(44832011)(47076005)(966005)(36860700001)(70586007)(4326008)(82310400003)(70206006)(356005)(81166007)(83380400001)(2616005)(186003)(26005)(426003)(1076003)(6916009)(478600001)(336012)(7696005)(316002)(36756003)(54906003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5921 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 8c15bdc2-c85c-487c-e775-08d9301bbf61 X-Microsoft-Antispam-Message-Info: 0xdYGPJwjRsnUFNqTfFhsOIiNynyK0ZSismWdCaRn4neEm3VJcIE91W5tTZXnLKNheYzJl2SrGreyDXEOGwaudUyhR411mrW1bMgtwOMnc916tKU8tDX9h4OnKPkVpN/0T0cq804a5PiZzWhQu84TiJ0HJLq7LFaGb9Mb6gHOd9zCG03BdVHBBQ6oLbcWUcKqk1m6u3nbjZGphdZDTZhUj+VjfuThL5hVft3/ecPZ7BYBTgJ9V3DPks3NURPBTn1fInUw7CgBp4yCfZEMppZ3SYvWWIYT3qzYCWmj3ATW5xWcOqdHym/xR+bChNel+5JJnt9jzKyw/BfgIWiWsPXdLJs5cOZoGOq1mpi1eIENA51NgzYthwTIy5xuvPcPvmqlC5kBQSYz5vWJgc6dEKvrCEGOWLTzxjVltzFoE1rpACx94shMRqQiO+gaU2gLp+4Wh9XgiGqul+L3o4e+t/1OZWd7BIJIb2MdRfwW3QuPFH5VTdDNSPpCdXJ5qP6tI/hzpXr1vAWfM+N5lzcQdnRMZDbcAyCiHhuFN3Z8aWPMonoYIip2AevMwyOIy8QFGP0EWJvSGIKRNaN7jKLBZEcuFN9Rs0WXfKytv/bu8152qjB/fOTconowbtWuCcuTvWd/PEMnLrLVOgtbQQ3XUMS5xhnjztHJA3imiVRBANwqbY2DJTcbFcJYbl0Lu6ZNCTPhpyiJ5F0fwQaA2uAJk19fcLvgguGl01Au+eYzHWjsqsWTSee0WcP1HRBjpU/8TNG3NonM9gc9OnbO8JjLI+unwu1hHCI2oslD08rNAyvqT1Yg6rdHPcMliguEYSPgIXQ X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 16:36:50.9277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 605bf9f3-0684-4542-00d9-08d9301bc6f6 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: AM5EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB2988 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: J1G9KucLpsju4f4X4vA0NiKsx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1623775059; bh=OkR03P3VFJjlSqZ2rOVTk5oqyEFEwulZ2CEnvrwL+XI=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Mrrjn0t8ZEQf1Dnfb26TOI7obaftSmS/R5O/jt2iI/mUHymQXWRAUXtWF+Xq5YkC4sh sn8Rb62LNztjcDt/OGfush47zsfbEqrNCkENSp1yOaGwzkxX+QRiAn0l7VX+zGCk1qoK0 RH+Tr+H6eQHHksNcRURerGy3n7dr9JRszAY= 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 IORT header file to reflect these changes. Signed-off-by: Sami Mujawar --- MdePkg/Include/IndustryStandard/IoRemappingTable.h | 67 ++++++++++++++++++= -- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/IoRemappingTable.h b/MdePkg/In= clude/IndustryStandard/IoRemappingTable.h index 731217441438a00dd5ff0bedf2010598d48d6dbf..c6f3e7bc321ea7d85e576b2fe3c= 2889422477506 100644 --- a/MdePkg/Include/IndustryStandard/IoRemappingTable.h +++ b/MdePkg/Include/IndustryStandard/IoRemappingTable.h @@ -1,12 +1,19 @@ /** @file - ACPI IO Remapping Table (IORT) as specified in ARM spec DEN0049D - - http://infocenter.arm.com/help/topic/com.arm.doc.den0049d/DEN0049D_IO_Re= mapping_Table.pdf + ACPI IO Remapping Table (IORT) definitions. =20 Copyright (c) 2017, Linaro Limited. All rights reserved.
- Copyright (c) 2018, ARM Limited. All rights reserved.
+ Copyright (c) 2018 - 2021, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Reference(s): + - IO Remapping Table, Platform Design Document, Revision E.b, Feb 2021 + (https://developer.arm.com/documentation/den0049/) + + @par Glossary: + - Ref : Reference + - Mem : Memory + - Desc : Descriptor **/ =20 #ifndef IO_REMAPPING_TABLE_H_ @@ -14,7 +21,9 @@ =20 #include =20 -#define EFI_ACPI_IO_REMAPPING_TABLE_REVISION 0x0 +#define EFI_ACPI_IO_REMAPPING_TABLE_REV0 0x0 +#define EFI_ACPI_IO_REMAPPING_TABLE_REV3 0x3 +#define EFI_ACPI_IO_REMAPPING_TABLE_REVISION EFI_ACPI_IO_REMAPPING_TABLE_= REV3 =20 #define EFI_ACPI_IORT_TYPE_ITS_GROUP 0x0 #define EFI_ACPI_IORT_TYPE_NAMED_COMP 0x1 @@ -22,6 +31,7 @@ #define EFI_ACPI_IORT_TYPE_SMMUv1v2 0x3 #define EFI_ACPI_IORT_TYPE_SMMUv3 0x4 #define EFI_ACPI_IORT_TYPE_PMCG 0x5 +#define EFI_ACPI_IORT_TYPE_RMR 0x6 =20 #define EFI_ACPI_IORT_MEM_ACCESS_PROP_CCA BIT0 =20 @@ -55,7 +65,16 @@ #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 +#define EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED BIT0 + +#define EFI_ACPI_IORT_ROOT_COMPLEX_PRI_UNSUPPORTED 0x0 +#define EFI_ACPI_IORT_ROOT_COMPLEX_PRI_SUPPORTED BIT1 + +#define EFI_ACPI_IORT_ROOT_COMPLEX_PASID_FWD_UNSUPPORTED 0x0 +#define EFI_ACPI_IORT_ROOT_COMPLEX_PASID_FWD_SUPPORTED BIT2 + +#define EFI_ACPI_IORT_RMR_REMAP_NOT_PERMITTED 0x0 +#define EFI_ACPI_IORT_RMR_REMAP_PERMITTED BIT0 =20 #define EFI_ACPI_IORT_ID_MAPPING_FLAGS_SINGLE BIT0 =20 @@ -89,7 +108,7 @@ typedef struct { UINT8 Type; UINT16 Length; UINT8 Revision; - UINT32 Reserved; + UINT32 Identifier; UINT32 NumIdMappings; UINT32 IdReference; } EFI_ACPI_6_0_IO_REMAPPING_NODE; @@ -198,6 +217,40 @@ typedef struct { //EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE OverflowInterruptMsiMapping[1]; } EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE; =20 +/// +/// Memory Range Descriptor. +/// +typedef struct { + /// Base address of Reserved Memory Range, + /// aligned to a page size of 64K. + UINT64 Base; + + /// Length of the Reserved Memory range. + /// Must be a multiple of the page size of 64K. + UINT64 Length; + + /// Reserved, must be zero. + UINT32 Reserved; +} EFI_ACPI_6_0_IO_REMAPPING_MEM_RANGE_DESC; + +/// +/// Node type 6: Reserved Memory Range (RMR) node +/// +typedef struct { + EFI_ACPI_6_0_IO_REMAPPING_NODE Node; + + /// RMR flags + UINT32 Flags; + + /// Memory range descriptor count. + UINT32 NumMemRangeDesc; + + /// Offset of the memory range descriptor array. + UINT32 MemRangeDescRef; +// EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE IdMapping[1]; +// EFI_ACPI_6_0_IO_REMAPPING_MEM_RANGE_DESC MemRangeDesc[1]; +} EFI_ACPI_6_0_IO_REMAPPING_RMR_NODE; + #pragma pack() =20 #endif --=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 (#76535): https://edk2.groups.io/g/devel/message/76535 Mute This Topic: https://groups.io/mt/83560210/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-