Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp852686rwe; Fri, 14 Apr 2023 10:30:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVPIa+hOMJBRfFDyRBweE3JmCxcC16sOxnsv8TsldjtpaENmH8wK+Ep6rl5RJUFLzqbHay X-Received: by 2002:a17:903:22ca:b0:1a5:918:df40 with SMTP id y10-20020a17090322ca00b001a50918df40mr4518780plg.13.1681493416764; Fri, 14 Apr 2023 10:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681493416; cv=none; d=google.com; s=arc-20160816; b=hEDj4oJs9kj6sSveiIi6lA8goLEZ4KTaHAVvnHLQFvEKqI1bB9E9QFUUnjhew5Yk9N xxbCRTbQxexlSz8FdbfA2c/KaKYK2VDKX8hXGL+mDd5pBnofBUsQm8/jxj1njujNZF53 8JfCboyfriJRRQgz1umqTbHmnNe+Hh22S+cghuqooOcrOKMYaiNrI+kXvTtK6NPUlM44 rnpsJIY6LU7GAj4g8xTqwNoc+MFkF5VAAV43y2wpbyx6VaqQj8c1aKeqWB+bgOYPUso2 gSDehYe6lTJ/8oKR9pTtyZT4lf5gi36OyoujKy3PHQCRB96ld4GbZE6jRCZeBbbs/xRQ m4bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZeJMLg0M3vTZMS6HV3WKrnHJZI19sGm98U4NTFj+BPY=; b=AjCwbV6dNqf+2OnVAhJghFSOIHwbctl+KavAvzqfiE5EfhVCuTTupVBv5NSWrmbkSj GjM9cPdxjauubM3ezzj2InV19ssnsSBkw4f/5OQhxfXD0/xA9AB4v80FLq2yudF1SO3f IGAdouhINFp7m92GWkBiCTAoBoVFN4nOMaAkqelBsHkiX6b0aEqzh9FJ7vNwFQ3uvRHp iwKGzaEBXsHojdpq6u1hD2bBc2rYvgZWV2yvVbxV58BLDQR/jdwnNV5NPFCEn2VDWaP8 VPOtDB/X81+u+0l/9Rro3M2u9NrEHobsnXMfGG/2ezzsVXTRBXFU+Dfz/Vw/E/hd1k6m Yz4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a63ce44000000b0051b1fe0b7besi5130455pgi.580.2023.04.14.10.30.02; Fri, 14 Apr 2023 10:30:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbjDNR2N (ORCPT + 99 others); Fri, 14 Apr 2023 13:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjDNR2M (ORCPT ); Fri, 14 Apr 2023 13:28:12 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [IPv6:2001:4b7a:2000:18::171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B8573C13 for ; Fri, 14 Apr 2023 10:28:09 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 74EF23FA00; Fri, 14 Apr 2023 19:28:06 +0200 (CEST) Date: Fri, 14 Apr 2023 19:28:04 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: 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, dmitry.baryshkov@linaro.org, andersson@kernel.org, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drm/msm/dpu: always program dsc active bits Message-ID: <3oaangxh7gmie3cdd6rmujm7dd3hagsrnwiq3bascdtamvfn3a@bn6ou5hbsgxv> References: <1681401401-15099-1-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 2023-04-14 08:41:37, Abhinav Kumar wrote: > > On 4/14/2023 12:48 AM, Marijn Suijten wrote: > > Capitalize DSC in the title, as discussed in v1. > > > > On 2023-04-13 08:56:41, Kuogee Hsieh wrote: > >> In current code, the DSC active bits are written only if 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 tear down. > >> > >> Changes in V2: > >> 1) correct commit text as suggested > >> 2) correct Fixes commit id > >> 3) add FIXME comment > >> > >> Fixes: 77f6da90487c ("drm/msm/disp/dpu1: Add DSC support in hw_ctl") > >> Signed-off-by: Kuogee Hsieh > >> Reviewed-by: Marijn Suijten > > > > By default git send-email should pick this up in the CC line... but I > > had to download this patch from lore once again. > > > > Yes, I think what happened here is, he didnt git am the prev rev and > make changes on top of that so git send-email didnt pick up. We should > fix that process. The mail was sent so it must have gone through git send-email, unless a different mail client was used to send the .patch file. I think you are confusing this with git am (which doesn't need to be used if editing a commit on a local branch) and subsequently git format-patch, which takes a commit from a git repository and turns it into a .patch file: neither of these "converts" r-b's (and other tags) to cc, that's happening in git send-email (see `--suppress-cc` documentation in `man git-send-email`). I can recommend b4: it has lots of useful features including automatically picking up reviews and processing revisions. It even requires a changelog to be edited ;). However, finding the right flags and trusting it'll "do as ordered" is a bit daunting at first. > >> --- > >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 8 ++++---- > >> 1 file changed, 4 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..1651cd7 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,10 @@ 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); > >> - } > >> + > >> + /* FIXME: fix reset_intf_cfg to handle teardown of dsc */ > > > > There's more wrong than just moving (not "fix"ing) this bit of code into > > reset_intf_cfg. And this will have to be re-wrapped in `if (cfg->dsc)` > > again by reverting this patch. Perhaps that can be explained, or link > > to Abhinav's explanation to make it clear to readers what this FIXME > > actually means? Let's wait for Abhinav and Dmitry to confirm the > > desired communication here. > > > > https://lore.kernel.org/linux-arm-msm/ec045d6b-4ffd-0f8c-4011-8db45edc6978@quicinc.com/ > > > > Yes, I am fine with linking this explanation in the commit text and > mentioning that till thats fixed, we need to go with this solution. The > FIXME itself is fine, I will work on it and I remember this context well. Looks like it was removed entirely in v3, in favour of only describing it in the patch body. The wording seems a bit off but that's fine by me if you're picking this up soon anyway. - Marijn