]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/amd/pmf: Introduce new interface to export NPU metrics
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 15 Jan 2026 17:34:48 +0000 (09:34 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 21 Jan 2026 08:52:04 +0000 (10:52 +0200)
commit118222e20d16caf38264b850d7a386e5f063008c
tree2adddbc1a4ad68ea5844763abba01407a4ec1c52
parent7b85137caf110a09a4a18f00f730de4709f9afc8
platform/x86/amd/pmf: Introduce new interface to export NPU metrics

The PMF driver retrieves NPU metrics data from the PMFW. Introduce a new
interface to make NPU metrics accessible to other drivers like AMDXDNA
driver, which can access and utilize this information as needed.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
[lizhi: save return value of is_npu_metrics_supported() and return it]
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260115173448.403826-1-lizhi.hou@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/core.c
drivers/platform/x86/amd/pmf/pmf.h
include/linux/amd-pmf-io.h