mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm/swsmu
Tim Huang 55e02c14f9 drm/amd/pm: reverse mclk and fclk clocks levels for renoir
This patch reverses the DPM clocks levels output of pp_dpm_mclk
and pp_dpm_fclk for renoir.

On dGPUs and older APUs we expose the levels from lowest clocks
to highest clocks. But for some APUs, the clocks levels 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>
Cc: stable@vger.kernel.org
2023-05-31 16:48:18 -04:00
..
inc drm/amd/pm: change pmfw_decoded_link_width, speed variables to globals 2023-04-18 16:28:50 -04:00
smu11 drm/amd/pm: reverse mclk and fclk clocks levels for vangogh 2023-05-31 16:48:11 -04:00
smu12 drm/amd/pm: reverse mclk and fclk clocks levels for renoir 2023-05-31 16:48:18 -04:00
smu13 drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp 2023-05-31 16:48:05 -04:00
amdgpu_smu.c drm/amd/pm: fix possible power mode mismatch between driver and PMFW 2023-05-18 09:58:05 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00
smu_cmn.c drm/amdgpu/pm: add capped/uncapped power profile modes 2023-03-07 14:22:39 -05:00
smu_cmn.h drm/amd/pm: Support RAS fatal error mode1 reset on smu v13_0_0 and v13_0_10 2023-01-13 14:59:26 -05:00
smu_internal.h drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00