public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: devel@edk2.groups.io
Cc: Abdul Lateef Attar <abdattar@amd.com>
Subject: [edk2-stable202208 2/3] Revert "ShellPkg: Adds Local APIC parser to AcpiView"
Date: Fri, 26 Aug 2022 10:14:55 +0800	[thread overview]
Message-ID: <20220826021456.2428-3-gaoliming@byosoft.com.cn> (raw)
In-Reply-To: <20220826021456.2428-1-gaoliming@byosoft.com.cn>

This reverts commit d5fd86f256b9ab5b4e3aff70d3c177c18faea892 for tag202208.
This feature will be merged after stable tag 202208 is created.

Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Abdul Lateef Attar <abdattar@amd.com>
---
 .../Parsers/Madt/MadtParser.c                 | 74 ++-----------------
 1 file changed, 7 insertions(+), 67 deletions(-)

diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.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
 
   Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
-  Copyright (c) 2022, AMD Incorporated. All rights reserved.
   SPDX-License-Identifier: BSD-2-Clause-Patent
 
   @par Reference(s):
@@ -207,65 +206,17 @@ STATIC CONST ACPI_PARSER  InterruptSourceOverride[] = {
   { L"Flags",                   2, 8, L"0x%x", NULL, NULL, NULL, NULL }
 };
 
-STATIC CONST ACPI_PARSER  LocalApicFlags[] = {
-  { 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 != 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[] = {
-  { L"Type",               1, 0, L"0x%x", NULL,                  NULL, NULL, NULL },
-  { L"Length",             1, 1, L"%d",   NULL,                  NULL, NULL, NULL },
-
-  { L"ACPI Processor UID", 1, 2, L"0x%x", NULL,                  NULL, NULL, NULL },
-  { L"APIC ID",            1, 3, L"0x%x", NULL,                  NULL, NULL, NULL },
-  { L"Flags",              4, 4, NULL,    DumpLocalApicBitFlags, NULL, NULL, NULL }
-};
-
 /**
   An ACPI_PARSER array describing the Processor Local x2APIC Structure.
 **/
 STATIC CONST ACPI_PARSER  ProcessorLocalX2Apic[] = {
-  { 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 },
+  { 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 },
 
-  { L"X2APIC ID",          4, 4,  L"0x%x", NULL,                  NULL, NULL, NULL },
-  { L"Flags",              4, 8,  NULL,    DumpLocalApicBitFlags, NULL, NULL, NULL },
-  { L"ACPI Processor UID", 4, 12, L"0x%x", NULL,                  NULL, NULL, 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 }
 };
 
 /**
@@ -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 (
-- 
2.27.0.windows.1



  parent reply	other threads:[~2022-08-26  2:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  2:14 [edk2-stable202208 0/3] Revert three patches for edk2 stable tag 202208 gaoliming
2022-08-26  2:14 ` [edk2-stable202208 1/3] Revert "UefiCpuPkg/CpuPageTableLib/UnitTest: Add host based unit test" gaoliming
2022-08-26  3:10   ` [edk2-devel] " Zhiguang Liu
2022-08-26  2:14 ` gaoliming [this message]
2022-08-26  2:14 ` [edk2-stable202208 3/3] Revert "BaseTools: Fix DSC LibraryClass precedence rule" gaoliming
2022-08-26  4:17   ` [edk2-devel] " Bob Feng
2022-08-27  9:16 ` [edk2-devel] [edk2-stable202208 0/3] Revert three patches for edk2 stable tag 202208 Ard Biesheuvel
2022-08-29  2:48   ` 回复: " gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220826021456.2428-3-gaoliming@byosoft.com.cn \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox