1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm/swsmu/smu11
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
..
arcturus_ppt.c drm/amd/pm: Disable fan control if not supported 2021-10-22 10:11:45 -04:00
arcturus_ppt.h drm/amd/pm: optimize the power related source code layout 2020-08-14 16:22:41 -04:00
cyan_skillfish_ppt.c drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 23:04:51 -05:00
cyan_skillfish_ppt.h drm/amdgpu: add basic ppt functions for cyan_skilfish 2021-07-23 10:08:02 -04:00
Makefile drm/amdgpu: add basic ppt functions for cyan_skilfish 2021-07-23 10:08:02 -04:00
navi10_ppt.c drm/amd/pm: Remove artificial freq level on Navi1x 2021-11-17 17:42:26 -05:00
navi10_ppt.h drm/amd/pm: optimize the power related source code layout 2020-08-14 16:22:41 -04:00
sienna_cichlid_ppt.c drm/amdgpu/swsmu: handle VCN harvesting for VCN SMU setup 2021-10-21 23:39:04 -04:00
sienna_cichlid_ppt.h drm/amd/pm: fulfill the sienna cichlid UMD PSTATE profiling clocks 2020-12-15 11:30:09 -05:00
smu_v11_0.c drm/amdgpu/smu11.0: add missing IP version check 2021-10-22 10:11:33 -04:00
vangogh_ppt.c drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs 2021-11-17 23:04:51 -05:00
vangogh_ppt.h drm/amd/pm: add the parameters of power profiles for vangogh 2021-01-08 15:18:38 -05:00