]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Wrap OTG disable workaround with FIFO control
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 8 Sep 2022 18:17:01 +0000 (14:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2022 21:56:29 +0000 (17:56 -0400)
commit8ff479f60bddd02f362b6938e5dc87004531b693
tree471a59939447f571fe7f0597924426ad3db4a63a
parentf470c97d707630c31a9f9f353f0474ec7e5aadd4
drm/amd/display: Wrap OTG disable workaround with FIFO control

[Why]
The DIO FIFO will underflow if we turn off the OTG before we turn
off the FIFO.

Since this happens as part of the OTG workaround and we don't reset
the FIFO afterwards we see the error persist.

[How]
Add disable FIFO before the disable CRTC and enable FIFO after enabling
the CRTC.

Reviewed-by: Syed Hassan <Syed.Hassan@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c