summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhersen wu <hersenxs.wu@amd.com>2019-03-13 16:25:37 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-22 09:34:08 -0500
commitec8763486dd3d2fb585c2e6747520406e7dcef98 (patch)
tree99121281357097736916f4bf1a7a891aa99171d0
parent9e14d4f17e23ce46d346a6a22a295b4a65b9d918 (diff)
downloadlinux-ec8763486dd3d2fb585c2e6747520406e7dcef98.tar.bz2
drm/amd/display: navi10 bring up skip dsc encoder config
not needed for bring up. Signed-off-by: hersen wu <hersenxs.wu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c
index c3c218805eb1..130b01801a26 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c
@@ -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,