From nobody Tue Feb 10 22:18:28 2026 Delivered-To: importer@patchew.org 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+92834+1787277+3901457@groups.io; helo=mail02.groups.io; 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+92834+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1661480129; cv=none; d=zohomail.com; s=zohoarc; b=D+M7XO4Fi1TkQDYxhqOBwIrwCxkA7CjjbtbAjXW6NXPbIWSt6aAG0dsLtGsyQq3IdG8MZGZWeTUN7GwV9kCzF4CBBdux2Ny6at0imM4XDfJhuMzs1iJn18IvpQ907RjjCuhH4gfzs8XVchii33SJmC1BTgOmABJw1Mp85btKFFY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661480129; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=e2kwuX4gH5VjQYrVBu2Nbc24pLfx4OtEGztT3T7Et/U=; b=eExjZx0UiahGpFWFHUHn+F1E/u0q6PMU4FsRDoGjNMN+1LaAlqHTsOHuir/gtVPcQTRwOiZ0T2E5lDT89rrnqG1NXa3rEugJ5HYwAv53uiFMMmmizWyTSAwXD4EGTfG+IqJh6ErQWrQL6g2T11lecvJUjZV53MTdX1UL995cHAo= ARC-Authentication-Results: i=1; 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+92834+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1661480129788139.784949780293; Thu, 25 Aug 2022 19:15:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id fUgqYY1788612xCnShHzvX1S; Thu, 25 Aug 2022 19:15:29 -0700 X-Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web09.32576.1661480126989905827 for ; Thu, 25 Aug 2022 19:15:28 -0700 X-Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 7C975CD1F7CF for ; Fri, 26 Aug 2022 10:15:20 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 78CDCCD1F7C8 for ; Fri, 26 Aug 2022 10:15:20 +0800 (CST) X-Virus-Scanned: by SpamTitan at intel-email.com X-Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 47209CD1F7C7 for ; Fri, 26 Aug 2022 10:15:20 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id 24532CD1F7CF for ; Fri, 26 Aug 2022 10:15:18 +0800 (CST) X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 26 Aug 2022 10:15:12 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: devel@edk2.groups.io Cc: Abdul Lateef Attar Subject: [edk2-devel] [edk2-stable202208 2/3] Revert "ShellPkg: Adds Local APIC parser to AcpiView" Date: Fri, 26 Aug 2022 10:14:55 +0800 Message-Id: <20220826021456.2428-3-gaoliming@byosoft.com.cn> In-Reply-To: <20220826021456.2428-1-gaoliming@byosoft.com.cn> References: <20220826021456.2428-1-gaoliming@byosoft.com.cn> MIME-Version: 1.0 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,gaoliming@byosoft.com.cn X-Gm-Message-State: 8oTCiMTRrJaEnpz8QgG8cnY8x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1661480129; bh=06gBu4hp7hV9dB/NjbXgJgKFNOHZrbYTludtMaBLZeQ=; h=Cc:Date:From:Reply-To:Subject:To; b=a6YeqHVUUj/QqVHMkPFvwSfRqNckSyUI++btlwSdBWzBPPLV1A7jGAMui6Cq7mXA2FJ x61C/EAw2kmyUuL61ryP4fI5DVkcq1bYxSaXcbT1sE0pkj+y3ZB53okIf66fATGIsop2T Ee9T5c/pzCq6icgMZnRk9wxedgrDpjuLYhA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1661480131554100014 Content-Type: text/plain; charset="utf-8" This reverts commit d5fd86f256b9ab5b4e3aff70d3c177c18faea892 for tag202208. This feature will be merged after stable tag 202208 is created. Signed-off-by: Liming Gao Cc: Abdul Lateef Attar --- .../Parsers/Madt/MadtParser.c | 74 ++----------------- 1 file changed, 7 insertions(+), 67 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/Madt= Parser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtPa= rser.c index 41edcb9ffd..aaa68c99f5 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c @@ -2,7 +2,6 @@ MADT table parser =20 Copyright (c) 2016 - 2020, ARM Limited. All rights reserved. - Copyright (c) 2022, AMD Incorporated. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent =20 @par Reference(s): @@ -207,65 +206,17 @@ STATIC CONST ACPI_PARSER InterruptSourceOverride[] = =3D { { L"Flags", 2, 8, L"0x%x", NULL, NULL, NULL, NULL } }; =20 -STATIC CONST ACPI_PARSER LocalApicFlags[] =3D { - { L"Enabled", 1, 0, L"%d", NULL, NULL, NULL, NULL }, - { L"Online Capable", 1, 1, L"%d", NULL, NULL, NULL, NULL }, - { L"Reserved", 30, 2, L"%d", NULL, NULL, NULL, NULL } -}; - -/** - This function traces Bit Flags fields. - If no format string is specified the Format must be NULL. - - @param [in] Format Optional format string for tracing the data. - @param [in] Ptr Pointer to the start of the buffer. -**/ -VOID -EFIAPI -DumpLocalApicBitFlags ( - IN CONST CHAR16 *Format OPTIONAL, - IN UINT8 *Ptr - ) -{ - if (Format !=3D NULL) { - Print (Format, *(UINT32 *)Ptr); - return; - } - - Print (L"0x%X\n", *(UINT32 *)Ptr); - ParseAcpiBitFields ( - TRUE, - 2, - NULL, - Ptr, - 4, - PARSER_PARAMS (LocalApicFlags) - ); -} - -/** - An ACPI_PARSER array describing the Processor Local APIC Structure. - **/ -STATIC CONST ACPI_PARSER ProcessorLocalApic[] =3D { - { L"Type", 1, 0, L"0x%x", NULL, NULL, NUL= L, NULL }, - { L"Length", 1, 1, L"%d", NULL, NULL, NUL= L, NULL }, - - { L"ACPI Processor UID", 1, 2, L"0x%x", NULL, NULL, NUL= L, NULL }, - { L"APIC ID", 1, 3, L"0x%x", NULL, NULL, NUL= L, NULL }, - { L"Flags", 4, 4, NULL, DumpLocalApicBitFlags, NULL, NUL= L, NULL } -}; - /** An ACPI_PARSER array describing the Processor Local x2APIC Structure. **/ STATIC CONST ACPI_PARSER ProcessorLocalX2Apic[] =3D { - { L"Type", 1, 0, L"0x%x", NULL, NULL, NU= LL, NULL }, - { L"Length", 1, 1, L"%d", NULL, NULL, NU= LL, NULL }, - { L"Reserved", 2, 2, L"0x%x", NULL, NULL, NU= LL, NULL }, + { L"Type", 1, 0, L"0x%x", NULL, NULL, NULL, NULL }, + { L"Length", 1, 1, L"%d", NULL, NULL, NULL, NULL }, + { L"Reserved", 2, 2, L"0x%x", NULL, NULL, NULL, NULL }, =20 - { L"X2APIC ID", 4, 4, L"0x%x", NULL, NULL, NU= LL, NULL }, - { L"Flags", 4, 8, NULL, DumpLocalApicBitFlags, NULL, NU= LL, NULL }, - { L"ACPI Processor UID", 4, 12, L"0x%x", NULL, NULL, NU= LL, NULL } + { L"X2APIC ID", 4, 4, L"0x%x", NULL, NULL, NULL, NULL }, + { L"Flags", 4, 8, L"0x%x", NULL, NULL, NULL, NULL }, + { L"ACPI Processor UID", 4, 12, L"0x%x", NULL, NULL, NULL, NULL } }; =20 /** @@ -490,18 +441,7 @@ ParseAcpiMadt ( ); break; } - case EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC: - { - ParseAcpi ( - TRUE, - 2, - "PROCESSOR LOCAL APIC", - InterruptContollerPtr, - *MadtInterruptControllerLength, - PARSER_PARAMS (ProcessorLocalApic) - ); - break; - } + case EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC: { ParseAcpi ( --=20 2.27.0.windows.1 -=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 (#92834): https://edk2.groups.io/g/devel/message/92834 Mute This Topic: https://groups.io/mt/93262566/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-