drm/amd/display: Do DIO FIFO enable after DP video stream enable
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 7 Sep 2022 14:11:34 +0000 (10:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:44 +0000 (09:41 -0400)
commitd3d61281edc0ab0c3d566e760d5bd4db5a9c217a
tree1cbfee061336d8f4e5cabd7b5a2b77f9a876e9a9
parent97d8d6f075bd8f988589be02b91f6fa644d0b0b8
drm/amd/display: Do DIO FIFO enable after DP video stream enable

[Why]
Avoids a race condition where DIO FIFO can underflow due to no incoming
data available.

[How]
Shift the FIFO enable below stream enable.

Make sure fullness level is written before the DIO reset takes place
and that we're not doing it twice.

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/dcn314/dcn314_dio_stream_encoder.c