| # -*- Mode: Python -*- | |
| # vim: filetype=python | |
| # SPDX-License-Identifier: GPL-2.0-or-later | |
| ## | |
| # == GHESv2 CPER Error Injection | |
| # | |
| # Defined since ACPI Specification 6.1, section 18.3.2.8 Generic | |
| # Hardware Error Source version 2. See: | |
| # | |
| # https://uefi.org/sites/default/files/resources/ACPI_6_1.pdf | |
| ## | |
| ## | |
| # @inject-ghes-v2-error: | |
| # Inject an error with additional ACPI 6.1 GHESv2 error | |
| # information | |
| # | |
| # @cper: contains a base64 encoded string with raw data for a single | |
| # CPER record with Generic Error Status Block, Generic Error Data | |
| # Entry and generic error data payload, as described at | |
| # https://uefi.org/specs/UEFI/2.10/Apx_N_Common_Platform_Error_Record.html#format | |
| # | |
| # Features: | |
| # | |
| # @unstable: This command is experimental. | |
| # | |
| # Since: 10.2 | |
| ## | |
| { 'command': 'inject-ghes-v2-error', | |
| 'data': { | |
| 'cper': 'str' | |
| }, | |
| 'features': [ 'unstable' ] | |
| } |