drm/amd/display: clean up and simply locking logic
authorTony Cheng <tony.cheng@amd.com>
Wed, 1 Mar 2017 02:30:32 +0000 (21:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:17:51 +0000 (17:17 -0400)
commitd98e5cc2ddacb34e9cdf1c06dce2758198af0120
tree66a0ce231d31e37b4e2e1eaa2aede4f95a876bed
parent2d60ded1325e0b4407aaa5396d1b331ea58f4f85
drm/amd/display: clean up and simply locking logic

always take update lock instead of using HW built in update
lock trigger with write to primary_addr_lo.

we will be a little more inefficient with the extra registers
write to lock, but this simplify code and make it always correct.

Will revisit locking optimization once update sequence mature

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h