Skip to content

Enable EINJv2 Support

Zaid Alali linux-acpi linux-hardening lkml 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest7 patches 1 replyIn review
  2. v97 patches 9 repliesSuperseded
  3. v87 patches 1 replySuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v79 patches23 repliesSuperseded
v69 patches3 repliesSuperseded
v59 patches13 repliesSuperseded
v49 patches9 repliesSuperseded
v39 patches6 repliesSuperseded
v2 posting 2/29 patches8 repliesSuperseded
v2 RFC posting 1/28 patches7 repliesSuperseded
v1 RFC2 patches0 repliesSuperseded

Changes in v10 from the cover letter

*Use defined value instead of hard coded for component
array size
*Unset EINJv2 flag for EINJv1 injections

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ACPI: APEI: EINJ: Fix kernel test sparse warningsdrivers/acpi/apei/einj-core.c+60 -462 replies
2/7ACPI: APEI: EINJ: Enable the discovery of EINJv2 capabilitiesdrivers/acpi/apei/apei-internal.h drivers/acpi/apei/einj-core.c drivers/acpi/apei/einj-cxl.c+63 -160 replies
3/7ACPI: APEI: EINJ: Add einjv2 extension structdrivers/acpi/apei/einj-core.c+24 -00 replies
4/7ACPI: APEI: EINJ: Discover EINJv2 parametersdrivers/acpi/apei/einj-core.c+24 -20 replies
5/7ACPI: APEI: EINJ: Create debugfs files to enter device id and syndromedrivers/acpi/apei/einj-core.c+97 -00 replies
6/7ACPI: APEI: EINJ: Enable EINJv2 error injectionsdrivers/acpi/apei/einj-core.c+47 -110 replies
7/7ACPI: APEI: EINJ: Update the documentation for EINJv2 supportDocumentation/firmware-guide/acpi/apei/einj.rst+33 -00 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchIra WeinyJonathan CameronTony Luck
1/7R-b R-b R-b
2/7R-b R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v10 thread

Cover letter [PATCH v10 0/7] Enable EINJv2 Support

The goal of this update is to allow the driver to simultaneously support EINJ and EINJv2. The implementation follows ACPI 6.6 specs[1] that enables the driver to discover system capabilities through GET_ERROR_TYPE.

V5:
*Users no longer input component array size, instead it
is counted by parsing the component array itself.
V6:
*Fix memory leak.
*If EINJv2 initialization failed, EINJv1 will still work, and
probe function will continue with disabled EINJv2.
V7:
*Update component array to take 128-bit values to match ACPI specs. *Enable Vendor EINJv2 injections
*Moved component array parsing and validating to a separate
function to improve readability.
V8:
*Update UI to use single value files for component array. *Update links to point to recent ACPI 6.6 spec release. *Updated commit messages and documentation patch. *Dropped the first two patches as they were merged via
ACPICA project.
V9:
*Fix commit messages signed-off/reviewed-by order.
*Fix sparse warning by defining syndrom_data as a
static struct.
V10:
*Use defined value instead of hard coded for component
array size
*Unset EINJv2 flag for EINJv1 injections

Tony Luck (1):
ACPI: APEI: EINJ: Create debugfs files to enter device id and syndrome

Zaid Alali (6):
ACPI: APEI: EINJ: Fix kernel test sparse warnings
ACPI: APEI: EINJ: Enable the discovery of EINJv2 capabilities
ACPI: APEI: EINJ: Add einjv2 extension struct
ACPI: APEI: EINJ: Discover EINJv2 parameters
ACPI: APEI: EINJ: Enable EINJv2 error injections
ACPI: APEI: EINJ: Update the documentation for EINJv2 support

 .../firmware-guide/acpi/apei/einj.rst         |  33 ++
 drivers/acpi/apei/apei-internal.h             |   2 +-
 drivers/acpi/apei/einj-core.c                 | 374 ++++++++++++++----
 drivers/acpi/apei/einj-cxl.c                  |   2 +-
 4 files changed, 342 insertions(+), 69 deletions(-)
Signature · 1 line
2.43.0