Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3704116rwi; Wed, 12 Oct 2022 05:53:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sB0k2r5bIyNPRMkWdgh6Yi3sM+BsEk7YR7McvobrJCq9OQXvF0sjKk9ave1SatvEQPoCe X-Received: by 2002:a17:906:3e01:b0:781:6462:700f with SMTP id k1-20020a1709063e0100b007816462700fmr23654423eji.307.1665579199213; Wed, 12 Oct 2022 05:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665579199; cv=none; d=google.com; s=arc-20160816; b=ccAeFKC2tFSx3ty0tYRdIQiZmmNdcAepUofeL2rKflHUZMH7EGRo104YAiyImRHaSJ su1grv97cTW+wugqbq+7GiBYcRVOcKzZ75UXOhgktP/EyXwR0oPC3mdv08FgLjJr8zCc FT5KKvhIJh1Dn9fMfRKeqYcUT7hUGNQwpRhd+HEBafCAuAfDjt5oUI8xlc9+qlv33Snv 5EfMmY3uVJ1xdRhZXMgcpbkOTbiaFZDa/gEA3rLU0/QuZIGMjYe4zoILVjLVoquCv/XV 62tdo/jtD7GWoRZNfI/kZ1fzedhHp8nTyRJu29HgyG0Y4a5yckjFC0JHx9HJ0DJ7X9dx Q5Jw== 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=A6Z+4NCMFao+0Md8fgF+NTqgjGSWMNgsDWKydjU80yLzteWgDznLFNT3k4Gb0b5Z7F t9644kY9X16yFVbPKdP5KdcdfFjJ03vhwrDbp6oPE9vy7tPcg2Fx07+sxiR7G1QJ6LsP ZZ8UZcKeQJ/Moa8js4C1vYedQS6Jvrfcu9XIbkPxl1QN3OthQbuZMav0zbjdmqdGjxpK /Poo7ipOPnFWUJWi8XBGXZQViQbtqaG3SfYHUpvnGjy49P/iBDgcQSI8VIBM1POMCF3J HSh/YTc7WpKljrzS0RJmsTChqsKq3U992fLurzXcrO0GMcMvZAS6OSGvUIzOG5qNVwcC L7Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GN6o6Vk7; 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 i19-20020a1709064fd300b007804f3dafbesi16397150ejw.587.2022.10.12.05.52.52; Wed, 12 Oct 2022 05:53:19 -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=GN6o6Vk7; 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 S229774AbiJLMDv (ORCPT + 99 others); Wed, 12 Oct 2022 08:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiJLMC4 (ORCPT ); Wed, 12 Oct 2022 08:02:56 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 976C1A7ABB; Wed, 12 Oct 2022 05:02:55 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29C7xRTO022518; Wed, 12 Oct 2022 12:02:53 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=GN6o6Vk7T/Sx3MELdpEJly7rhdyyTNY9Tq13jrvUIqBsC8AO1Qz4u7K8z1+WLThHxJcA iIAcdzirPHAUBPfVRdUk4Ub2/iyEllw8CuWd6yiXkR5aZ9ZilaG2G9TIuVVht8QckXY+ nmzbCt+9W3VyGuUznjLGI5JymqvL79vLvowQ7rqJCHLEBwoVUKcTbWRTEg9cqMtpRBKY 3ICPkjVpy0rSUeCn2YdBwL13PJ3WCswAwRVw9YtADrDOVtYzSe2GMAUZ3rHBDtj8WirP 7G/wGMykco1HjdDqH3m6RyWYuBHHsT0UlbFRrGY2tdlgndNz6oWgbeJ06ydC/l3HgrOR AQ== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k5j7b1tdb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 12:02:53 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 29CC2lOb026862; Wed, 12 Oct 2022 12:02:50 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3k3jpu0t31-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Oct 2022 12:02:50 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29CC2l8I026838; Wed, 12 Oct 2022 12:02:49 GMT Received: from vpolimer-linux.qualcomm.com (vpolimer-linux.qualcomm.com [10.204.67.235]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 29CC2mMQ026874; Wed, 12 Oct 2022 12:02:49 +0000 Received: by vpolimer-linux.qualcomm.com (Postfix, from userid 463814) id 88366394C; Wed, 12 Oct 2022 17:32:47 +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 v8 14/15] drm/msm/disp/dpu: reset the datapath after timing engine disable Date: Wed, 12 Oct 2022 17:32:38 +0530 Message-Id: <1665576159-3749-15-git-send-email-quic_vpolimer@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1665576159-3749-1-git-send-email-quic_vpolimer@quicinc.com> References: <1665576159-3749-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-GUID: A29oIhdsKouZh4nPRWRq7_Iql3FLcRX1 X-Proofpoint-ORIG-GUID: A29oIhdsKouZh4nPRWRq7_Iql3FLcRX1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_06,2022-10-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 spamscore=0 suspectscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=950 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210120079 X-Spam-Status: No, score=-2.4 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 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