mbox series

[0/3] Add hwmon and sysfs reporting in HSMP

Message ID 20250218123905.51984-1-suma.hegde@amd.com (mailing list archive)
Headers show
Series Add hwmon and sysfs reporting in HSMP | expand

Message

Suma Hegde Feb. 18, 2025, 12:39 p.m. UTC
This patch series adds 
1. power sensors for hwmon interface
2. sysfs interface for telemetry (only in acpi module)

Patch 1: Use one HSMP driver version for common, acpi and plat files.
Patch 2: Add sysfs files to acpi driver.
Patch 3: Add hwmon power sensor support to both acpi and plat driver.

Suma Hegde (3):
  platform/x86/amd/hsmp: Use one DRIVER_VERSION
  platform/x86/amd/hsmp: Report power using hwmon sensors
  platform/x86/amd/hsmp: acpi: Add sysfs files to show HSMP telemetry

 Documentation/arch/x86/amd_hsmp.rst    |  29 +++
 drivers/platform/x86/amd/hsmp/Makefile |   2 +-
 drivers/platform/x86/amd/hsmp/acpi.c   | 273 ++++++++++++++++++++++++-
 drivers/platform/x86/amd/hsmp/hsmp.c   |  23 ++-
 drivers/platform/x86/amd/hsmp/hsmp.h   |  13 ++
 drivers/platform/x86/amd/hsmp/hwmon.c  | 191 +++++++++++++++++
 drivers/platform/x86/amd/hsmp/plat.c   |   4 +-
 7 files changed, 530 insertions(+), 5 deletions(-)
 create mode 100644 drivers/platform/x86/amd/hsmp/hwmon.c