drm/amd/display: contional remove disable dig_fifo when blank
authorCharlene Liu <Charlene.Liu@amd.com>
Wed, 21 Dec 2022 00:46:45 +0000 (19:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 20:40:20 +0000 (15:40 -0500)
keep dig_fifo enable for test pattern generation.

Tested-by: Daniel Wheeler <Daniel.Wheeler@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c

index 72963617553e07084a9f6164ff8e34513c7daae1..53f449fa2b717deb01abf1993844d9ff65197288 100644 (file)
@@ -873,6 +873,7 @@ struct dc_debug_options {
        unsigned int dsc_delay_factor_wa_x1000;
        unsigned int min_prefetch_in_strobe_ns;
        bool disable_unbounded_requesting;
+       bool dig_fifo_off_in_blank;
 };
 
 struct gpu_info_soc_bounding_box_v1_0;
index 9c9875368beaca0a885e9ed64b9556fd57113830..67f4589f3e2392d6fb54f037fdf1dcda836d8245 100644 (file)
@@ -281,7 +281,8 @@ static void enc314_stream_encoder_dp_blank(
        enc1_stream_encoder_dp_blank(link, enc);
 
        /* Disable FIFO after the DP vid stream is disabled to avoid corruption. */
-       enc314_disable_fifo(enc);
+       if (enc->ctx->dc->debug.dig_fifo_off_in_blank)
+               enc314_disable_fifo(enc);
 }
 
 static void enc314_stream_encoder_dp_unblank(