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)
commit9fac5799c8985aa0263dbed7f16f99f85c4d6cd7
tree67e51a99a84243db0a0dc3b90df818ddd6dc346b
parent3ce51649cdf23ab463494df2bd6d1e9529ebdc6a
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