Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp868233rwr; Thu, 20 Apr 2023 07:17:40 -0700 (PDT) X-Google-Smtp-Source: AKy350YM74plPha76H3SwTQzaayaK7lf5ihYFDcO3+4DznxkzehPaRcBYeuJCJwKRAZGHb3KISIC X-Received: by 2002:a17:902:f551:b0:1a6:dc3b:9ed2 with SMTP id h17-20020a170902f55100b001a6dc3b9ed2mr1721732plf.13.1682000260419; Thu, 20 Apr 2023 07:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682000260; cv=none; d=google.com; s=arc-20160816; b=eoaGpodDO6bzq/G0Onhr/nSAmePgmOKBqiIjVSSIylUZnQwafBLXzuejgDlZumPdM1 opNBGgf6SJ2gBm+Sa+wYAqfGyq7RGtZlfnb1Jf2Pc5QQamWtkmFEb3gk1dafVQPEPe50 kSeGqIouh6DjJ0IzaZ13K4yy/w5x6DZHiB1h9LkupmHI4b7ba/1QBq0XLYyMyFzNXU82 wPPPp7jotM+duadH4lPsR2EvG41INZ2NdEhpVVEWIixU5k4dwDFiXGIP8ugWUa14Szy6 GiOP+KGDBccyzW74oLN5XmqoJ+KVDfshHKagT0j5+grgB7Hj55q/MR3BDl1f86YrmCoz pMxg== 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=NVkfX9ez3svxYnnM8rJPmrSpJjSKXj7Id4d2FlN3kdo=; b=dHwZXVZYs6sIkrkNvG1NRnrPtnEEuyMM8DYkiH8z7r3Wcgrrg16M6Rh7Vswgs21cFW OOZccLIXELx/5p/7yEK2SyKQvkGMGYo6572OEjfatx4RrjxHLO5CRTYKRt/dcbYnP62y 8jp6kHumP99zueE0iZAGkIFQp3e5rG3DOsQHSrI770hzNjf2/fZDJyI21Q4R25i3Y9xK 529wpsZvCylxSoJuZh6MgNtriPmhrcJsckcwly5ny9LndOWPMM+1UWU6VD6TN3A+h4zq YybwNJLTr5EMk6+MB3ej034IeMA/2Cgj3PMlu52+HqjgbkmVNPISfQpHoyrOFqBfbOYT MtsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KqeZisWy; 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 jj15-20020a170903048f00b001a6a06397d3si1823100plb.12.2023.04.20.07.17.23; Thu, 20 Apr 2023 07:17:40 -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=KqeZisWy; 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 S231835AbjDTODu (ORCPT + 99 others); Thu, 20 Apr 2023 10:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbjDTODt (ORCPT ); Thu, 20 Apr 2023 10:03:49 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AD336195 for ; Thu, 20 Apr 2023 07:03:36 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id r9so2882841ljp.9 for ; Thu, 20 Apr 2023 07:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681999414; x=1684591414; 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=NVkfX9ez3svxYnnM8rJPmrSpJjSKXj7Id4d2FlN3kdo=; b=KqeZisWyrlpuDhOBtUm7MpDZRVm7fv6Ei87iod2bozueBqbASVy7qkz9awjAAVSP5G YDnnpUgTd7mwlkUWt7aH1UYTPsy4Hk8bptdN7qqtXz6sN3sMqtqR15StRbdvsf3ixTaV UNqN/1J3WmYyn+lJaeiZ0nOOWHRh5RGrGYeWFVOfI1N3FdHEKDIw9aqK0IWbwlkKi6bp NMhO2QeiJZZhKRZ6AKbth5AIz/xO1JoKcWWV019YJcp2fd0K+lSkvREX95yT15aACGRu snhW/lsMW4uu65AaijRCk8SCWAtcefRydH8VPjx78sD9fwFVNGpfgaKmmFjlmpSmcSTI l+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681999414; x=1684591414; 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=NVkfX9ez3svxYnnM8rJPmrSpJjSKXj7Id4d2FlN3kdo=; b=hSO9lUnxJOZeFE3Z+q2EAOhIdcKDTH4nco0Xh7nYpEkILtUMJJ5+ltrdbGOKD+pbkO 94dvbDQ4J++9n4ILzNRhHY5VZAlwEMa/vv/zj5UjrGc9n5VC5V0lzHo2mvZSJ8MXNz1u piDV+8rnSkZa0mzU2Dca8OI3kEWF8OMLAe7INNO78RM13NeD+SYuIFUT0HvQ+TD3VExQ L6qQPseE+1kYp8YuthMzO5SjMN+jBaC2vuLJaMW67lSUBf4DUYOQp8vMc6mttDAAtO27 jHbWIkxoBGr/Fr7akpR8FvR8F8H8+vylabapyikDXC+Sb4fqckXg/F1nG6BhwRDT1X5g /hGQ== X-Gm-Message-State: AAQBX9cN9WkjFbBrHo6bGxTtNb+RXwPNBFnIdRVTHgRgd0j3NPSY6ZO9 2wnGlluc1Yl1LaMCJXCHKLSaeQ== X-Received: by 2002:a05:651c:1504:b0:2a8:bb0a:2214 with SMTP id e4-20020a05651c150400b002a8bb0a2214mr2441992ljf.12.1681999414124; Thu, 20 Apr 2023 07:03:34 -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 n21-20020a2e86d5000000b002a77792f2c5sm244736ljj.62.2023.04.20.07.03.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 07:03:33 -0700 (PDT) Message-ID: Date: Thu, 20 Apr 2023 17:03:33 +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 v3] drm/msm/dpu: always program DSC active bits Content-Language: en-GB To: Marijn Suijten , Kuogee Hsieh Cc: 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, 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: <1681490777-15351-1-git-send-email-quic_khsieh@quicinc.com> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 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,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 On 15/04/2023 02:02, Marijn Suijten wrote: > On 2023-04-14 09:46:17, Kuogee Hsieh wrote: >> In current code, the dsc active bits are set only if the cfg->dsc is set. > > This is the old sentence from v1 again, did you accidentally send the > wrong patch as the improvements from v2 are missing? > >> 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. > > At least teardown is one word again, v2 had "tear down" which is wrong. > >> As discuss at [1], clear DSC active bit will handled at reset_intf_cfg() > > discussed* as pointed out by Dmitry, and make it clear that this is > about clearing CTL_DSC_ACTIVE (and CTL_DSC_FLUSH?) specifically. Once > that is moved to reset_intf_cfg(), this patch should be reverted as > there is no need to write the registers once again when cfg->dsc equals > 0. Kuogee, can we please get a proper v4? With all the relevant changes from v2, with the changelog, etc. Otherwise the present Reviewed-by tags are just incorrect. > > - Marijn > >> Signed-off-by: Kuogee Hsieh >> Fixes: 77f6da90487c ("drm/msm/disp/dpu1: Add DSC support in hw_ctl") >> Reviewed-by: Abhinav Kumar >> Reviewed-by: Marijn Suijten >> >> [1] https://lore.kernel.org/linux-arm-msm/ec045d6b-4ffd-0f8c-4011-8db45edc6978@quicinc.com/ >> --- >> 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, >> -- >> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, >> a Linux Foundation Collaborative Project >> -- With best wishes Dmitry