Skip to content

ACPI: FPDT: expose FBPT and S3PT subtables via sysfs

Nate DeSimone linux-acpi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

- changed sysfs_create_bin_file() error handling to a non-fatal warning

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ACPI: FPDT: expose FBPT and S3PT subtables via sysfsdrivers/acpi/acpi_fpdt.c+28 -01 reply
2/2Documentation: ABI: add FBPT and S3PT entries to sysfs-firmware-acpiDocumentation/ABI/testing/sysfs-firmware-acpi+6 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] ACPI: FPDT: expose FBPT and S3PT subtables via sysfs

The ACPI Firmware Performance Data Table (FPDT) can contain two subtables:

1. Firmware Basic Boot Performance Table (FBPT)
2. S3 Performance Table (S3PT)

The existing /sys/firmware/acpi/tables/FPDT sysfs entry only exposes the top-level FPDT header, not the subtables themselves.

This series adds sysfs attributes at /sys/firmware/acpi/fpdt/FBPT and /sys/firmware/acpi/fpdt/S3PT that expose the raw contents of these subtables. This mirrors the model used by /sys/firmware/dmi/tables/DMI for DMI/SMBIOS data, and allows userspace tools to parse newer FPDT record types defined in recent ACPI specifications[1] (e.g. String Event Records, Microcontroller Boot Performance Data Records, etc.) without requiring kernel changes for each new record type.

[1]
https://uefi.org/specs/ACPI/6.6/05_ACPI_Software_Programming_Model.html#performance-event-record-types

---

Changes in v3:
- changed sysfs_create_bin_file() error handling to a non-fatal warning

Changes in v2:
- removed the intermediate /sys/firmware/acpi/tables/ subdirectory
- tightened file permissions for FBPT and S3PT from 0444 to 0400
- added documentation to Documentation/ABI/testing/sysfs-firmware-acpi

---
Nate DeSimone (2):
ACPI: FPDT: expose FBPT and S3PT subtables via sysfs
Documentation: ABI: add FBPT and S3PT entries to sysfs-firmware-acpi

 Documentation/ABI/testing/sysfs-firmware-acpi |  6 ++++
 drivers/acpi/acpi_fpdt.c                      | 28 +++++++++++++++++++
 2 files changed, 34 insertions(+)

base-commit: 24f9515de8778410e4b84c85b196c9850d2c1e18

Signature · 1 line
2.34.1