Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1180585rwe; Fri, 14 Apr 2023 16:03:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bVYPDd1Tt2s0zKosM/v+JaQgOkF1zYfof5wnnUdlCwLXLBezMpjy0mTvlXfImw75tqZAwX X-Received: by 2002:a05:6a00:1695:b0:63a:5bcd:e580 with SMTP id k21-20020a056a00169500b0063a5bcde580mr10738223pfc.9.1681513385890; Fri, 14 Apr 2023 16:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681513385; cv=none; d=google.com; s=arc-20160816; b=wRr+pgWmUNM+a6EShkvEvAPcJYZ/ye0wcPE5CyxCpxbMEXfeXVvooqO1AfbDG3sjCQ CnWO7UHiDwEv1RHWGqeYtrm+BiCGwGr5/B6m7NcfLks3gpxjmhRljlCrhzXE/xr1jqis 6OAFdzl2dfJ99RLwBDpIn30O9YLglI2FSkX8p68RvVS6habQgjaJ6nDyhsFKYrJJuKcT ENeRrV2T3G0G3oPRnZuCUlx1ad0T3aaurDHioGdR8oCCVJPxcJsO95pV6UXq3OCdsXb7 uLFvgSylJUKOdZobWKZDzWyosA/ZVZoqCtJkoiZ+t65AjeazJOKJNY2UXtTt8m2CWuHI lhLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RsEpHWGUAT6/yQHsUqy7RYLlhjJJBPs4/FPHEMvEdok=; b=pBqb633GXxfvXmUc2F/Pwf2A0lozUqOJoeR/mL3j3MCzyCMaOuI1krpvxQ+AI3eO+k Wntzi+3nJoyStWbAnD0aGXHpqGhEhXZCGfSEFTD0NjVnn5S2GiJ3aLvLg4S2MEAAjc96 /D1FiU7xSPqi8DdE6nioJfh2nlU5WTy4SPGdTjDQLk0T+NwJOk2s/MHIvn/FAdPZRrDy ZK9iSmKnO1frLIFXjIiDcx/26Tz/EtLDguYLEhFJBTM53qCKKZqFq/rV3Bdl2F5KHezF WSUuWwEcDz/Fpki/BI7zMQ39Wl9qstN7zgsmlqc/gvt4SwKfcZIkHlotgUgAQ2RaOjb1 gZKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l7SvFeI8; 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 i30-20020a056a00005e00b0063b6bf6dbb3si2156868pfk.203.2023.04.14.16.02.36; Fri, 14 Apr 2023 16:03:05 -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=l7SvFeI8; 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 S229913AbjDNWyN (ORCPT + 99 others); Fri, 14 Apr 2023 18:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjDNWyM (ORCPT ); Fri, 14 Apr 2023 18:54:12 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85EFA72BE for ; Fri, 14 Apr 2023 15:54:10 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-54fbb713301so127009127b3.11 for ; Fri, 14 Apr 2023 15:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681512849; x=1684104849; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RsEpHWGUAT6/yQHsUqy7RYLlhjJJBPs4/FPHEMvEdok=; b=l7SvFeI8wAyE3IVHu4sdBXgh5y48P8qp65dCOH1gwQsVN1v8gjeerld6Deapj1+2we Djuo8gK7k1yxyXQdjJVN4b67SZAqPhaNkf9mQGbbo/2ZEVRYcRsKlvS5jmhpwQtjD8tn NU0gaJS0gbsPuGaQ0Ka8pIvVToBlt11htGL+biYLNouQYULXSvmkdFsqDKPdjJhRmftz D4evnJTyuygL94k1iIcWhIwD33WNeTavTXl/VkgUEy+dP9g3uxq3E67Fn/wS9uM//jFt nqkLp8JHHbGszXP2hdICNdgNND5H94ywb3O/04KgWN1oQZxxCcDrSygz1BAHvkoOpxaU 3cjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681512849; x=1684104849; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RsEpHWGUAT6/yQHsUqy7RYLlhjJJBPs4/FPHEMvEdok=; b=EuxF6Afer4wGIvrs/0eZBYkQV0o0yke8lwaMMvGG740yX/Xk+LikKiD4JzdCbiTUs5 WQZvls7Byzxkuvd/gb/3BWmzOTz2n7qSnDwdxds+I7WqLHbkmgqWDOGhRx+tZJEZFgF5 nXhgqz3kj+K/iS8zfSHvVsz69CEC6uCodYisGcg/myLTQfnV1DcdbVX4VLE/x4VrWI5o tVE9k1J5SLdWxp9WWLtPPMEnwfOnObFeUXjIjA3ZKA+eGJwT/AOY32pfmvq+FmKt+aIq yE7MEuM3nbgOYUgJh0y9tRCJbJ5tqusf3jdO9gWBN1JemSAbXm64wfSufqzncVcLyg5A gJRg== X-Gm-Message-State: AAQBX9fuyMtnidm+ZOkxEmStcAlPd/JRy+qqGTBVXhqiyEK48PcpJa5t vHW+jU0u9/tPNY+JfuRboHLr3sEEaULf+ra8prxiag== X-Received: by 2002:a81:ac22:0:b0:54f:85a6:c80c with SMTP id k34-20020a81ac22000000b0054f85a6c80cmr4728207ywh.5.1681512849564; Fri, 14 Apr 2023 15:54:09 -0700 (PDT) MIME-Version: 1.0 References: <1681401401-15099-1-git-send-email-quic_khsieh@quicinc.com> <3oaangxh7gmie3cdd6rmujm7dd3hagsrnwiq3bascdtamvfn3a@bn6ou5hbsgxv> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 15 Apr 2023 01:53:58 +0300 Message-ID: Subject: Re: [PATCH v2] drm/msm/dpu: always program dsc active bits To: Abhinav Kumar Cc: Marijn Suijten , 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, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Sat, 15 Apr 2023 at 00:03, Abhinav Kumar wrote: > > > > On 4/14/2023 1:58 PM, Dmitry Baryshkov wrote: > > On Fri, 14 Apr 2023 at 21:55, Abhinav Kumar wrote: > >> > >> > >> > >> On 4/14/2023 10:28 AM, Marijn Suijten wrote: > >>> 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`). > >>> > >> > >> Yes, ofcourse git send-email was used to send the patch, not any other > >> mail client. > >> > >> Yes i am also aware that send-email converts rb to CC. > >> > >> But if you keep working on the local branch, then you would have to > >> manually add the r-bs. If you use am of the prev version and develop on > >> that, it will automatically add the r-bs. > > > > It looks like there is some misunderstanding here. I think Marijn > > doesn't question his R-B (which was present), but tries to point out > > that Kuogee might want to adjust his git-send-email invocation. By > > default (and that's a good practice, which we should follow), > > git-send-email will CC people mentioned in such tags. Marijn didn't > > get this email. So, it seems, for some reason this Cc: _mail_ header > > was suppressed. Probably git-send-email invocation should be changed > > to prevent suppression of adding mentioned people to CC lists. > > > > Yeah I understood that part. There were two issues here: > > 1) My r-b got dropped and that was because am wasn't used to > automatically retain tags from prev version. > > If you dont add the r-bs either manually or by am, then folks wont be > part of CC either Just as a note: there is nothing wrong with adding tags manually. I do that for some of my patchsets (and sometimes I miss them too). > > 2) I synced with kuogee. his git version seems to be quite old which is > not adding the folks from r-b to cc. So there was nothing wrong with > invocation, just versioning. Ack. Thanks for updating it. > > > >> > >> > >>> 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 > > > > > > -- With best wishes Dmitry