]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Add IOCTL to retrieve realtime NPU power estimate
authorLizhi Hou <lizhi.hou@amd.com>
Sat, 28 Feb 2026 06:10:57 +0000 (00:10 -0600)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 11 Mar 2026 18:36:51 +0000 (11:36 -0700)
commitf3bffef037fb4aedd6c0b7d066ad4cdcda75409a
tree4c6b814c099f474168d35e97abdc1ccfdcfeece3
parentefa3382a5a39ee9aee98bcf13e66fe91413aef0c
accel/amdxdna: Add IOCTL to retrieve realtime NPU power estimate

The AMD PMF driver provides an interface to obtain realtime power
estimates for the NPU. Expose this information to userspace through a
new DRM_IOCTL_AMDXDNA_GET_INFO parameter, allowing applications to query
the current NPU power level.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
(Update comment to indicate power and utilization)
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260228061109.361239-2-superm1@kernel.org
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/amdxdna_pci_drv.c