]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: acpiview: Add library for SBBR ACPI requirements validation
authorKrzysztof Koch <krzysztof.koch@arm.com>
Wed, 25 Mar 2020 09:39:23 +0000 (17:39 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 May 2020 17:00:57 +0000 (17:00 +0000)
commitf793bfcae94ffe81537967ac2ce3f83a56f3e73a
tree7eb00efecef7e419739279bf7f0ceee3e8c8a57c
parent8af507c1f16d9cc311e83397881016e3887acfbb
ShellPkg: acpiview: Add library for SBBR ACPI requirements validation

For Arm-based platforms, define and implement an interface for Server
Base Boot Requirements (SBBR) compliance checks. The library is
responsible for validating that all mandatory ACPI tables are installed
on the platform.

Internally, the library maintains a data structure which tracks
instance counts for ACPI tables which are labeled as 'mandatory' in any
SBBR specification version. The provided interface allows:
- resetting all instance counts to 0
- incremementing the instance count for a table with a given signature
- validating the instance counts against the requirements in SBBR

The ACPI table requirements for each SBBR spec version are represented
internally as a list of table signatures.

Every missing mandatory table (for the input SBBR version) is reported
to the user as a separate error. If all requirements are met, an info
message is displayed.

Reference(s):
    - Arm Server Base Boot Requirements 1.2, September 2019
    - Arm Server Base Boot Requirements 1.1, May 2018
    - Arm Server Base Boot Requirements 1.0, March 2016

Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
Reviewed-by: Sami Mujawar <Sami.Mujawar@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.c [new file with mode: 0644]
ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.h [new file with mode: 0644]
ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf