From nobody Mon May 6 11:46:41 2024 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+79287+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 1628874186923952.8362018528684; Fri, 13 Aug 2021 10:03:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Wt4uYY1788612xSRwJW2pPtj; Fri, 13 Aug 2021 10:03:06 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.73]) by mx.groups.io with SMTP id smtpd.web11.39548.1628874185247082301 for ; Fri, 13 Aug 2021 10:03:06 -0700 X-Received: from DB6P195CA0018.EURP195.PROD.OUTLOOK.COM (2603:10a6:4:cb::28) by AS8PR08MB6964.eurprd08.prod.outlook.com (2603:10a6:20b:349::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14; Fri, 13 Aug 2021 17:02:56 +0000 X-Received: from DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:cb:cafe::41) by DB6P195CA0018.outlook.office365.com (2603:10a6:4:cb::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:56 +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+79287+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 DB5EUR03FT019.mail.protection.outlook.com (10.152.20.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:56 +0000 X-Received: ("Tessian outbound 1a0c40aa17d8:v103"); Fri, 13 Aug 2021 17:02:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ddd6570c69c5c701 X-CR-MTA-TID: 64aa7808 X-Received: from 19f02ae0b95f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B3CB2D12-80CD-4C3C-B353-EE1E37C3F6A4.1; Fri, 13 Aug 2021 17:02:49 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 19f02ae0b95f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 13 Aug 2021 17:02:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gy6UGMm/7sGkowaLsDPuGp3829Rrxr0etA/XxnIpZ7niSIcbhXuQn5Pf3q/w5Zjp20kwM/B1Cq5RyjgUxgIyiaFTP6P9rXoREko6Z1TipZN2arW+fdY2J2pDNSNJ0d6YrFYi+hsGAi2oRFsyaa+fcVai27evLI5Creog0OZXFB98me9JinEFymU7kiV915aeseZmWJBHSKaV2O7mLfn3/Ux7s1Fp5bRs670xF3IT77xnL7sR1ixoSpydduh/fWdlL6g89lBe3UtccIs0jcG+paNwvS+gjXlk7ztpxxYjr5xTZA3G+HyR2TYW4Lgtcv+u6Dn4gSyJzFulPmDLiocZmA== 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=9RtpJ7M1a+2Gi1EmyWtyvfrwwQGXd7bPIijjioBGW70=; b=QjnjQYuSQhmtdUXt7RJtk5FuVIHrhJRhWhkUkY8wVvKgNt4J8bV5wKhEhcW8gp3+tw8ddwu8DRbmhlr+ainz6K5u5m8FQuQ6WEtmDBmrjycw/S70+IBakzfoAzdYsswKZr3NVg2ckCtT1Z4ZUTD5q0gGmRzciDhPGsUm3mFA1MX4pTNgp5NGRuJABhcI6PtdtgwnePBBqFA+Pq8eTZmWgQq9iCo6D+L7vwKtCdPZuY5AG7EQi+7sARJuRqDitUBhkjrXu9+nKr6+7S44CNyrCPYZ2tlrb1SteOzI78wAP/es5v8v5Ya6LS41/K3QJpLWx4JwZIU5IL0qnsNRLk0ggA== 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 DB6PR1001CA0027.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::13) by DB6PR0801MB2087.eurprd08.prod.outlook.com (2603:10a6:4:77::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17; Fri, 13 Aug 2021 17:02:47 +0000 X-Received: from DB5EUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:55:cafe::1) by DB6PR1001CA0027.outlook.office365.com (2603:10a6:4:55::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:47 +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 DB5EUR03FT035.mail.protection.outlook.com (10.152.20.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:47 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.14; Fri, 13 Aug 2021 17:02:46 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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; Fri, 13 Aug 2021 17:02:46 +0000 X-Received: from e125153.arm.com (10.57.68.146) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2308.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:45 +0000 From: "Chris Jones" To: CC: , , , , , , Subject: [edk2-devel] [PATCH v1 1/2] ShellPkg: Update Acpiview PCCT parser to ACPI 6.4 Date: Fri, 13 Aug 2021 18:02:44 +0100 Message-ID: <20210813170245.4318-2-christopher.jones@arm.com> In-Reply-To: <20210813170245.4318-1-christopher.jones@arm.com> References: <20210813170245.4318-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 403f163b-47b1-4b5e-315b-08d95e7c3286 X-MS-TrafficTypeDiagnostic: DB6PR0801MB2087:|AS8PR08MB6964: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:7219;OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Zwjq/lg6GJ+iNlJSJX6YeLBqYUIIA1NHo0mltQEIhrHRrEI3+wate5efaQYHI+aIaz/WbtxIApf7cknSFdU9JqcEJQ5u4xR1pTkPaK2FBddaYWiexP2KD7Vf4Qoe20rTr8j+5bh/aROtvEYEjUYWvPJ7QrvXu9wwCSR6YPAz9AmgAxThLI23k5og6pzd7URG6qyrwFXoZLVK0dxLsJUt88vwkpVFAHYi/03jFQFQPoIMoJrlOXo4NrtkoFj36hvyGKCiHLR4nM6lRxRtuNdwlFzjm+DKTlA6xml4/V7xRCHZCMRAtKmjd1mY95pipuC16PpAvBGd1MWEeyoLj/U3Ecyh7XW6ouwSO6JFEwLs4KYsPussBNKAh18lmm3ruTaePA7gZWBVhrVhg/UD01nRFQgzX7bUhdTgNkHtixth2ygAw8uDLy9mHouql1cxHLhFNpVC786Dhm8o4aBgOnFnucilR7ogLuftdH5HHY0gjHfMX987zQ4ncrjB7wswW7N4A2yIgWDrvhIZYY/Htab4VxUMwwl6350ZYSManVW1oAYBuLWD3hv3naS84kPVqjG7bAMjRIIoWKIVrI+6lyhaqS7HpSKvFLFEvIVxWoOv+yAf02kh1CEzAGjKzEz8UbilMm1ry7XVyeZhzBfKHPZTLTPaHWit30NW2OMgyIQZ2nt1jisN6/WQglCqBS0CLE6ShZsoT9HMzjNkBhQUR6o4HBuIoxaGGlIY+AwJv+J0sWC2NUDIqPvSzFKeI+m7uY5mGZnS59rw9IkzeaixU9lediXMCES+PQ20N6xU8ZY8B7VmrXkpQV2yEp+B2k+AzwDEAOy91Ogc0LDtqJfNKSbdYS+D2IG2bXHJuLD91xoyVPM= 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)(396003)(136003)(376002)(39850400004)(46966006)(36840700001)(336012)(2616005)(426003)(19627235002)(478600001)(316002)(7696005)(6916009)(34020700004)(26005)(186003)(4326008)(54906003)(83380400001)(70586007)(1076003)(82310400003)(2906002)(86362001)(70206006)(36756003)(5660300002)(8936002)(81166007)(15650500001)(47076005)(356005)(82740400003)(36860700001)(8676002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2087 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: de185f81-b23f-476a-df56-08d95e7c2d31 X-Microsoft-Antispam-Message-Info: VIFpA1UY4OKiJ+XMbVu9RrneFn08SgUuA8s50//KYt3Slx6vjCFZJVqqmnetBOC9hxy4PQw7AGRs0rs3zq9QcxAl0IRDqNfWxZSQNOAlsYoxb2lWu7Jnnebu5dbo7dhpulOD1s1B8B/1bCeYde47aSYMGUS+hPA6ZT2Be6qqHmesEIRkhEf2EDGmN02Ip+i502Tnf4SWV/j8vGOz/mEf30Tc543387RYBdpY2DPMVclZUiqvT48sGAVe/TqvKg66XRSCGFTzKIkoIAtpQkZPPF1lQ8usupCf8Gk1NMARzHZYXTGSUWhQ/ofe3e3PvVHf9ynt0Q1WDQQiRW+/S2IxH/URpn2DHzKbrt22aq4Hid7vQotP8KltfmcrAODZMewBCgv0LTksjbgDSffp8XlC67VjjNG/2NStNKW+KRm8us9Up8KxH0+hEgIWcVUBVE8IMwPHWX8vJhDWyJfiy7W0sPutJ3aJLvufp0IyVlgowLc5TGcwqbxiHwRkz5OjFQCO6y6CLc93fF+s/g6o8VRVjEtkC/mrWx8Kj018szCDIahX4p8DZ+WcPvhaKdvK5NbLDPoDv2klkwh7L+8ovAn645t6E1jFkk5bjaiA3JAMmyahvGXtz8M7B5oJrc5x5m3eOCeKStfQHmbv5VIlT0NE3XtCy2h+qyfNMinY2QEuw0mJYskJz+ysByKV3W+mAcQnycgukPGwecRIuxv2Csxdv8slYlemoh0sH3jFrHod18w2nhHZiozvXtCMNKE/2S0pZx071DgAX41tgYP/ZLh2ilBnjmeQmPB8ZGh+zwcsbAc= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 17:02:56.6176 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 403f163b-47b1-4b5e-315b-08d95e7c3286 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: DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6964 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,christopher.jones@arm.com X-Gm-Message-State: kIco8XwViueQVj2OvoFMif5Hx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628874186; bh=F7CKJv02regTkGO3Y21Z6/YXJqx7mg3o3twSmu21FSw=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=MdDBwIlTTgmMuRg9gWPRycOvXwsBjy+8bdexskPRtg7KhvMAmFsviuRSVD+9Kpuh00s K4EGZDyT2VfmpkTdKIvfLDCmHv9fad/MPV2PBU0zQD1w9qZDqogr8eDgatRrweTa/fGDw N4q7LngtLJLgKJ3uCe62GR+yqnLHgBDR+PM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628874188112100002 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3563 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3563) Update the Acpiview PCCT parser to use Acpi64.h. Signed-off-by: Chris Jones --- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c = | 46 ++++++++++---------- ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c= | 4 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/Pcct= Parser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctPa= rser.c index ca553d5953f05651d8df4c95d1e39a73eded5129..7d3a2dd10dc928265bad3711e92= 9d96c1ed40b1d 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c @@ -1,11 +1,11 @@ /** @file PCCT table parser =20 - Copyright (c) 2020, Arm Limited. + Copyright (c) 2021, Arm Limited. SPDX-License-Identifier: BSD-2-Clause-Patent =20 @par Reference(s): - - ACPI 6.3 Specification - January 2019 + - ACPI 6.4 Specification - January 2021 **/ =20 #include @@ -93,9 +93,9 @@ ValidatePccType0Gas ( { switch (*(UINT8*)Ptr) { #if !(defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)) - case EFI_ACPI_6_3_SYSTEM_IO: + case EFI_ACPI_6_4_SYSTEM_IO: #endif //if not (defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)) - case EFI_ACPI_6_3_SYSTEM_MEMORY: + case EFI_ACPI_6_4_SYSTEM_MEMORY: return; default: IncrementErrorCount (); @@ -120,10 +120,10 @@ ValidatePccGas ( { switch (*(UINT8*)Ptr) { #if !(defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)) - case EFI_ACPI_6_3_SYSTEM_IO: + case EFI_ACPI_6_4_SYSTEM_IO: #endif //if not (defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)) - case EFI_ACPI_6_3_FUNCTIONAL_FIXED_HARDWARE: - case EFI_ACPI_6_3_SYSTEM_MEMORY: + case EFI_ACPI_6_4_FUNCTIONAL_FIXED_HARDWARE: + case EFI_ACPI_6_4_SYSTEM_MEMORY: return; default: IncrementErrorCount (); @@ -148,10 +148,10 @@ ValidatePccDoorbellGas ( { // For slave subspaces this field is optional, if not present the field // should just contain zeros. - if (*PccSubspaceType =3D=3D EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_4_EXTENDED_P= CC) { + if (*PccSubspaceType =3D=3D EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_P= CC) { if (IsZeroBuffer ( Ptr, - sizeof (EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE) + sizeof (EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE) )) { return; } @@ -180,14 +180,14 @@ ValidatePccIntAckGas ( // edge driven the register may be omitted. A value of 0x0 on all // 12 bytes of the GAS structure indicates the register is not // present. - if (((*PccGlobalFlags & EFI_ACPI_6_3_PCCT_FLAGS_PLATFORM_INTERRUPT) !=3D - EFI_ACPI_6_3_PCCT_FLAGS_PLATFORM_INTERRUPT) || + if (((*PccGlobalFlags & EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT) !=3D + EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT) || ((*ExtendedPccSubspaceInterruptFlags & - EFI_ACPI_6_3_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE) =3D=3D - EFI_ACPI_6_3_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE)) { + EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE) =3D=3D + EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE)) { if (IsZeroBuffer ( Ptr, - sizeof (EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE) + sizeof (EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE) )) { return; } @@ -212,7 +212,7 @@ ValidatePccErrStatusGas ( ) { // This field is ignored by the OSPM on slave channels. - if (*PccSubspaceType =3D=3D EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_4_EXTENDED_P= CC) { + if (*PccSubspaceType =3D=3D EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_P= CC) { return; } =20 @@ -236,9 +236,9 @@ ValidatePlatInterrupt ( { // If a slave subspace is present in the PCCT, then the global Platform // Interrupt flag must be set to 1. - if ((*PccSubspaceType =3D=3D EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_4_EXTENDED_= PCC) && - ((*PccGlobalFlags & EFI_ACPI_6_3_PCCT_FLAGS_PLATFORM_INTERRUPT) !=3D - EFI_ACPI_6_3_PCCT_FLAGS_PLATFORM_INTERRUPT)) { + if ((*PccSubspaceType =3D=3D EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_= PCC) && + ((*PccGlobalFlags & EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT) !=3D + EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT)) { IncrementErrorCount (); Print ( L"\nError: Global Platform interrupt flag must be set to 1" \ @@ -563,31 +563,31 @@ ParseAcpiPcct ( } =20 switch (*PccSubspaceType) { - case EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_GENERIC: + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_GENERIC: DumpPccSubspaceType0 ( PccSubspacePtr, *PccSubspaceLength ); break; - case EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS: + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS: DumpPccSubspaceType1 ( PccSubspacePtr, *PccSubspaceLength ); break; - case EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS: + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS: DumpPccSubspaceType2 ( PccSubspacePtr, *PccSubspaceLength ); break; - case EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC: + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC: DumpPccSubspaceType3 ( PccSubspacePtr, *PccSubspaceLength ); break; - case EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC: + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC: DumpPccSubspaceType4 ( PccSubspacePtr, *PccSubspaceLength diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiView= CommandLib.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiVi= ewCommandLib.c index b30ed3fc8597b229dd15b6ad4f2aab2e3d0ca583..c81e5220272ae94448203ee02ea= 5caacb606842c 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommand= Lib.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommand= Lib.c @@ -1,7 +1,7 @@ /** @file Main file for 'acpiview' Shell command function. =20 - Copyright (c) 2016 - 2020, Arm Limited. All rights reserved.
+ Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ =20 @@ -60,7 +60,7 @@ ACPI_TABLE_PARSER ParserList[] =3D { {EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiMadt}, {EFI_ACPI_6_2_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS= _DESCRIPTION_TABLE_SIGNATURE, ParseAcpiMcfg}, - {EFI_ACPI_6_2_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE, + {EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE, ParseAcpiPcct}, {EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE, ParseAcpiPptt}, --=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 (#79287): https://edk2.groups.io/g/devel/message/79287 Mute This Topic: https://groups.io/mt/84868168/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- From nobody Mon May 6 11:46:41 2024 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+79286+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 1628874180947805.4654398417748; Fri, 13 Aug 2021 10:03:00 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ADDwYY1788612xt1P6Rv0pYZ; Fri, 13 Aug 2021 10:03:00 -0700 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.56]) by mx.groups.io with SMTP id smtpd.web08.39519.1628874178804469098 for ; Fri, 13 Aug 2021 10:02:59 -0700 X-Received: from DB6PR1001CA0031.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::17) by AM9PR08MB7198.eurprd08.prod.outlook.com (2603:10a6:20b:3df::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Fri, 13 Aug 2021 17:02:56 +0000 X-Received: from DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:55:cafe::34) by DB6PR1001CA0031.outlook.office365.com (2603:10a6:4:55::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:56 +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+79286+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 DB5EUR03FT003.mail.protection.outlook.com (10.152.20.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Fri, 13 Aug 2021 17:02:56 +0000 X-Received: ("Tessian outbound 8b41f5fb4e9e:v103"); Fri, 13 Aug 2021 17:02:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4b15e7fadb5e10db X-CR-MTA-TID: 64aa7808 X-Received: from e777c132dd0d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 62683BAF-AD82-4331-85E5-0020A0EA21B8.1; Fri, 13 Aug 2021 17:02:49 +0000 X-Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e777c132dd0d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 13 Aug 2021 17:02:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V8vzdF7aGd4RXXjTlReqe/qFl2f5bmrVCq7RPfM7aFPUelzHLMn7XmXJ6sKu2LE31mOo5tBUpwk1Q+X5rrgxWps0ScyaryoRc20VqTkr4rKMHeEWJQy1morEeJKgjXcTdSb1sQIwKvmWHsrLoL4vAXeL8CdLDs+84JoxXUbUnh90nex9gliAqiAy0zaSl9iOlj5Uz7XikcybkGMGdap4A9RWCT5mzWsG2cp596pcubxK//jyXfnzJwugHcTgGa5NLtqvzbsvHBVFUtPC052sVur8qe3+jYjHsY1eJ7AmIN0f2LgFFAqMObFqXBVGcg8rf2KBaUgGQOWyfPqDVgWVFw== 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=Smr3gB/CyvnH3neGTdHk8bGytI7Y1tTJb/gqpo5gO8I=; b=UWOk+xezb422eV3P7vKtE+uftQiLns119sygkb+DjqeEhkmJ+EtpPWtfhUsgB3gpE+BujLWUY4nQTCcpzT4GOWPD/WzCtGHMNgW8OHDkYJVc22/HSwCIeqqcQeYB3fKqvjnIpHoyTO6xuPGwSfGmzVL1dG0Z3srVIYdwUbRbEhGzP1Tsb7L0MSbc9euVOiXD2LrkXJDy+Lty39tODTyxPt5U+I8QHSo97eKvlo188s3TCl+IxmKCozQAEFKayP5upQfP4uXIy5tb46cR9wlTjg2vitqeNGgAfxl8arOaa4MwUyWiOAPgYQD02VGWfXfkie4MQDAghtiaGA4xXFB/1w== 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 DB6PR1001CA0037.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::23) by DB9PR08MB7024.eurprd08.prod.outlook.com (2603:10a6:10:2cc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Fri, 13 Aug 2021 17:02:48 +0000 X-Received: from DB5EUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:55:cafe::58) by DB6PR1001CA0037.outlook.office365.com (2603:10a6:4:55::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Fri, 13 Aug 2021 17:02:48 +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 DB5EUR03FT035.mail.protection.outlook.com (10.152.20.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4415.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:48 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Fri, 13 Aug 2021 17:02:46 +0000 X-Received: from e125153.arm.com (10.57.68.146) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2308.14 via Frontend Transport; Fri, 13 Aug 2021 17:02:46 +0000 From: "Chris Jones" To: CC: , , , , , , Subject: [edk2-devel] [PATCH v1 2/2] ShellPkg: Add Type 5 PCC Subspace Structure parser Date: Fri, 13 Aug 2021 18:02:45 +0100 Message-ID: <20210813170245.4318-3-christopher.jones@arm.com> In-Reply-To: <20210813170245.4318-1-christopher.jones@arm.com> References: <20210813170245.4318-1-christopher.jones@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87605391-74b2-45ed-5793-08d95e7c3248 X-MS-TrafficTypeDiagnostic: DB9PR08MB7024:|AM9PR08MB7198: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cnbKu7bns2GAYPg3cxH0IvK6NOZkPWJ+5a6IRueHdEAswDD6Qe1EnODW0bnEf32Hr6NjrIB0ePToplTlunh1FAdUGcgi1DNOrvH6NstgVXRyQkRa95C2NZF07qOtqlL37XGxlydwbvb0H9XUCaAWlDTsYjqILrTIUlnJlH/+w8uoCosV0pO4S3UN8++ZhqXNf6D/p12VUjP7nVCHCqczgnN85eMgv2R0ZWDYQTcJCB8Y0LXJAgl2io8y1iGiS/MBkgRbTzN7tR52Pz/zuCkxioJ1HxEZRN+1BAfnWd2aApIkWoUJZPonN8sAFsiam3hynQ1ui+KVqKgKbBN3xP9Kkf27VBLKXwHBS4UjO5qcOUmpzUwTRJlv2w7EbX9zQ2tBa9ogp3Ql62QpAc5Y3h4GnZ+ElfKwzKe/uaCrAcFeh/XkdZzj+Q3EZL0PQgyCX36xtTgbfo1gZ9jZMcGZNpacyvmxw7sS3058pxHqgcToF0k0ZtagUdF6/UL446YXP7MkMCVBH+Tdk4OVviobmR12PIDaaKgLBVHHW54Skh7FSEXDQiY/KKjZueqshNgbWfH8HMBL93xofV/pix+J38rCTkKuSXqlyRYesWfOJdPvTX50Bk0CFbBJdMTfe5h+LAIquHMFtI1wyIqa4QikfgFgGuISMz7omciMZ70Z3vgWHF3PYgiE/tQ19YiUxLrlQxGAQVSSr4hVNOpGHFJwZDrbIBImVZIDBavJMhd9tajvgxkhuOGC2kDtzDG3oD5Xixb9i34Er7h2ZbXBBKUC8b148ja06QwiDoFqpstsKsfROyggrp4yA9nQnsaHACBdEVJDel42lf4UvBlJWzmtDz/Xi7hqYrP2qT5OvB3X794j4zg= 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)(39850400004)(136003)(376002)(346002)(396003)(46966006)(36840700001)(54906003)(19627235002)(316002)(47076005)(1076003)(4326008)(82310400003)(34020700004)(6916009)(7696005)(70586007)(2616005)(186003)(356005)(8936002)(8676002)(478600001)(426003)(82740400003)(81166007)(36860700001)(36756003)(70206006)(336012)(83380400001)(26005)(2906002)(86362001)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7024 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: c225f12a-4f62-4494-9e5e-08d95e7c2d8c X-Microsoft-Antispam-Message-Info: YDSMnewE6EISh+6VD/rdvSt/9nDWdyrEw3ID2cN6XK7X5f1a/3a+/vgb1oMrKgg1WHGxqgl9POnHDwiYnFsmYj64yhfSwAxiX5Szq2zjinKuKRJ8FIkDruBdr3g2KlR6zkX/1T3qa5479n1Ag8p6xkh5dgUfBKUersIbJb8c3SfkcTiZgUnoka87ydBkx0ybm+M4qzXgBkVzgltMdaQuHlapndZ05Y1Hm8xMD9sJloRMDXX3cju1bgZUH5o76B97BWm5k5+05bxKni6xJLi5qJkXloHhx8vH73v0tri9OKKmFbmk2mMko5fGDMNPE2eU7zV3eM19aMHZ7kEU817os+ZBudg7XHqZZrnp0173urgSote03sl9PmwO3qxD4w8jiOSvI/gqWv28Zy3HMn6jO+QGVMu4ngOX+QH1lE7pKqAL+MHH2XFmbsColJQrWp4dNBDD/DJwvbVsPNwttqCjwJ2P0Nzr42oCFg5QPacrHr62Bh91M3sLsfAOH7ZUQ/daG90FG5HSeNssTMLx7JDblRtig+wXCFI09K06J4+gwe3IJX1aH20yJi3w7qKJ36HasxaEIQ1/Q3vw1+uSgYpp/7GtEBdNi9v91Uw4IDBpr24wnL++OODjqx9JrWB27J5Ld9RQou97lSb16r/Eg9BB1flTJnMbG2NmtjUVV9sdgYezUPu2bLOeoLkQQJ/QYCQxn53ykgmOFRZcpjRVhNreUGhkZTObYYJ6e+gIXfXzWlZzXZNjS8QWlJpY8j2L3657R2RGOHvxefWizF/tDyyWmoSmC92LpZtRrRns3nZKXm0= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 17:02:56.2123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87605391-74b2-45ed-5793-08d95e7c3248 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: DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB7198 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,christopher.jones@arm.com X-Gm-Message-State: dXeOpm9mPt1wrwQgNl4Z3dlVx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628874180; bh=GHCJnwe04xgWKAjE7ELwJAlc4ux9GRnieJqHyjSvLHI=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=LBd//+1tcf+Ob1g54uHzK+b71ETWjmyID62vUdx2O692Rta9MsuuDwo/2bqUVD8znaq Yon+tvUn8PRBWZ6Mpg1TYsBGPbTLuPbXlTPfCNU4zDL0pCNjLYQDIlsAEYspxn2JZonkn D72+RGZE41/3gtzlBvrfIhbPP1XD3cvUkPc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628874181321100002 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bugzilla: 3563 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3563) Update the Acpiview PCCT parser with the HW Registers based Communications Subspace Structure (Type 5) as defined in Section 14.1.7 of the ACPI 6.4 specification. Signed-off-by: Chris Jones --- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c | 5= 8 +++++++++++++++++++- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/Pcct= Parser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctPa= rser.c index 7d3a2dd10dc928265bad3711e929d96c1ed40b1d..6beee70b23a3b32992efa0edac4= 8fe236591b9f5 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c @@ -77,7 +77,7 @@ ValidateRangeLength8 ( } =20 /** - This function validates address space for type 0 structure. + This function validates address space for Memory/IO GAS. =20 @param [in] Ptr Pointer to the start of the field data. @param [in] Context Pointer to context specific information e.g. this @@ -86,7 +86,7 @@ ValidateRangeLength8 ( STATIC VOID EFIAPI -ValidatePccType0Gas ( +ValidatePccMemoryIoGas ( IN UINT8* Ptr, IN VOID* Context ) @@ -274,7 +274,7 @@ STATIC CONST ACPI_PARSER PccSubspaceType0Parser[] =3D { {L"Base Address", 8, 8, L"0x%lx", NULL, NULL, NULL, NULL}, {L"Memory Range Length", 8, 16, L"0x%lx", NULL, NULL, ValidateRangeLengt= h8, NULL}, - {L"Doorbell Register", 12, 24, NULL, DumpGas, NULL, ValidatePccType0Gas, + {L"Doorbell Register", 12, 24, NULL, DumpGas, NULL, ValidatePccMemoryIoG= as, NULL}, {L"Doorbell Preserve", 8, 36, L"0x%lx", NULL, NULL, NULL, NULL}, {L"Doorbell Write", 8, 44, L"0x%lx", NULL, NULL, NULL, NULL}, @@ -367,6 +367,29 @@ STATIC CONST ACPI_PARSER PccSubspaceType3Parser[] =3D { {L"Error Status Mask", 8, 156, L"0x%lx", NULL, NULL, NULL, NULL}, }; =20 +/** + An ACPI_PARSER array describing the HW Registers based Communications + Subspace Structure - Type 5 +*/ +STATIC CONST ACPI_PARSER PccSubspaceType5Parser[] =3D { + PCC_SUBSPACE_HEADER (), + {L"Version", 2, 2, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Base Address", 8, 4, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Shared Memory Range Length", 8, 12, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Doorbell Register", 12, 20, NULL, DumpGas, NULL, + ValidatePccMemoryIoGas, NULL}, + {L"Doorbell Preserve", 8, 32, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Doorbell Write", 8, 40, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Command Complete Check Register", 12, 48, NULL, DumpGas, NULL, + ValidatePccMemoryIoGas, NULL}, + {L"Command Complete Check Mask", 8, 60, L"0x%lx", NULL, NULL, NULL, NULL= }, + {L"Error Status Register", 12, 68, NULL, DumpGas, NULL, + ValidatePccMemoryIoGas, NULL}, + {L"Error Status Mask", 8, 80, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Nominal Latency", 4, 88, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Minimum Request Turnaround Time", 4, 92, L"0x%x", NULL, NULL, NULL, N= ULL} +}; + /** This function parses the PCC Subspace type 0. =20 @@ -482,6 +505,29 @@ DumpPccSubspaceType4 ( ); } =20 +/** + This function parses the PCC Subspace type 5. + + @param [in] Ptr Pointer to the start of the Subspace Structure. + @param [in] Length Length of the Subspace Structure. +**/ +STATIC +VOID +DumpPccSubspaceType5 ( + IN UINT8* Ptr, + IN UINT8 Length + ) +{ + ParseAcpi ( + TRUE, + 2, + "Subspace Type 5", + Ptr, + Length, + PARSER_PARAMS (PccSubspaceType5Parser) + ); +} + /** This function parses the ACPI PCCT table including its sub-structures of type 0 through 4. @@ -593,6 +639,12 @@ ParseAcpiPcct ( *PccSubspaceLength ); break; + case EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_5_HW_REGISTERS_COMMUNICATIONS: + DumpPccSubspaceType5 ( + PccSubspacePtr, + *PccSubspaceLength + ); + break; default: IncrementErrorCount (); Print ( --=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 (#79286): https://edk2.groups.io/g/devel/message/79286 Mute This Topic: https://groups.io/mt/84868166/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-