From: Relja Vojvodic <[email protected]>

[Why & How]
- BSOD was found on a DP config due to incomplete DSC padding
implementation for DP
- Block DSC padding on DP until fully implemented

Signed-off-by: Relja Vojvodic <[email protected]>
Signed-off-by: Fangzhi Zuo <[email protected]>
Reviewed-by: George Shen <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c 
b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 549f9885b762..7e42790ad575 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -4886,7 +4886,7 @@ static void 
calculate_timing_params_for_dsc_with_padding(struct pipe_ctx *pipe_c
 #if defined(CONFIG_DRM_AMD_DC_FP)
        uint32_t hactive;
        uint32_t ceil_slice_width;
-       if (stream && stream->timing.flags.DSC) {
+       if (stream && stream->timing.flags.DSC && stream->signal == 
SIGNAL_TYPE_HDMI_FRL) {
                hactive = stream->timing.h_addressable + 
stream->timing.h_border_left + stream->timing.h_border_right;
 
                /* Assume if determined slices does not divide Hactive evenly, 
Hborrow is needed for padding*/
-- 
2.53.0

Reply via email to