1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm/swsmu/smu13
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
..
aldebaran_ppt.c amdgpu/pm: (v2) add limit_type to (pptable_funcs)->set_power_limit signature 2021-10-13 14:14:54 -04:00
aldebaran_ppt.h drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00
Makefile drm/amd/pm: drop smu_v13_0_1.c|h files for yellow carp 2021-07-08 17:47:28 -04:00
smu_v13_0.c amdgpu/pm: (v2) add limit_type to (pptable_funcs)->set_power_limit signature 2021-10-13 14:14:54 -04:00
yellow_carp_ppt.c drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 23:04:51 -05:00
yellow_carp_ppt.h drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 23:04:51 -05:00