Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6944225rwn; Tue, 13 Sep 2022 11:13:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5kviJTWNbl6fQ81rKT6xZdhl+8YQZ6etU2e98RCM84S/Bhge/xeLO1n4RTvCvhPGHjv/2W X-Received: by 2002:a17:906:8a45:b0:770:26a9:a99 with SMTP id gx5-20020a1709068a4500b0077026a90a99mr22619356ejc.47.1663092816662; Tue, 13 Sep 2022 11:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663092816; cv=none; d=google.com; s=arc-20160816; b=p4GfWQL0777uT4yOsbEyQe+s3rmPZqOXPMdpmrCGAuvZuiSS0+cPad49R873j5Youv 8mt2cOCV2Rnz5YpPaL3DV5Uf3kt1ASZ/tN1BW4Kr7KLoG31aDwq//hvS7qCdl0WFlbiX XnQBM56nR97ukdqgOzEOPxbzBUW+up444s34VCswb4NofnUdHj5OUGKC2R3lORBlXHfj QPZwLYo9eslkMagK7/UuRSg74fdg3z1HGDWpZ3qwRzTRm1/WfjKd2KPBsW84IXPtxuqj Pu1gkl37Ts299zzlAVJ42WmJMkoQ3i4FJa7goX1RyLIOgq2rNx0xjVCMuBcJzdTMlBf5 7QYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=trUU7Dutoa8QiSLvUV0dWrSkIo/oWClKBSIX2JC9GO8=; b=UX/pN+Dxpy0H9QLagHv6Vbone2wRsJxILKoaXAk/qbJTeIF/HaGsPMyQFTeU3GVlaZ oyEL2a/dYDMjJJbZ1h84dnnBfU6PhHA4RYmWBVyw40NxT4TsS9bdOGayH48iblEiMUu4 dcUJro8A9k2lFt2UZ7zK0GSyULyITxK2HslrLOC7LlRGC1bvJfsZh7XUQE0/8tMD9aoj 3BaESvE6tj+o5wlgnQmvE9fS0pFjPV7TGPCT4+7xlblIOjepzsQp7RMLmT4S8lbJv24V RHcu7CoCeAy+2Cg4mGF/FK2xmoWrpjYpDvmoSZq2xvJW/u2QEnADZ9lW6etEonHU+j1K 1xQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="EGHYEGL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a50cd4c000000b004487ecf97fdsi8958033edj.405.2022.09.13.11.13.11; Tue, 13 Sep 2022 11:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="EGHYEGL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233158AbiIMRc7 (ORCPT + 99 others); Tue, 13 Sep 2022 13:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbiIMRcT (ORCPT ); Tue, 13 Sep 2022 13:32:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E97C1A1A6A; Tue, 13 Sep 2022 09:21:00 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28DDuahH023123; Tue, 13 Sep 2022 14:56:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=trUU7Dutoa8QiSLvUV0dWrSkIo/oWClKBSIX2JC9GO8=; b=EGHYEGL/tChPYjMvkeNmb1109eFMmttzkJTMJF8Uc42k/Nhy+dTKQ241oAnOri2r+r+d JWre1ayOiT09KCevlOk/ma2Lp+g77aOpLMVLj0ANRsH2I97zhDuA5lff3+lOJd6Nmsqx LGPrFg8UkZTo42Kg3nlgICFCw94AM5FHkI9n+5dT41wh0vjTwBKtQJeZpn8rvEuc/nk8 8dW9Lvg3p2W3yzDvDhPZem0D+wbHT810igV5Q71Myhy1EHcy+5pXNjYGfrkLr5lMI162 b9zB6vy070JtRU+Jjo8rpn4I76vL5KGnEttDGJACzUMRmG6DtteqmRe4+yOSkGgu7g7w 1Q== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jjnju9vpm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Sep 2022 14:56:31 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 28DEpQRe017865; Tue, 13 Sep 2022 14:51:27 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3jh46m5ds3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Sep 2022 14:51:27 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28DEpREd017929; Tue, 13 Sep 2022 14:51:27 GMT Received: from vpolimer-linux.qualcomm.com (vpolimer-linux.qualcomm.com [10.204.67.235]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 28DEpRRk017915; Tue, 13 Sep 2022 14:51:27 +0000 Received: by vpolimer-linux.qualcomm.com (Postfix, from userid 463814) id 717E8404A; Tue, 13 Sep 2022 20:21:26 +0530 (IST) From: Vinod Polimera To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Vinod Polimera , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, swboyd@chromium.org, quic_kalyant@quicinc.com, dmitry.baryshkov@linaro.org, quic_khsieh@quicinc.com, quic_vproddut@quicinc.com, quic_bjorande@quicinc.com, quic_aravindh@quicinc.com, quic_abhinavk@quicinc.com, quic_sbillaka@quicinc.com Subject: [PATCH v7 14/15] drm/msm/disp/dpu: reset the datapath after timing engine disable Date: Tue, 13 Sep 2022 20:21:15 +0530 Message-Id: <1663080676-12936-15-git-send-email-quic_vpolimer@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1663080676-12936-1-git-send-email-quic_vpolimer@quicinc.com> References: <1663080676-12936-1-git-send-email-quic_vpolimer@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: yZqL7p6f3pqaGNiSZ9fen7kJFo-VkCAs X-Proofpoint-GUID: yZqL7p6f3pqaGNiSZ9fen7kJFo-VkCAs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-13_07,2022-09-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=978 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209130068 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reset the datapath after disabling the timing gen, such that it can start on a clean slate when the intf is enabled back. This was a recommended sequence from the DPU HW programming guide. Signed-off-by: Vinod Polimera --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c index 5a0dc54..aeeb759 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c @@ -590,6 +590,7 @@ static void dpu_encoder_phys_vid_disable(struct dpu_encoder_phys *phys_enc) } } + dpu_encoder_helper_phys_cleanup(phys_enc); phys_enc->enable_state = DPU_ENC_DISABLED; } -- 2.7.4