drm/amd/display: Change locking of registers when flipping frames.
authorAndrew Wong <andrew.wong1@amd.com>
Mon, 12 Dec 2016 16:17:06 +0000 (11:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:04:52 +0000 (17:04 -0400)
commit98d2cc2b03d937af36ce5ef227ae57232bbe8471
treeec9ac0e0bd782dccb2dd40dc7a0654176dcc54a1
parent89e8963036085e4e0e9a993d2e1bdbb931d53794
drm/amd/display: Change locking of registers when flipping frames.

- Introduce GRPH_UPDATE_LOCK around programming surface flip.
- Remove the now unused graphic surface lock.
- Add macros to get and set four registers
- both immediate and H Retrace should not be enabled at the same time

Signed-off-by: Andrew Wong <andrew.wong1@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@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/dc_helper.c
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h