Skip to content

Commit b0013e0

Browse files
yu-chen-surfrafaeljw
authored andcommitted
ACPI: Introduce Platform Firmware Runtime Telemetry driver
This driver allows user space to fetch telemetry data from the firmware with the help of the Platform Firmware Runtime Telemetry interface. Both PFRU and PFRT are based on ACPI _DSM interfaces located under special device objects in the ACPI Namespace, but these interfaces are different from each other, so it is better to provide a separate driver from each of them, even though they share some common definitions and naming conventions. Tested-by: Hongyu Ning <[email protected]> Signed-off-by: Chen Yu <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0db89fa commit b0013e0

File tree

4 files changed

+529
-3
lines changed

4 files changed

+529
-3
lines changed

drivers/acpi/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,12 @@ config ACPI_PFRUT
532532
The existing firmware code can be modified (driver update) or
533533
extended by adding new code to the firmware (code injection).
534534

535-
To compile this driver as module, choose M here:
536-
the module will be called pfr_update.
535+
Besides, the telemetry driver allows user space to fetch telemetry
536+
data from the firmware with the help of the Platform Firmware Runtime
537+
Telemetry interface.
538+
539+
To compile the drivers as modules, choose M here:
540+
the modules will be called pfr_update and pfr_telemetry.
537541

538542
if ARM64
539543
source "drivers/acpi/arm64/Kconfig"

drivers/acpi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
102102
obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
103103
obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
104104
obj-$(CONFIG_ACPI_PPTT) += pptt.o
105-
obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o
105+
obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o
106106

107107
# processor has its own "processor." module_param namespace
108108
processor-y := processor_driver.o

0 commit comments

Comments
 (0)