Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp74653rwl; Tue, 11 Apr 2023 14:41:28 -0700 (PDT) X-Google-Smtp-Source: AKy350ZF9ciwMPc5UyqIqXoM8FpBdpII3O1AMe3Pc4caPyU9MhPye6/i+H02sXIXSAAR0Q4OPOLI X-Received: by 2002:a17:906:584f:b0:94e:3eb:dfbe with SMTP id h15-20020a170906584f00b0094e03ebdfbemr3456627ejs.44.1681249287758; Tue, 11 Apr 2023 14:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681249287; cv=none; d=google.com; s=arc-20160816; b=dWygFL4CfQFu19/jaUFoSjn8M6BaP1qGtP8uXKWqLFsAm2uHGe+Pm7NzOYTFi1Jq4g DgiBQZTKJZCWYsgUe0eG6jxxFfZTE9SkbXALNuDCcDvlhVaW9rRnfxmvTPWcWNvAef5V IxwVCAB5I7kYyihhoA5lTSSqnlLzrGtigmjxNeLjYIqLclG50S0sALOq7h+5j2oEWs7a QegtE6K3ryNMWNA6HRlH5gR8876y0savB3qbjiJi3rf063V0Gu/hwaOxjWPGGT+AtpgL CgW9q83+Op7ThtKYeitSvh6k5rkX7R9hQDx8zA2hlHgs6M141elP06DR4zWUyWzSi472 jfrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Vo5J9nZdMA2kXEynqNes2TF9T9+uz/8z+gFp+ikc+bU=; b=ZWl7GlrQ0gas3G7pMyOi2p7FSBCr6LmjY7ctglX5FA2dh9nxIrEMw7Rt3n6aylq5EX N2Fc6zaffGhMNJQXl5wb8BRx6x6VuE7H+W7Qm2sV2N2PdWxldGvE0Onf8bA183h5zozG 7ghCfacpsT6mgMLwUBEZWVe9qSJl+PoynX6y4xKyvYErnYqNNjXae5yuWt5fhcdCaK4n rGGFzVL51F94Eu9gXoZwtiVak6sFdaGDLWZPwWyaUC6y3CbivPSlnumFAd1zdiMwCqVx wF2v+Mgz2K6RBFnsp5gib2X3TObgmrFY+Uj8oDeYGIKt6QLVwLwc8O4ra62SV+Kowmwb LfmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=B4nYjCEh; 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 bx16-20020a170906a1d000b0094554761a80si1008428ejb.931.2023.04.11.14.41.03; Tue, 11 Apr 2023 14:41:27 -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=B4nYjCEh; 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 S229583AbjDKVjj (ORCPT + 99 others); Tue, 11 Apr 2023 17:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjDKVji (ORCPT ); Tue, 11 Apr 2023 17:39:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD0F449E; Tue, 11 Apr 2023 14:39:37 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33BHD8sG008535; Tue, 11 Apr 2023 21:39:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Vo5J9nZdMA2kXEynqNes2TF9T9+uz/8z+gFp+ikc+bU=; b=B4nYjCEh7TfR0nOqOagTmHPz1JVR+5Mb4ibCjo6JepnQ1M67qQAsopExYjQ7eL3KEFFB XD6ZV3pcFHi9HvgubPM0fgkI87mcRspZKFq4iC3xxJcdni8fTSVTREHeUco8rNh4p5zf 97d+Go6ggvZuTeGcagvWB/urx4QCL3PdWWNeDhunzSUrRmHNPLKiteGd0zyGn8MiE7ze 92emJDlo4UYlJ+5RYIC2ZptEhm9UBIMOMqoEmH9jF45seDoctkHTr4eDkHqJhxKV/6+R FzeeyJR5sGwZ6U6faqO/tbcozU460W6SSXchiRiZgYKqx8/LxJOf8WkrVcWTuFA9xGck Dw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pw0jpt28e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Apr 2023 21:39:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33BLdTbB027550 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Apr 2023 21:39:29 GMT Received: from [10.110.115.18] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 11 Apr 2023 14:39:27 -0700 Message-ID: Date: Tue, 11 Apr 2023 14:39:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/msm/dpu: always program dsc active bits Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , CC: , , , , References: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 7n9t7As_jSiPXEJjRExUnP4YY-qrw2l7 X-Proofpoint-ORIG-GUID: 7n9t7As_jSiPXEJjRExUnP4YY-qrw2l7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-11_14,2023-04-11_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 bulkscore=0 phishscore=0 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=901 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304110193 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 4/11/2023 2:04 PM, Kuogee Hsieh wrote: > In current code, the dsc active bits are set only if the cfg->dsc is set. > However, for displays which are hot-pluggable, there can be a use-case > of disconnecting a DSC supported sink and connecting a non-DSC sink. > > For those cases we need to clear DSC active bits during teardown. > > Fixes: ede3c6bb00c ("drm/msm/disp/dpu1: Add DSC support in hw_ctl") Again, wrong fixes tag, Fixes: 77f6da90487c ("drm/msm/disp/dpu1: Add DSC support in hw_ctl") > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > index bbdc95c..88e4efe 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > @@ -541,10 +541,9 @@ static void dpu_hw_ctl_intf_cfg_v1(struct dpu_hw_ctl *ctx, > if (cfg->merge_3d) > DPU_REG_WRITE(c, CTL_MERGE_3D_ACTIVE, > BIT(cfg->merge_3d - MERGE_3D_0)); > - if (cfg->dsc) { > - DPU_REG_WRITE(&ctx->hw, CTL_FLUSH, DSC_IDX); > - DPU_REG_WRITE(c, CTL_DSC_ACTIVE, cfg->dsc); > - } > + > + DPU_REG_WRITE(&ctx->hw, CTL_FLUSH, DSC_IDX); > + DPU_REG_WRITE(c, CTL_DSC_ACTIVE, cfg->dsc); > } > > static void dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx, But, otherwise seems fine and a valid bug fix. Reviewed-by: Abhinav Kumar