Skip to content

Commit

Permalink
ACPI: Introduce Platform Firmware Runtime Telemetry driver
Browse files Browse the repository at this point in the history
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 <hongyu.ning@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Chen Yu authored and Rafael J. Wysocki committed Dec 27, 2021
1 parent 0db89fa commit b0013e0
Show file tree
Hide file tree
Showing 4 changed files with 529 additions and 3 deletions.
8 changes: 6 additions & 2 deletions drivers/acpi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,12 @@ config ACPI_PFRUT
The existing firmware code can be modified (driver update) or
extended by adding new code to the firmware (code injection).

To compile this driver as module, choose M here:
the module will be called pfr_update.
Besides, the telemetry driver allows user space to fetch telemetry
data from the firmware with the help of the Platform Firmware Runtime
Telemetry interface.

To compile the drivers as modules, choose M here:
the modules will be called pfr_update and pfr_telemetry.

if ARM64
source "drivers/acpi/arm64/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
obj-$(CONFIG_ACPI_PPTT) += pptt.o
obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o
obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o

# processor has its own "processor." module_param namespace
processor-y := processor_driver.o
Expand Down
Loading

0 comments on commit b0013e0

Please sign in to comment.