From nobody Mon Feb 9 20:59:25 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+91090+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 1657101438184376.2093832401498; Wed, 6 Jul 2022 02:57:18 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id dQZWYY1788612xg7CFuSNHvp; Wed, 06 Jul 2022 02:57:17 -0700 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.71]) by mx.groups.io with SMTP id smtpd.web10.4298.1657101436656466771 for ; Wed, 06 Jul 2022 02:57:17 -0700 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=kr5SnIi297wgylhlv2KNnZBNoCMCg/XubOwJBfOQgbCFf7/bVmx5DNscoXNJyUrciwNE1997HRD8MPnVEj4l1ll+Kc7rDj/YBhI9FwpDBoFWDhNnBiLJKThnaTf0W9HmRfOYIrsOPrzD5vkpOWsg3tT/Z1bZdrf4lIz2nMYt1KPn36F9A58xHLRjIeZe/xcflr271cvl6ucsd2uLPoKg3Mk0s5zw8tuyz8VMf09EmHm2qZmG4RiH/6YuyYmQYq8nmHPvbaKAlaUHCEEgCRprywnaiOljty8fEam4mKpeuNWbBHLdmCiAfrX7KnowcdufWOmhW4HLcUz9m/PTcXDb3A== ARC-Message-Signature: i=2; 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=Yu3uRj1WkF+VwGitIyvUIWuW1Wcn9GOeN/q8jw0vilA=; b=QKhoIHpm8oqK8ooOUko+Er7Uuf+PW1wPMFMg5MOd04VXZ4mk7V92x3y54gjuyYFbqouPUtkHIquUAc5Xxh/JbBcyCmYjfQeGfmNnd6ec+sjDUMHwV9Qacxl8SBZOwQRIfKL74v55l96gyVAS0fEVf5yRqYZBqPpBqBQKNK/nZb1um+jMDipxRNz96MT3zdHk6Kq9LaCtToD7Mcvdb9rEphowDPTr47odhduR8TfBNLdi4Ojlve8L0wBlrLha3LRGEZ+6qbjqILiGLTDFx5Y0lY8gCip0yRZ6regJOe3z932GPXA4a0mFHTACuFSAKjnlFJsPUp2uTAgMFJTIUsjquQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) X-Received: from AM5PR0601CA0031.eurprd06.prod.outlook.com (2603:10a6:203:68::17) by AM6PR08MB5128.eurprd08.prod.outlook.com (2603:10a6:20b:e3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Wed, 6 Jul 2022 09:57:12 +0000 X-Received: from AM5EUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:68:cafe::95) by AM5PR0601CA0031.outlook.office365.com (2603:10a6:203:68::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Wed, 6 Jul 2022 09:57:12 +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+91090+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; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT051.mail.protection.outlook.com (10.152.16.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Wed, 6 Jul 2022 09:57:12 +0000 X-Received: ("Tessian outbound 190453a6d737:v122"); Wed, 06 Jul 2022 09:57:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6b3a15d18e00db84 X-CR-MTA-TID: 64aa7808 X-Received: from d25edaa8e592.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9F45083B-04B3-42A4-AAA1-74D4129046A8.1; Wed, 06 Jul 2022 09:57:05 +0000 X-Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d25edaa8e592.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 06 Jul 2022 09:57:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G65dakwX9ISTxXBzSJ684O3JOJWqQ4qfbIcjVPhtkRyAfEbTgs8UBo3UZbukvF2BI/CYhlJDE4ilWVjT+QHTxtK66XcFZstIwDgaoKrFuqzPnq091xID4KYQ6QpCQnEwQf/XwPqO4y7b1MImazDCjmktRpBa7Rg5yaI1xj4IJouUrRTKWZrFT517FDs0mP4Yv02fPw2EtJn71OUjSb0zxqOa+qoBRDkqfL2dGNVTu9MNNVndlEExwlD9SlD0RMznOxXiC/RVXFBtIsRZ8orgGq0nmvkpSs3edtYkDH3ZPfa6leQPYkl5frYnepGgc+nHaZ9k0ogfL1sR39Tu1lE38Q== 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=Yu3uRj1WkF+VwGitIyvUIWuW1Wcn9GOeN/q8jw0vilA=; b=CWz1kS7GNsA7ptfl12/x5ROufyUpix37q07NG7zL7cq8RflTXEMy1qgfoIndiYaHzk8a/VBB9Tk5gTnHUfoBUv6Kxjb/iFF9yKAMMVnETTi4LmqEp8HJnFaYm3ZeXsh3mcUAHtQQ1CzOLGzKNhULSOe8PagXzZywa09l0IzJpnZNTLkE1Lh4k3q1x7chy/Le8kUL7zQeKguzFMBS4vhk4fCfskhq0b/Ocl3vEGkA42Yg/xcHGuYjIssW7Z/n/bcg+b4AAoB5tRVtIPD3x10LLhotJFHvAASMd/ODfYbIkSt+pHee8LQZs/anX4Z+3IBTN4uOqibPf/aU+MgXui2KJA== 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 DU2PR04CA0196.eurprd04.prod.outlook.com (2603:10a6:10:28d::21) by DB8PR08MB5129.eurprd08.prod.outlook.com (2603:10a6:10:ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.17; Wed, 6 Jul 2022 09:57:02 +0000 X-Received: from DBAEUR03FT013.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28d:cafe::1c) by DU2PR04CA0196.outlook.office365.com (2603:10a6:10:28d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.21 via Frontend Transport; Wed, 6 Jul 2022 09:57:02 +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; pr=C X-Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT013.mail.protection.outlook.com (100.127.142.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5417.15 via Frontend Transport; Wed, 6 Jul 2022 09:57:02 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.2507.9; Wed, 6 Jul 2022 09:56:33 +0000 X-Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Wed, 6 Jul 2022 09:56:32 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , , , , , Subject: [edk2-devel] [PATCH v4 1/8] MdePkg: IORT header update for IORT Rev E.d spec Date: Wed, 6 Jul 2022 10:56:24 +0100 Message-ID: <20220706095631.27196-2-sami.mujawar@arm.com> In-Reply-To: <20220706095631.27196-1-sami.mujawar@arm.com> References: <20220706095631.27196-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: dfab1ce8-eb54-4573-cf6c-08da5f35e624 X-MS-TrafficTypeDiagnostic: DB8PR08MB5129:EE_|AM5EUR03FT051:EE_|AM6PR08MB5128:EE_ x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 457QPzYN2diGcczYUNCEk3myI+r+FjOWbM2FA/Zo0bGq9NI523+QTP1cxf98lQG1KsRhjuN7zAeXn9wCl8v7rHKj3nVB4gbamvn9n5hUSm75MvWT6eXxESMU2q215RyAVXo5F54KXn5+PL/d4USx90M4+BWqsICTk88TfW+v5s8iUK9qNV+csGduC/1OGY632t7p8Fy425BnKFgn2j+hReyqTFncHtB7hcw5AgQG+oc5DueyLbYvgdse3zZ2xTFQB1yqvJB5ONDimZp3PanTjSEV5Lx0rIjbarQ0f8elfHSVFa98v7TtHQEvaTMUFGLNuz9eet4FKf/d4VoUR4oEyaKmrihA1M337b5B9P/uXLOuIwz/VFcxYFcC2nDDB/lwiiGYjAzTPzi76klCDv0zeYv8iFsg3ZWu8lh+4QizHrM2xzJYLt2Bng3GTOJqoviiCS0WhgMOfbpuhtL/hASHzfXX6sPuALHjnlnKASlnIm0strwV4yaE9+gaGnyWIpYb9CeL0+dBEe7sTQB33eac4uY6foncf+sPEffJV6jTaA70W0XRg/JOpNDc1A5uGXZ8olnqmFFBd7UckzdyZuVd5wa5JZS8kqT/nQBKSOgWcjtr9kQT071GWa3p/TvKEL8XOTbu2a4WK3Jp1Ybs/PqkWpnOi2LbEgeqVthVNBkhQ47OUF+6Y/y9zP6fQWRbXhQNIYhFkIFFLHdbMItFggcjgFNHHe1SLJ0rjqNJCpi9OjKVrdLk/84A/3z8kLHUUM69bVgkGRmryOnrATWMuOqiAcbKlikx7x6pL6FQb8BhSKxDGIXMYrDDZZ8cRvk07v9azPK8JbqziQLK9vwcWuBZC/4fG91j+NSp1aN7kX2VPxqtKunMPryy18dWMEv4RKe9TcDOpjp9bLi7iP1qcvqIOKsmRQONhvjJEZq74LsZ5CY= 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:(13230016)(4636009)(396003)(346002)(376002)(39860400002)(136003)(46966006)(36840700001)(40470700004)(36756003)(26005)(40460700003)(7696005)(2616005)(15650500001)(186003)(83380400001)(82740400003)(336012)(1076003)(478600001)(40480700001)(2906002)(44832011)(966005)(4326008)(8676002)(70206006)(70586007)(54906003)(86362001)(82310400005)(41300700001)(8936002)(81166007)(5660300002)(426003)(36860700001)(6666004)(6916009)(47076005)(316002)(356005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5129 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 113304cd-c5eb-4237-7379-08da5f35dfe8 X-Microsoft-Antispam-Message-Info: KRpR+x8tdcxDL8AOjlykIGrEAd2xFdPp9a22CkT4LsTkxofsE/Sx1raQUjx+Ce5aO9gdSHxz1BXBHcX9qmJP3zc7ibCr8+R1N1eIhLH+pAoJL1pBAtOJwepgjNc3+XA/1gOrQ/OFAkPyz05ar0J5/0tLGHmDicScmxTc0wDea+MVPWoee5kezRDH8SIdjQMECe9v1QC22K2tWTY7R/eAJRbtdBn8e7XXuR+gMAx5fU+LcibyDrJ4yFTUdbDMVl78H5hpngJwHpjz7LdyEBLJ4yPqwXXt5/5AMKpuWWB96d8CkAOwFbfOBwmdseXaNzEnS067BQxaT+2WWqIEYWZEsprlvpGuIgRGUst2yDay0bHklX7Qb18BKV8XRkqSk2eMdq5PcWSSyZeC8gB+JRT6qGzDNG5sPg1sKAHCjhK+sD2ZsySptaKd1FR+oRVclUq+vX8ZPrcC4CGUGZPqt6pOLmDwgrrk4IZ2rYXI6FCO5hCjRLqW2pjBjfDrrA9N2Xtp2J3v6ykZZQoB4tmSmdtcAbpOvGtlF634zJUNY6vlxgS7tAYjeQQkz9AzTB3u0nucph0iITyMvetr6878M1jcHTQA3kSNOAm4nL7nwCbX7Lh9878qF7hG4zV9M7NZ11lHev5Lg+J9Ei3N0SNkQCq05slGjoaCaPU4xcGhKQo21bZNRETL4IJTJhVdvVr2VQzj6r6Uz3eYIGZUYIZQc/jrFL9yMVeP2NKYTbq+DToDkjLqyd7aiNlAAbHne2QzB/peTW3kfFmvffw8KqUx5gRL2eY6XJ/jQYC5M6zZMcw2lIcbMecG+SgFBHZsN30wa8mD8+GxM5tDjGEAbMSm0J6wSfbDCg5pNKXFggBMlDrWW7o7CJ0Uun6FwSa08OeV1R4Z X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2022 09:57:12.4799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dfab1ce8-eb54-4573-cf6c-08da5f35e624 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: AM5EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5128 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: VzJCPZNL3nM1f3hT75Ge1x2Jx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1657101437; bh=XRWPBT8vQiTKHzqSev0qgw26D6YzdHM4GXNknW3Qxbg=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=lRSSQTfyjlzNfQJ7Iv+onB1Zf1DdVZ4m7wHlnr2UTEWErxx+kZ5a2J5TMc4Z2UZYF4F YjQjk8aYLGmU3SLQN6dcGnJEeP1NFLaDonFrSBDuX6r9t+GMehEPhkssxsi+Y6rSENjNQ jxtMH16v2Y5tWULIwOfFq2OyNnsCQ5ALcdk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1657101440030100007 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3458 - Add support IORT Rev E.d specification updates (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3458) The IO Remapping Table, Platform Design Document, Revision E.d, Feb 2022 (https://developer.arm.com/documentation/den0049/) introduces the following updates, collectively including the updates and errata fixes to Rev E, Rev E.a, Rev E.b, Rev E.c: - increments the IORT table revision to 5. - 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. - adds flag to indicate if the root complex supports PASID. - adds flags to define access privilege and attributes for the memory ranges. Therefore, update the IORT header file to reflect these changes, and also rename the EFI_ACPI_IO_REMAPPING_TABLE_REVISION macro to EFI_ACPI_IO_REMAPPING_TABLE_REV0. Signed-off-by: Sami Mujawar --- Notes: v4: - Updated patch series to IORT specification revision E.d. [SAMI] - Add flag to indicate if the root complex supports PASID. [SAMI] - Add flags to define access privilege and attributes for [SAMI] the memory ranges. v3: - Submit patch series to update platform code to use the [LIMIN= G] EFI_ACPI_IO_REMAPPING_TABLE_REV0 macro. Ref: https://edk2.groups.io/g/devel/topic/83618423#76799 - Removed definition of EFI_ACPI_IO_REMAPPING_TABLE_REVISION [SAMI] as EFI_ACPI_IO_REMAPPING_TABLE_REV0 has been provided for representing Rev 0. Also, a corresponding patch series for updating the platforms in edk2-platforms repository shall be submitted to the edk2 mailing list. - Include r-b received from v2 series. [SAMI] Ref: https://edk2.groups.io/g/devel/topic/83600724#76660 =20 v2: - Set EFI_ACPI_IO_REMAPPING_TABLE_REVISION to Rev 0 as [SAMI] setting to Rev 3 will break existing platforms. The problem is that existing code would not be populating the Identifier field in the nodes. This can lead to non-unique values in the Identifier field. MdePkg/Include/IndustryStandard/IoRemappingTable.h | 83 ++++++++++++++++++= -- 1 file changed, 75 insertions(+), 8 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/IoRemappingTable.h b/MdePkg/In= clude/IndustryStandard/IoRemappingTable.h index 79a34678681d45b2982dc8573db6bd447f42e429..07cb7f49dc936fb00cc549113f1= e62f988535e5d 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 - 2022, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Reference(s): + - IO Remapping Table, Platform Design Document, Revision E.d, Feb 2022 + (https://developer.arm.com/documentation/den0049/) + + @par Glossary: + - Ref : Reference + - Mem : Memory + - Desc : Descriptor **/ =20 #ifndef __IO_REMAPPING_TABLE_H__ @@ -14,7 +21,8 @@ =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_REV5 0x5 =20 #define EFI_ACPI_IORT_TYPE_ITS_GROUP 0x0 #define EFI_ACPI_IORT_TYPE_NAMED_COMP 0x1 @@ -22,6 +30,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 +64,29 @@ #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_ROOT_COMPLEX_PASID_UNSUPPORTED 0x0 +#define EFI_ACPI_IORT_ROOT_COMPLEX_PASID_SUPPORTED BIT1 + +#define EFI_ACPI_IORT_RMR_REMAP_NOT_PERMITTED 0x0 +#define EFI_ACPI_IORT_RMR_REMAP_PERMITTED BIT0 + +#define EFI_ACPI_IORT_RMR_ACCESS_REQ_NOT_PRIVILEGED 0x0 +#define EFI_ACPI_IORT_RMR_ACCESS_REQ_PRIVILEGED BIT1 + +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_DEV_NGNRNE 0x0 +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_DEV_NGNRE 0x1 +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_DEV_NGRE 0x2 +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_DEV_GRE 0x3 +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_NORM_IN_NC_OUT_NC 0x4 +#define EFI_ACPI_IORT_RMR_ACCESS_ATTRIB_NORM_IN_WB_OUT_WB_ISH 0x5 =20 #define EFI_ACPI_IORT_ID_MAPPING_FLAGS_SINGLE BIT0 =20 @@ -89,7 +120,7 @@ typedef struct { UINT8 Type; UINT16 Length; UINT8 Revision; - UINT32 Reserved; + UINT32 Identifier; UINT32 NumIdMappings; UINT32 IdReference; } EFI_ACPI_6_0_IO_REMAPPING_NODE; @@ -118,7 +149,9 @@ typedef struct { UINT32 AtsAttribute; UINT32 PciSegmentNumber; UINT8 MemoryAddressSize; - UINT8 Reserved1[3]; + UINT16 PasidCapabilities; + UINT8 Reserved1[1]; + UINT32 Flags; } EFI_ACPI_6_0_IO_REMAPPING_RC_NODE; =20 /// @@ -198,6 +231,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 (#91090): https://edk2.groups.io/g/devel/message/91090 Mute This Topic: https://groups.io/mt/92203096/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-