]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reset steer fifo before unblanking the stream
authorNikola Cornij <nikola.cornij@amd.com>
Mon, 11 Nov 2019 23:03:59 +0000 (18:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 23:19:54 +0000 (18:19 -0500)
commit4839f6568e48dd186aa1a0dbe1038db41a7e2c3f
tree7f0333488272f8e88faa2559c2bd8358c1666032
parent287f2eb89a88eb89b8e8401dd50440088c3fb3e8
drm/amd/display: Reset steer fifo before unblanking the stream

[why]
During mode transition steer fifo could overflow. Quite often it
recovers by itself, but sometimes it doesn't.

[how]
Add steer fifo reset before unblanking the stream. Also add a short
delay when resetting dig resync fifo to make sure register writes
don't end up back-to-back, in which case the HW might miss the reset
request.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c