From 5c8caa4c60c63726bb2cd85860d5478d2021cd11 Mon Sep 17 00:00:00 2001 From: Nilaan Gunabalachandran Date: Fri, 19 Nov 2021 16:14:24 -0500 Subject: [PATCH] disp: msm: sde: disable ot limit for cwb Currently ot limits are being set for concurrent writeback, which is not supported. This change adds a check to correctly set wfd parameter while applying ot limit settings. Change-Id: I87c1ca756c1714fec4466cd5a5a820ddf2519975 Signed-off-by: Nilaan Gunabalachandran Signed-off-by: Veera Sundaram Sankaran --- msm/sde/sde_encoder_phys_wb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_encoder_phys_wb.c b/msm/sde/sde_encoder_phys_wb.c index 5336179d..9e67c206 100644 --- a/msm/sde/sde_encoder_phys_wb.c +++ b/msm/sde/sde_encoder_phys_wb.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. */ @@ -89,7 +90,7 @@ static void sde_encoder_phys_wb_set_ot_limit( ot_params.num = hw_wb->idx - WB_0; ot_params.width = wb_enc->wb_roi.w; ot_params.height = wb_enc->wb_roi.h; - ot_params.is_wfd = true; + ot_params.is_wfd = !(phys_enc->in_clone_mode); ot_params.frame_rate = drm_mode_vrefresh(&phys_enc->cached_mode); ot_params.vbif_idx = hw_wb->caps->vbif_idx; ot_params.clk_ctrl = hw_wb->caps->clk_ctrl;