mirror of https://github.com/acidanthera/audk.git
ShellPkg/AcpiView: Add MPAM Parser
Add a parser for the MPAM (Memory system resource partitioning and monitoring) ACPI table. This parser would parse all MPAM related structures embedded as part of the ACPI table. Necessary validations are also performed where and when required. Signed-off-by: Rohit Mathew <Rohit.Mathew@arm.com> Cc: James Morse <james.Morse@arm.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Thomas Abraham <thomas.abraham@arm.com> Cc: Yeo Reum Yun <YeoReum.Yun@arm.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
parent
3c8133ba87
commit
b0e7a75a49
|
@ -942,6 +942,27 @@ ParseAcpiMcfg (
|
|||
IN UINT8 AcpiTableRevision
|
||||
);
|
||||
|
||||
/**
|
||||
This function parses the ACPI MPAM table.
|
||||
When trace is enabled this function parses the MPAM table and
|
||||
traces the ACPI table fields.
|
||||
|
||||
This function also performs validation of the ACPI table fields.
|
||||
|
||||
@param [in] Trace If TRUE, trace the ACPI fields.
|
||||
@param [in] Ptr Pointer to the start of the buffer.
|
||||
@param [in] AcpiTableLength Length of the ACPI table.
|
||||
@param [in] AcpiTableRevision Revision of the ACPI table.
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
ParseAcpiMpam (
|
||||
IN BOOLEAN Trace,
|
||||
IN UINT8 *Ptr,
|
||||
IN UINT32 AcpiTableLength,
|
||||
IN UINT8 AcpiTableRevision
|
||||
);
|
||||
|
||||
/**
|
||||
This function parses the ACPI PCCT table including its sub-structures
|
||||
of type 0 through 4.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,7 +2,7 @@
|
|||
Main file for 'acpiview' Shell command function.
|
||||
|
||||
Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2023, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
|
@ -66,6 +66,7 @@ ACPI_TABLE_PARSER ParserList[] = {
|
|||
{ 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_MEMORY_SYSTEM_RESOURCE_PARTITIONING_AND_MONITORING_TABLE_SIGNATURE, ParseAcpiMpam },
|
||||
{ EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE,
|
||||
ParseAcpiPcct },
|
||||
{ EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE,
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
Parsers/Madt/MadtParser.c
|
||||
Parsers/Madt/MadtParser.h
|
||||
Parsers/Mcfg/McfgParser.c
|
||||
Parsers/Mpam/MpamParser.c
|
||||
Parsers/Pcct/PcctParser.c
|
||||
Parsers/Pcct/PcctParser.h
|
||||
Parsers/Pptt/PpttParser.c
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// /**
|
||||
//
|
||||
// Copyright (c) 2016 - 2020, Arm Limited. All rights reserved.<BR>
|
||||
// Copyright (c) 2016 - 2023, Arm Limited. All rights reserved.<BR>
|
||||
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// Module Name:
|
||||
|
@ -89,6 +89,7 @@
|
|||
" HMAT - Heterogeneous Memory Attributes Table\r\n"
|
||||
" IORT - IO Remapping Table\r\n"
|
||||
" MCFG - Memory Mapped Config Space Base Address Description Table\r\n"
|
||||
" MPAM - Memory System Resource Partitioning and Monitoring Table\r\n"
|
||||
" PPTT - Processor Properties Topology Table\r\n"
|
||||
" RSDP - Root System Description Pointer\r\n"
|
||||
" SLIT - System Locality Information Table\r\n"
|
||||
|
|
Loading…
Reference in New Issue