]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/pm: Fix DPM level count on aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 26 Mar 2021 05:43:14 +0000 (13:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:46:54 +0000 (16:46 -0400)
commitf41f8e0886d3443f63240fd95a4e3921ec2da04a
tree50dfca7d566aa62e0b7e28c866d524394086841c
parent2d64d23e9596b1815fa1b536b3ac096afac10bd5
drm/amd/pm: Fix DPM level count on aldebaran

Firmware returns zero-based max level, increment by one to get
total levels. This fixes the issue of not showing all levels and current
frequency when frequency is at max DPM level.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c