Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp113849rwl; Tue, 11 Apr 2023 15:21:52 -0700 (PDT) X-Google-Smtp-Source: AKy350bNA8pZw+oMfirYyELZVow6/Zflq+aZs4axYdujnNwb87kMoheLQpToN6/GQM0i3Hk68Kla X-Received: by 2002:aa7:d4c7:0:b0:502:4862:d453 with SMTP id t7-20020aa7d4c7000000b005024862d453mr274769edr.3.1681251711900; Tue, 11 Apr 2023 15:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681251711; cv=none; d=google.com; s=arc-20160816; b=HAyzgNe5ksjWpNTClU2AgVtTq2JDznetLODqPp1uXakLZ2F09J9TXUQiUgk87r6b93 2Be5E8cGIh1TjUc6E/MNd3FHrAJg2qsAQxMI+eg9zZZqsPU+x/geb45j0tk5U5nf5jxU Lcrn7wb1JhpZllReYNoOqdeFnaiqIm6vBrzEQ5SOr7td5FmjfjWCoxtURN1p7pC0q4Q+ mFbt4hSqQtx34KbY9BAHYHk3iNM8eb0ictw0n5ZaWh/0+gGjtfBmV1w/CmzMSabvFBe+ 4rvZDFPM1KSMkgf3edRUJQ+gjCQOO4dMpV3P94Ik9Qkkj6qRRU2/vXnxLjzj/Wv4tD5E Toxw== 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=YZyUOASgExhF30LjNQ41eGkCS/vfjzdSaSnhxhM63Ck=; b=tH8T9+l4KdXPz00mLAe3gWRrFr9zlJ8NmqhDzvpEHSRA+legGEoz2O8cbCdPKhbFPk hDOr3tXAAnkzsacgLkTvZwWKOzoAfHgOa8ox7zZPh+oRfEoV13+x+K04qmduOzh24ltC vCPiRjCJuRX10A7ShW+3VelMATX/UCFWBg86+HyNbaMgESnclz3J9wOQNPfIPpFLyVuM AyorqX0+42b1p768Rf4n+ZoA2K2B8cgDxn4FoLlmG5JzPOXHPPLKB8N9u2Rrv0ym6Hzg 3LMbCZOZn8sdMNoktVkLEYtaBydFihGKCqiPelVaqb48+JNQ6FGOsoLtPh7bniE6LiBu V0Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcvg1vWS; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020aa7c152000000b00504bad552b4si2924785edp.271.2023.04.11.15.21.26; Tue, 11 Apr 2023 15:21:51 -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=@linaro.org header.s=google header.b=lcvg1vWS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229490AbjDKWRW (ORCPT + 99 others); Tue, 11 Apr 2023 18:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjDKWRV (ORCPT ); Tue, 11 Apr 2023 18:17:21 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2FF44493 for ; Tue, 11 Apr 2023 15:17:20 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id r27so12328956lfe.0 for ; Tue, 11 Apr 2023 15:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681251439; x=1683843439; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YZyUOASgExhF30LjNQ41eGkCS/vfjzdSaSnhxhM63Ck=; b=lcvg1vWS/bkdJlOWf8z6hh5bj/Yu9IFc5rBB2HZ4EcdOWmSBi1qepkWi+zVad/LQKx E50NrOUdnoXoPbrWK0/4ji5eBoH4RJCfKrhORZnFVp1h0nAqldt04QZS4WqeQ6/wicww LwHNnB3fi3NcOIhg4n6VD1mL01c9M32Xc6yApX8akulyI3b+aklUynPu1124W1qOzIlD NLbNFWVac8pZjaxqvhPTvWhANWtBlt4EdexU6Eur0CrqluwNLj370L/jVL7IKfqGqjLg DIsY6358PgeDbx/rntImSIywdOQyaNSMD1ITbNfLGOnIH7BRUbNsufWgpAjdFDnU0VOy WgQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681251439; x=1683843439; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YZyUOASgExhF30LjNQ41eGkCS/vfjzdSaSnhxhM63Ck=; b=7UTh8DLuQkiDiE+FbqzFjN6FF9b53ACRvaflAzml9c1/7MqQiRO74x8+w/T3u68O/q agEPt/lst0M0wCSDNTNLrUYkh7gFhzyfGA1lOc3+SJWIAOSTiwLB5k0ChvLowtKqGcLX sYzF3cIVmwbysbqA8+ht84NS3oNaZbGFrCR2i220mwzhPvO0ckewr5IXLrHbKqxm46qY ZMb+GfAkrxKMDygrYXSNcOJ80q+4+NP4/O9K46SWt5eixtlfVUavI779mVhxKiwCXE+m QwtZfIoN4jYvaigGdetpjqmaunTVLjsXNVP3fL0DMZxuUhosyXr8+hIhaRYqofEp6049 j1hQ== X-Gm-Message-State: AAQBX9dvCSUmpL7DmfG6A1tAK2FdZqwbVxTajaw7P+RrXSBWqsVekqi/ ZKNX0BKrjaYjR0VWXUvkQckIfw== X-Received: by 2002:ac2:55a4:0:b0:4ec:857d:9c94 with SMTP id y4-20020ac255a4000000b004ec857d9c94mr36989lfg.15.1681251439037; Tue, 11 Apr 2023 15:17:19 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id o28-20020ac2495c000000b004eb0eafaa02sm2709428lfi.243.2023.04.11.15.17.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Apr 2023 15:17:18 -0700 (PDT) Message-ID: <30585d08-88ca-e3a9-6f83-128d49d1d1fc@linaro.org> Date: Wed, 12 Apr 2023 01:17:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] drm/msm/dpu: always program dsc active bits Content-Language: en-GB To: Kuogee Hsieh , robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org Cc: quic_abhinavk@quicinc.com, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> From: Dmitry Baryshkov 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-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,RCVD_IN_DNSWL_NONE, 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 12/04/2023 00:04, 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. Please correct me if I'm wrong here, shouldn't we start using reset_intf_cfg() during teardown / unplug? > > Fixes: ede3c6bb00c ("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, -- With best wishes Dmitry