1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm
Perry Yuan 3dac776e34 drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs
add support that allow the userspace tool like RGP to get the GFX clock
value at runtime, the fix follow the old way to show the min/current/max
clocks level for compatible consideration.

=== Test ===
$ cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 200Mhz *
1: 1100Mhz
2: 1600Mhz

then run stress test on one APU system.
$ cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 200Mhz
1: 1040Mhz *
2: 1600Mhz

The current GFXCLK value is updated at runtime.

BugLink: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5260
Reviewed-by: Huang Ray <Ray.Huang@amd.com>
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2021-11-17 23:04:51 -05:00
..
inc drm/amd/pm: avoid duplicate powergate/ungate setting 2021-11-17 17:41:20 -05:00
powerplay drm/amdgpu/powerplay: fix sysfs_emit/sysfs_emit_at handling 2021-11-05 14:11:14 -04:00
swsmu drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 23:04:51 -05:00
amdgpu_dpm.c drm/amd/pm: avoid duplicate powergate/ungate setting 2021-11-17 17:41:20 -05:00
amdgpu_pm.c drm/amdgpu/pm: Don't show pp_power_profile_mode for unsupported devices 2021-11-03 12:22:07 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00