]> 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)
commit307ce86952493f9811899946dc8b7f539a6106e3
tree471a59939447f571fe7f0597924426ad3db4a63a
parentaa8d115274137fcf235313307cbc1c902f0934fd
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