diff options
| author | Zaid Alali <[email protected]> | 2025-06-17 19:30:23 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-18 18:49:31 +0000 |
| commit | 691a0f0a557b19316ef533f9ca34c72ab6c7ae56 (patch) | |
| tree | dfc40a1f4926b39156751914635022e59160e166 /lib/crypto/mpi/mpi-add.c | |
| parent | ACPI: APEI: EINJ: Add einjv2 extension struct (diff) | |
| download | kernel-691a0f0a557b19316ef533f9ca34c72ab6c7ae56.tar.gz kernel-691a0f0a557b19316ef533f9ca34c72ab6c7ae56.zip | |
ACPI: APEI: EINJ: Discover EINJv2 parameters
The EINJv2 set_error_type_with_address structure has a flex array
to hold the component IDs and syndrome values used when injecting
multiple errors at once.
Discover the size of this array by taking the address from the
ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS entry in the EINJ table
and reading the BIOS copy of the structure.
Derive the maximum number of components from the length field
in the einjv2_extension_struct at the end of the BIOS copy.
Map the whole of the structure into kernel memory (and unmap
on module unload).
[Tony: Code unchanged from Zaid's original. New commit message]
Reviewed-by: Tony Luck <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Zaid Alali <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
