The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH V1 0/2] Get real time power input via AMD PMF
@ 2025-12-11 17:58 Lizhi Hou
  2025-12-11 17:58 ` [PATCH V1 1/2] platform/x86/amd/pmf: Introduce new interface to export NPU metrics Lizhi Hou
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Lizhi Hou @ 2025-12-11 17:58 UTC (permalink / raw)
  To: ilpo.jarvinen, hansg, ogabbay, quic_jhugo, maciej.falkowski
  Cc: Lizhi Hou, linux-kernel, max.zhen, sonal.santan,
	mario.limonciello, platform-driver-x86, dri-devel,
	Shyam-sundar.S-k, VinitKumar.Shukla

Adding new NPU metrics API to AMD PMF driver is pending because of
lacking real case.
  https://lore.kernel.org/all/d344b850-f68d-f9a5-f0dc-55af4b48b714@linux.intel.com/

Create xdna driver patch to fetch real time power input via PMF API.
Here is an example output with xrt-smi(1) tool.

# xrt-smi examine -r all | grep Power
  Power Mode             : Default
Estimated Power          : 0.563 Watts

Lizhi Hou (1):
  accel/amdxdna: Add IOCTL to retrieve realtime NPU power estimate

Shyam Sundar S K (1):
  platform/x86/amd/pmf: Introduce new interface to export NPU metrics

 drivers/accel/amdxdna/aie2_pci.c        | 29 ++++++++++
 drivers/accel/amdxdna/aie2_pci.h        | 18 ++++++
 drivers/accel/amdxdna/amdxdna_pci_drv.c |  3 +-
 drivers/platform/x86/amd/pmf/core.c     | 75 +++++++++++++++++++++++++
 drivers/platform/x86/amd/pmf/pmf.h      |  2 +
 include/linux/amd-pmf-io.h              | 21 +++++++
 6 files changed, 147 insertions(+), 1 deletion(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-12-12  6:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11 17:58 [PATCH V1 0/2] Get real time power input via AMD PMF Lizhi Hou
2025-12-11 17:58 ` [PATCH V1 1/2] platform/x86/amd/pmf: Introduce new interface to export NPU metrics Lizhi Hou
2025-12-11 18:28   ` Ilpo Järvinen
2025-12-11 19:07     ` Lizhi Hou
2025-12-12  6:00     ` Shyam Sundar S K
2025-12-11 17:58 ` [PATCH V2 2/2] accel/amdxdna: Add IOCTL to retrieve realtime NPU power estimate Lizhi Hou
2025-12-11 18:20   ` Mario Limonciello
2025-12-11 18:24   ` Ilpo Järvinen
2025-12-11 19:06     ` Lizhi Hou
2025-12-12  6:01   ` Shyam Sundar S K
2025-12-11 18:22 ` [PATCH V1 0/2] Get real time power input via AMD PMF Mario Limonciello
2025-12-11 19:16   ` Lizhi Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox