| 1 | # -*- Mode: Python -*- |
| 2 | # vim: filetype=python |
| 3 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 4 | |
| 5 | ## |
| 6 | # == GHESv2 CPER Error Injection |
| 7 | # |
| 8 | # Defined since ACPI Specification 6.1, section 18.3.2.8 Generic |
| 9 | # Hardware Error Source version 2. See: |
| 10 | # |
| 11 | # https://uefi.org/sites/default/files/resources/ACPI_6_1.pdf |
| 12 | ## |
| 13 | |
| 14 | ## |
| 15 | # @inject-ghes-v2-error: |
| 16 | # |
| 17 | # Inject an error with additional ACPI 6.1 GHESv2 error information |
| 18 | # |
| 19 | # @cper: contains a base64 encoded string with raw data for a single |
| 20 | # CPER record with Generic Error Status Block, Generic Error Data |
| 21 | # Entry and generic error data payload, as described at |
| 22 | # https://uefi.org/specs/UEFI/2.10/Apx_N_Common_Platform_Error_Record.html#format |
| 23 | # |
| 24 | # Features: |
| 25 | # |
| 26 | # @unstable: This command is experimental. |
| 27 | # |
| 28 | # Since: 10.2 |
| 29 | ## |
| 30 | { 'command': 'inject-ghes-v2-error', |
| 31 | 'data': { |
| 32 | 'cper': 'str' |
| 33 | }, |
| 34 | 'features': [ 'unstable' ] |
| 35 | } |