]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:46 +0000 (20:03 +0100)
commit9e5d6a4caebe92647a7c3ff5c4940990c5b49513
treef98d53bfd49790a4f271c7e38973c23fa74b1464
parent3151d7859f9383605727f62bf42972fceffd6064
drm/amd/display: Full exit out of IPS2 when all allow signals have been cleared

[ Upstream commit 0fe33e115fec305c35c66b78ad26e3755ab54b9c ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h