]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/pm: look up current_level for asics without pm callback
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Oct 2021 19:02:33 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:13 +0000 (14:26 -0400)
commit3f991d7c73796d3f978494de6ecde3e5ebf3e943
tree67e51a99a84243db0a0dc3b90df818ddd6dc346b
parent67377c05dd365f71da59bc2e32328949969bbee7
drm/amdgpu/pm: look up current_level for asics without pm callback

For asics without a callback, use the current level rather than 0xff.
This can avoid an unnecesary forced level set on older asics when
set by the user.

Reviewed-by: Kevin Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c