All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Introduce AMD PMF util layer and user-space interface for SystemDeck
@ 2025-11-11  7:10 Shyam Sundar S K
  2025-11-11  7:10 ` [PATCH v2 1/5] platform/x86/amd/pmf: add util layer and user-space misc device interface Shyam Sundar S K
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Shyam Sundar S K @ 2025-11-11  7:10 UTC (permalink / raw)
  To: hansg, ilpo.jarvinen
  Cc: platform-driver-x86, mario.limonciello, Yijun.Shen,
	Sanket.Goswami, Shyam Sundar S K

This series introduces a util layer to the AMD Platform Management
Framework (PMF) and a minimal user-space interface via a misc character
device, enabling feature discovery and smoother integration with
user-space tools. It also adds caching of BIOS output policy values to
prepare for user-space telemetry reporting via IOCTLs.

The motivation is to provide a stable interface for user-space tools to
discover PMF features and consume selected metrics. Enable smoother
integration with AMD SystemDeck, a widely used tool for monitoring and
controlling power and thermal behavior, helping designers keep components
within thermal limits to ensure proper operation and improve system
stability and reliability.

This series also adds a small, dependable userspace utility that leverages
the new IOCTLs to query live power and thermal telemetry. Exposing this
data in a scriptable interface helps users and tooling make informed,
workload-aware decisions and supports validation and debugging.

v2:
----
 - address remarks from v1
 - add a new tool that exercises the IOCTLs from PMF interface

Shyam Sundar S K (5):
  platform/x86/amd/pmf: add util layer and user-space misc device
    interface
  platform/x86/amd/pmf: cache BIOS output values for user-space
    telemetry via util IOCTL
  Documentation/ABI: add testing entry for AMD PMF misc device interface
  platform/x86/amd/pmf: Store commonly used enums in the header file
  platform/x86/amd/pmf: Introduce AMD PMF testing tool for driver
    metrics and features

 .../ABI/testing/misc-amdpmf_interface         |  49 +++
 MAINTAINERS                                   |   1 +
 drivers/platform/x86/amd/pmf/Kconfig          |  10 +
 drivers/platform/x86/amd/pmf/Makefile         |   2 +
 drivers/platform/x86/amd/pmf/core.c           |  19 +
 drivers/platform/x86/amd/pmf/pmf.h            |  33 +-
 drivers/platform/x86/amd/pmf/spc.c            |   1 +
 drivers/platform/x86/amd/pmf/tee-if.c         |  10 +
 drivers/platform/x86/amd/pmf/util.c           | 236 +++++++++++
 include/uapi/linux/amd-pmf.h                  |  96 +++++
 tools/testing/selftests/Makefile              |   1 +
 .../drivers/platform/x86/amd/pmf/Makefile     |   8 +
 .../drivers/platform/x86/amd/pmf/test_pmf.c   | 388 ++++++++++++++++++
 13 files changed, 832 insertions(+), 22 deletions(-)
 create mode 100644 Documentation/ABI/testing/misc-amdpmf_interface
 create mode 100644 drivers/platform/x86/amd/pmf/util.c
 create mode 100644 include/uapi/linux/amd-pmf.h
 create mode 100644 tools/testing/selftests/drivers/platform/x86/amd/pmf/Makefile
 create mode 100644 tools/testing/selftests/drivers/platform/x86/amd/pmf/test_pmf.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-11-26  9:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11  7:10 [PATCH v2 0/5] Introduce AMD PMF util layer and user-space interface for SystemDeck Shyam Sundar S K
2025-11-11  7:10 ` [PATCH v2 1/5] platform/x86/amd/pmf: add util layer and user-space misc device interface Shyam Sundar S K
2025-11-11  7:10 ` [PATCH v2 2/5] platform/x86/amd/pmf: cache BIOS output values for user-space telemetry via util IOCTL Shyam Sundar S K
2025-11-18 16:18   ` Ilpo Järvinen
2025-11-26  9:36     ` Shyam Sundar S K
2025-11-11  7:10 ` [PATCH v2 3/5] Documentation/ABI: add testing entry for AMD PMF misc device interface Shyam Sundar S K
2025-11-11  7:10 ` [PATCH v2 4/5] platform/x86/amd/pmf: Store commonly used enums in the header file Shyam Sundar S K
2025-11-11  7:10 ` [PATCH v2 5/5] platform/x86/amd/pmf: Introduce AMD PMF testing tool for driver metrics and features Shyam Sundar S K
2025-11-12 18:07   ` Mario Limonciello
2025-11-12 18:08 ` [PATCH v2 0/5] Introduce AMD PMF util layer and user-space interface for SystemDeck Mario Limonciello
2025-11-13  7:30   ` Shyam Sundar S K
2025-11-19 16:20 ` Hans de Goede
2025-11-19 16:32   ` Mario Limonciello
2025-11-19 19:25     ` Hans de Goede
2025-11-20  7:49       ` Shyam Sundar S K
2025-11-24 10:04         ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.