]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Fix idle check for shared firmware state
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 21 Feb 2024 17:27:31 +0000 (12:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:58 +0000 (13:12 -0400)
commit3d066f9547dd58329b526db44f42c487a7974703
treee4607a905f3bcb977b78cc14fde03bde05454b63
parent86e9523fb0efce27095d3086473c739cce720d01
drm/amd/display: Fix idle check for shared firmware state

[WHY]
We still had an instance of get_idle_state checking the PMFW scratch
register instead of the actual idle allow signal.

[HOW]
Replace it with the SW state check for whether we had allowed idle
through notify_idle.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Duncan Ma <duncan.ma@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c