mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Tim Huang d9ed111b76 drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
This patch reverses the DPM clocks levels output of pp_dpm_mclk.

On dGPUs and older APUs we expose the levels from lowest clocks
to highest clocks. But for some APUs, the clocks levels that from
the DFPstateTable are given the reversed orders by PMFW. Like the
memory DPM clocks that are exposed by pp_dpm_mclk.

It's not intuitive that they are reversed on these APUs. All tools
and software that talks to the driver then has to know different ways
to interpret the data depending on the asic.

So we need to reverse them to expose the clocks levels from the
driver consistently.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-06-09 10:52:53 -04:00
..
inc drm/amdgpu: added a sysfs interface for thermal throttling 2023-02-23 17:36:00 -05:00
legacy-dpm drm/amdgpu: add xcc index argument to rlc safe_mode func (v4) 2023-04-18 16:28:55 -04:00
powerplay drm/amdgpu: add xcc index argument to rlc safe_mode func (v4) 2023-04-18 16:28:55 -04:00
swsmu drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5 2023-06-09 10:52:53 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_pm.c drm/amd/pm: Fix output of pp_od_clk_voltage 2023-06-09 10:45:26 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00