drm/amd/display: navi10 bring up skip dsc encoder config
authorhersen wu <hersenxs.wu@amd.com>
Wed, 13 Mar 2019 20:25:37 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:08 +0000 (09:34 -0500)
not needed for bring up.

Signed-off-by: hersen wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c

index c3c218805eb1801df3924c88e178b94ae645403c..130b01801a2690a8953bbc4df644f6eddb961626 100644 (file)
@@ -286,6 +286,14 @@ static void enc2_dp_set_dsc_config(struct stream_encoder *enc,
                                        uint8_t *dsc_packed_pps)
 {
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
+       uint32_t dsc_value = 0;
+
+       dsc_value = REG_READ(DP_DSC_CNTL);
+
+       /* dsc disable skip */
+       if ((dsc_value & 0x3) == 0x0)
+               return;
+
 
        REG_UPDATE_2(DP_DSC_CNTL,
                        DP_DSC_MODE, dsc_mode,