]> www.infradead.org Git - nvme.git/commit
tools/power turbostat: Add support for /sys/class/drm/card1
authorZhang Rui <rui.zhang@intel.com>
Thu, 14 Nov 2024 07:59:46 +0000 (15:59 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 30 Nov 2024 21:42:07 +0000 (16:42 -0500)
commit03109e2f0d18dcb84218bd91c4fbf864193ca934
tree2f83d76cf5c3c5cfaf71e5049f4107cff78d949d
parentc7538f33853b11d0ff2a81efb78bde125d1fc49f
tools/power turbostat: Add support for /sys/class/drm/card1

On some machines, the graphics device is enumerated as
/sys/class/drm/card1 instead of /sys/class/drm/card0. The current
implementation does not handle this scenario, resulting in the loss of
graphics C6 residency and frequency information.

Add support for /sys/class/drm/card1, ensuring that turbostat can
retrieve and display the graphics columns for these platforms.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c