]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Add wait for flip not pending on pipe unlock
authorNoah Abradjian <noah.abradjian@amd.com>
Mon, 18 Nov 2019 18:59:57 +0000 (13:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:07 +0000 (16:09 -0500)
commit6b5d7730d226bed8e87085d870e76fb9018ff0b1
treeae7b9e9dcd4341f79c40e37ed2fb6e976b92a70d
parenta37149425a58d4aa9db01767f3f3b547f74e7f40
drm/amd/display: Add wait for flip not pending on pipe unlock

[Why]
Lack of proper timing caused intermittent underflow on unplug external DP.
A previous fix was invalid and caused S0i3 regression, so had to be reverted.

[How]
When unlocking pipe, wait for no pipes to have flip pending before unlocking.

Signed-off-by: Noah Abradjian <noah.abradjian@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c