mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm/swsmu
Perry Yuan 48c19a95f1 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>
2021-11-17 17:10:10 -05:00
..
smu11 drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 17:10:10 -05:00
smu12 drm/amdgpu: fix sysfs_emit/sysfs_emit_at warnings(v2) 2021-09-14 15:39:12 -04:00
smu13 drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 17:10:10 -05:00
amdgpu_smu.c drm/amd/pm: Correct DPMS disable IP version check 2021-11-05 14:11:43 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00
smu_cmn.c drm/amd/pm: Enhanced reporting also for a stuck command 2021-11-17 17:08:44 -05:00
smu_cmn.h drm/amd/pm: fix runpm hang when amdgpu loaded prior to sound driver 2021-09-23 15:17:28 -04:00
smu_internal.h drm/amd/pm: correct the power limits reporting on OOB supported 2021-06-11 16:03:09 -04:00