Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4765836rwj; Tue, 20 Dec 2022 14:54:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf643O1VnXHVlU9qrbKgGxi8UAPiKca4O91FsNiuss8O+qSRIOERMyMBCFSLn1B5nA+3fx3F X-Received: by 2002:a17:90b:3c0d:b0:219:10dd:a389 with SMTP id pb13-20020a17090b3c0d00b0021910dda389mr46343892pjb.31.1671576858684; Tue, 20 Dec 2022 14:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671576858; cv=none; d=google.com; s=arc-20160816; b=Q9XHpgM2C2O6BUQD+Qd31nay1uTi1vrNUfFXxRBseumcBvw5543QcgkmOijTKKoTjs 8m2zp3MPYA4WvT4XER0/rQmaLG8Vsk/2ptYduen+gHBCT66Q8MYA96vzAhsMhMdEvElI UEmZLuBA4xkvnbbFvcI7ZMspma/DnZ6i+FkCp8aIXNZhff1mKkSBerC5n1gIUhXHfmh+ VI2hPaURpDZOtFcYH+vCwI1SEFEDtYM7v7jeyxfhWaG7V8R33yf6Kn9+jWZCtxjiQc0r nu4wKmhABeB+jE+oulCEQwOR0FmMDoxLh6NRaGkkxbrfPAveuei5ybjTpKvWDMDSM/8L 4rHQ== 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-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=1kfR55/Iap8QblZBFlivNtH+Kvko7hsXO4IrsGp59+Y=; b=D+yZqhzx60I/xbJBfP7QXcqeyQW69stmlvbAvRIIua/fuCXMePxciYYDsCR9jvdwvQ 8TdCb6smLxg81Yj7Vf0yUJz1WD0YQ+WSxYQMa5nHww7R4t8uTfsBOy3CGVYG4qAOs8fO EZ+Lw4k7+AQpbsrcKbhZGROUyHpwgYsoNnEFhw8HAKIX4L8AL7ee2mmoqkQZJWGb0RMA po7Uvh9Xg9G2iCay9ItRFY+jrt1HzsR+gCtwwcl5Qw5w1CMXIqGerp0+cBgLe0Jp8d9n d1Mp/tweQtmBlsz9zK87ZDLSEt3b1PwaJTWNJbwM1DqmhlzmTg5Dbj/RS/RCKcO0jLni 4POw== 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 o19-20020a63fb13000000b0046f63d17422si14985588pgh.359.2022.12.20.14.54.09; Tue, 20 Dec 2022 14:54:18 -0800 (PST) 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 S234078AbiLTWcP (ORCPT + 69 others); Tue, 20 Dec 2022 17:32:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233873AbiLTWcM (ORCPT ); Tue, 20 Dec 2022 17:32:12 -0500 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B923E1DA47 for ; Tue, 20 Dec 2022 14:32:10 -0800 (PST) Received: from SoMainline.org (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (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-r1.th.seeweb.it (Postfix) with ESMTPSA id 477B2201D6; Tue, 20 Dec 2022 23:32:06 +0100 (CET) Date: Tue, 20 Dec 2022 23:32:04 +0100 From: Marijn Suijten To: Abhinav Kumar Cc: Dmitry Baryshkov , phone-devel@vger.kernel.org, Rob Clark , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?utf-8?B?U3lyasOkbMOk?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Konrad Dybcio , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/6] drm/msm/dpu1: Wire up DSC mask for active CTL configuration Message-ID: <20221220223204.i3tfa2biq7bgkg5o@SoMainline.org> Mail-Followup-To: Marijn Suijten , Abhinav Kumar , Dmitry Baryshkov , phone-devel@vger.kernel.org, Rob Clark , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?utf-8?B?U3lyasOkbMOk?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Konrad Dybcio , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221213232207.113607-1-marijn.suijten@somainline.org> <20221213232207.113607-4-marijn.suijten@somainline.org> <184d22f1-7ed1-4a67-1c25-9fafeb94db83@linaro.org> <20221214193026.dv2fuubysctcvlkg@SoMainline.org> <658da2cf-1e1a-af27-b085-edf0887b8dae@linaro.org> <8f33c1d0-a2ca-dc49-1884-01541ad83d49@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8f33c1d0-a2ca-dc49-1884-01541ad83d49@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 2022-12-16 14:20:52, Abhinav Kumar wrote: > > > On 12/14/2022 5:08 PM, Dmitry Baryshkov wrote: > > On 14/12/2022 21:30, Marijn Suijten wrote: > >> On 2022-12-14 20:43:29, Dmitry Baryshkov wrote: > >>> On 14/12/2022 01:22, Marijn Suijten wrote: > >>>> [..] > >>> We usually don't have DSC with the writeback, don't we? > >> > >> I am unsure so ended up adding them in writeback regardless.? Downstream > >> uses a separate callback to process intf_cfg.dsc instead of going > >> through setup_intf_cfg(). > >> > >> To prevent these from being missed again (in the case of copy&paste), > >> how about instead having some function that sets up intf_cfg with these > >> default values from a phys_enc?? That way most of this remains oblivious > >> to the caller. > > > > I'm not sure this is possible. E.g. intf_cfg.dsc should not be set for > > the WB. > > > > Although this change is harmless because > dpu_encoder_helper_get_dsc(phys_enc) will not return a valid DSC mask > for the WB encoder, hence the setup_intf_cfg will just skip the DSC > programming, I also agree that we can skip setting the intf_cfg.dsc for > the writeback encoder in this patch. Since both of you agree that it is useless I'll drop this in V2. Have to confess that I know nothing about the writeback interface and haven't even read the code; does it run in parallel to a "physical" (e.g. DP/DSI) interface to capture screenshots (or even video) of what is currently being shown on the screen? By that logic the WB may have needed to know what is going on in the HW, but it wouldn't have made any sense regardless if the presented planes first pass through DSC before being captured. Something for me to read up on :) - Marijn