]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Full exit out of IPS2 when all allow signals have been cleared
authorLeo Chen <leo.chen@amd.com>
Thu, 3 Oct 2024 16:20:23 +0000 (12:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:23:31 +0000 (11:23 -0400)
commit0fe33e115fec305c35c66b78ad26e3755ab54b9c
tree40372dfb6d0ffc4b33d8fc7707f0c49e0849e0ce
parent74a55071dd9c1f75abc942bda964cab3684c780c
drm/amd/display: Full exit out of IPS2 when all allow signals have been cleared

[Why]
A race condition occurs between cursor movement and vertical interrupt control
thread from OS, with both threads trying to exit IPS2.
Vertical interrupt control thread clears the prev driver allow signal while not fully
finishing the IPS2 exit process.

[How]
We want to detect all the allow signals have been cleared before we perform the full exit.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Leo Chen <leo.chen@amd.com>
Signed-off-by: Roman Li <roman.li@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/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h