All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] PMF NPU metrics cleanup, command flag cleanup, and amdxdna integration
@ 2025-11-11  6:37 Shyam Sundar S K
  2025-11-11  6:37 ` [PATCH v2 1/5] platform/x86/amd/pmf: Rename IPU metrics fields to NPU for consistency Shyam Sundar S K
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Shyam Sundar S K @ 2025-11-11  6:37 UTC (permalink / raw)
  To: hansg, ilpo.jarvinen
  Cc: platform-driver-x86, Patil.Reddy, mario.limonciello, lizhi.hou,
	Shyam Sundar S K

This series streamlines NPU-related handling in AMD PMF, adds a
lightweight in-kernel interface for fetching NPU metrics from PMF, and
hooks AMD XDNA to that interface to expose real-time NPU power data to
user space.

Changes include renaming legacy IPU fields to NPU in the metrics structure
replacing ambiguous booleans and magic values with explicit
SET_CMD/GET_CMD and METRICS_TABLE_ID constants, introducing an exported
amd_pmf_get_npu_data() API (guarded by a mutex and platform checks) to
pull NPU metrics from the SMU, and wiring those metrics into the amdxdna
driver.

v2:
----
 - Split the series into multiple patches per v1 feedback
 - Added preliminary PMF driver cleanups as preparatory patches
 - Introduced an initial amd_xdna patch that consumes PMF-provided data to
   establish the plumbing; additional logic can be layered on in future
   patches as more PMF metrics are utilized.

Shyam Sundar S K (4):
  platform/x86/amd/pmf: Rename IPU metrics fields to NPU for consistency
  platform/x86/amd/pmf: Use explicit SET_CMD/GET_CMD flags in
    amd_pmf_send_cmd()
  platform/x86/amd/pmf: replace magic table id with METRICS_TABLE_ID
  platform/x86/amd/pmf: Introduce new interface to export NPU metrics

VinitKumar Shukla (1):
  accel/amdxdna: Provide real-time NPU power estimate via AMD PMF

 drivers/accel/amdxdna/aie2_pci.h         |  2 +
 drivers/accel/amdxdna/aie2_smu.c         | 12 ++++
 drivers/platform/x86/amd/pmf/auto-mode.c | 14 ++---
 drivers/platform/x86/amd/pmf/cnqf.c      | 14 ++---
 drivers/platform/x86/amd/pmf/core.c      | 71 +++++++++++++++++++++++-
 drivers/platform/x86/amd/pmf/pmf.h       | 18 ++++--
 drivers/platform/x86/amd/pmf/spc.c       |  2 +-
 drivers/platform/x86/amd/pmf/sps.c       | 38 ++++++-------
 drivers/platform/x86/amd/pmf/tee-if.c    | 20 +++----
 include/linux/amd-pmf-io.h               | 21 +++++++
 10 files changed, 159 insertions(+), 53 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-11-20 10:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11  6:37 [PATCH v2 0/5] PMF NPU metrics cleanup, command flag cleanup, and amdxdna integration Shyam Sundar S K
2025-11-11  6:37 ` [PATCH v2 1/5] platform/x86/amd/pmf: Rename IPU metrics fields to NPU for consistency Shyam Sundar S K
2025-11-18 15:36   ` Ilpo Järvinen
2025-11-11  6:37 ` [PATCH v2 2/5] platform/x86/amd/pmf: Use explicit SET_CMD/GET_CMD flags in amd_pmf_send_cmd() Shyam Sundar S K
2025-11-18 15:41   ` Ilpo Järvinen
2025-11-18 17:03     ` Shyam Sundar S K
2025-11-18 17:08       ` Ilpo Järvinen
2025-11-11  6:37 ` [PATCH v2 3/5] platform/x86/amd/pmf: replace magic table id with METRICS_TABLE_ID Shyam Sundar S K
2025-11-18 15:44   ` Ilpo Järvinen
2025-11-11  6:37 ` [PATCH v2 4/5] platform/x86/amd/pmf: Introduce new interface to export NPU metrics Shyam Sundar S K
2025-11-18 15:54   ` Ilpo Järvinen
2025-11-11  6:37 ` [PATCH v2 5/5] accel/amdxdna: Provide real-time NPU power estimate via AMD PMF Shyam Sundar S K
2025-11-12 18:03   ` Mario Limonciello
2025-11-13  7:33     ` Shyam Sundar S K
2025-11-14 16:56       ` Mario Limonciello
2025-11-18 15:59         ` Ilpo Järvinen
2025-11-18 16:01           ` Ilpo Järvinen
2025-11-18 16:46             ` Shyam Sundar S K
2025-11-19 12:44               ` Ilpo Järvinen
2025-11-20 10:55                 ` Shyam Sundar S K
2025-11-12 17:21 ` [PATCH v2 0/5] PMF NPU metrics cleanup, command flag cleanup, and amdxdna integration Mario Limonciello
2025-11-13  7:37   ` Shyam Sundar S K

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.