Skip to content

Update PRM patches to fix some issues...

Erik Kaneda linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPICA: Add PRMT module header to facilitate parsinginclude/acpi/actbl2.h+5 -00 replies
2/3PRM: implement OperationRegion handler for the PlatformRtMechanism subtypedrivers/acpi/Kconfig drivers/acpi/Makefile drivers/acpi/bus.c +4 more+328 -00 replies
3/3ACPI: Add \_SB._OSC bit for PRMdrivers/acpi/bus.c include/linux/acpi.h+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Update PRM patches to fix some issues...

Hi Rafael, I found out that there were several misspelled struct fields that resulted from merging my PRM code with ACPICA material that caused build errors. This patch set resolves build issues by

1) fixing the spelling errors
2) defining the struct acpi_prmt_module_header that got left off. This struct is used by acpi_parse_table_entries and is not used by ACPICA so it was left out accidentally.

This patch set also fixes a crash that was caused when I split up acpi_table_prmt and acpi_table_prmt_header. These structs used to be defined in a single struct acpi_table_prmt but it was split up in order to facilitate iASL compiler implementation. The size of the 36-byte ACPI table header + the size of any additional fields are needed as parameter to the acpi_parse_table_entries function. When I split up acpi_table_prmt into two different structs, I did not adjust the parameter to acpi_parse_table_entries and this ended up breaking the PRMT parsing. I've fixed this by changing the parameter to acpi_parse_table_entries to account for this additional struct.

Sorry for the confusion! This patchset should clear things up and runs the PRM handler in the edk2 PRM samples without any issues.

I've based this on rc-5.

Thanks and sorry for the noise!
Erik

Erik Kaneda (3):
ACPICA: Add PRMT module header to facilitate parsing
PRM: implement OperationRegion handler for the PlatformRtMechanism
subtype
ACPI: Add \_SB._OSC bit for PRM

 drivers/acpi/Kconfig  |   5 +
 drivers/acpi/Makefile |   1 +
 drivers/acpi/bus.c    |   3 +
 drivers/acpi/prmt.c   | 303 ++++++++++++++++++++++++++++++++++++++++++
 drivers/acpi/tables.c |   9 ++
 include/acpi/actbl2.h |   5 +
 include/linux/acpi.h  |   2 +
 include/linux/prmt.h  |   7 +
 8 files changed, 335 insertions(+)
 create mode 100644 drivers/acpi/prmt.c
 create mode 100644 include/linux/prmt.h
Signature · 1 line
2.29.2