Message ID | 20230420-topic-dpu_gc-v1-0-d9d1a5e40917@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp788555vqo; Wed, 19 Apr 2023 18:34:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aRyJ3b74xAxxhUgRsSEd4Cc9s2NC9GZqE1N1kRYQ8lBlCcS9QK/hmkGKJAkr3FqRV0eCFB X-Received: by 2002:a05:6a20:a590:b0:ec:7c4f:ed7a with SMTP id bc16-20020a056a20a59000b000ec7c4fed7amr581151pzb.34.1681954469410; Wed, 19 Apr 2023 18:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681954469; cv=none; d=google.com; s=arc-20160816; b=XRJiFdiYMiP7sWhYQF4hW1M/DZcsCk7jbHsjc+xP5eOvM6AiyvqbzU9wF09cFtceEq M2CK4k3mHSEdWpvzDjeWUK9iiwnYivEMBvVfrApIwpj7AEaph28oYV4jaV3j4dKEZg7m U0y7QPeBhVhdgynEZJP7QECGBwSlAhd+qENV+ptYYD/Y4WYDzTJL53qimQx5c2k65AQn sYVQiTGJocQRy8lZicybpGeYxbB7dnMJh/jLZgCQjSDVjtFVB/4EG+nH6mR8rr9JCBPe s83D2ZQR00dbJCHm0Vo6Xi7yEYw9a3mbDBIvtVpL7a+vXc94F4x6pF+QXo8GPUceJmrX GwQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=2pjPggDwV+63wJc3gh5cASauH2FrG6WvSuw6/4vWXZk=; b=xcRBa23UQs0KMnIO4Df30abKLKRSA+igV0dCgYQKIGzuZ8v8qEJfowiSnqK8yZkIkF K1jBpc4u2ZnuQaF52JL24Rr0pDkTH7vWBji2lHjyTiYm1mFuVhtxmWJ0i/bGqUbaSM2e +UhZpJAravKJiRui1rysuosPEUMWh08qI6zCN0Ggwd7ZaeYuQB+GWr8jNgxpdjZzn2Vf wFtxxZYcOxSNAzv3+TdsBtKp8Ua/pEdVOSivCvHBSmOyCZvU8aeRoisSRlruOULETthe WXf0CpLKgUKoEDx92Tto7SdFDpDkm/STzwhp0LVa34QcjYmSC/Jn5msCc/UWyqalp4Fq Va9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KARctsjb; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a654d04000000b0050bfa82c244si124615pgt.440.2023.04.19.18.34.15; Wed, 19 Apr 2023 18:34:29 -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=KARctsjb; 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 S232918AbjDTBPE (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 19 Apr 2023 21:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbjDTBPC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Apr 2023 21:15:02 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C9BF469B for <linux-kernel@vger.kernel.org>; Wed, 19 Apr 2023 18:14:58 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id bz21so972367ljb.11 for <linux-kernel@vger.kernel.org>; Wed, 19 Apr 2023 18:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681953296; x=1684545296; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=2pjPggDwV+63wJc3gh5cASauH2FrG6WvSuw6/4vWXZk=; b=KARctsjb+Uom7cLN02eTYZmsdVBgGiMpxh4JAawF6BPkXh+w7FtS/Au39d2sSl0iAp qPdLpggmmbBHGpMz6s79jMMBsTS4sv5i/+8ewn6f7O30v+btVBnoLQxFhwF2FcdJlgwJ WseVJ5kP5JTwUS+JQIOmuW2wRsXT7vrIuYmIGqQpg74L/TnpBXXBqye+rxgD+KZMBBi1 q431CNebUVHuGz0ybcUIqtE5SxKceoyOvnYw5zXt6ux/azcsfUozuQNkldvCjT96ABQl kdd+WXU3GfuklIVX9M8z+QHGt3WzPo+qJtudgce3HV1Ht4rsTmS5QUGxv9SdUEOyrloH Bdmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681953296; x=1684545296; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2pjPggDwV+63wJc3gh5cASauH2FrG6WvSuw6/4vWXZk=; b=AreeGW72bHuT6rS8njv1d9olipDdSrEWDxSdLkxpIVjbWitsWRPs6VpTnvqxkkIld3 SHQOEQzy1gV5RC6Y4pm6RI5I09Zr+XmCG4PhgXSpRPYLvbPtB0p9TsAypqibqZx0oQM4 xw6EJKBNS/P9ZIJ6EoJCjDdYj4TRmcR8zA0dnN4pDz3P+WchdOpfKp4pmXq5B0UC+7tK PixDyxiCQliurTtXVInCDxdpE736GUUEFTUjaBw2Tj+UPDmDnz7QoKNFSpVdrvNmZUiJ bri0wxYfUdISWocyVHaqhEiQgWTlKb2XfawoOO3qnPfbpjWVrD7u0D1WPxICRFpLhKwJ OjpQ== X-Gm-Message-State: AAQBX9cvBga6JSuxJLd1BPHa2f2JLmk8aqOSU7HQRVmj2HtkI8X6dRav wshDSH5NhUTdh0strI9A//XCIA== X-Received: by 2002:a2e:9a95:0:b0:2a8:aadc:f162 with SMTP id p21-20020a2e9a95000000b002a8aadcf162mr2506673lji.51.1681953296417; Wed, 19 Apr 2023 18:14:56 -0700 (PDT) Received: from [192.168.1.101] (abyj144.neoplus.adsl.tpnet.pl. [83.9.29.144]) by smtp.gmail.com with ESMTPSA id k25-20020a2e2419000000b002a8dce82cf6sm28853ljk.32.2023.04.19.18.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 18:14:56 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH 0/2] DPU1 GC1.8 wiring-up Date: Thu, 20 Apr 2023 03:14:53 +0200 Message-Id: <20230420-topic-dpu_gc-v1-0-d9d1a5e40917@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAA2SQGQC/x2NWwqDMBAAryL77UKMr9arSCl5rLogMSRVCuLdX fycgWFOyJSYMgzFCYkOzrwFgaoswC0mzITshUErXatGK/xtkR36uH9nh91bVVPf9t3LW5DEmkx okwlukSjs6yoyJpr4/zzGz3XdvYT8T3MAAAA= To: Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681953295; l=1362; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=pRHWMRjt/n9zLCczjy/Yn/VbOiBgkQ1FtQZWTc9Q9rU=; b=JJ6i5qpF1MvRqD4DAygLVZUDtlpMNWpPh9eMvOEZe+8x04Wtsqq7pdDXh7F7vxVR2O7WsS1fScsC xwAzpJkqCZ/+gAiDEimRKnfQG7CuG6aVE522+WRSzEaNoA4nw444 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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=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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763656753409477492?= X-GMAIL-MSGID: =?utf-8?q?1763657089490584657?= |
Series |
DPU1 GC1.8 wiring-up
|
|
Message
Konrad Dybcio
April 20, 2023, 1:14 a.m. UTC
Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8
dspp sub-block in addition to PCCv4. The other block differ a bit
more, but none of them are supported upstream.
This series adds configures the GCv1.8 on all the relevant SoCs.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (2):
drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk
drm/msm/dpu1: Enable GCv1.8 on many SoCs
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++--
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++--
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++--------
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++-
9 files changed, 55 insertions(+), 53 deletions(-)
---
base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be
change-id: 20230420-topic-dpu_gc-6901f75768db
Best regards,
Comments
On 20.04.2023 03:25, Dmitry Baryshkov wrote: > On 20/04/2023 04:14, Konrad Dybcio wrote: >> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >> dspp sub-block in addition to PCCv4. The other block differ a bit >> more, but none of them are supported upstream. >> >> This series adds configures the GCv1.8 on all the relevant SoCs. > > Does this mean that we will see gamma_lut support soon? No promises, my plate is not even full, it's beyond overflowing! :P Konrad > >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> Konrad Dybcio (2): >> drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk >> drm/msm/dpu1: Enable GCv1.8 on many SoCs >> >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- >> 9 files changed, 55 insertions(+), 53 deletions(-) >> --- >> base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be >> change-id: 20230420-topic-dpu_gc-6901f75768db >> >> Best regards, >
On 20.04.2023 03:28, Abhinav Kumar wrote: > > > On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >> >> >> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>> more, but none of them are supported upstream. >>>> >>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>> >>> Does this mean that we will see gamma_lut support soon? >> No promises, my plate is not even full, it's beyond overflowing! :P >> >> Konrad > > So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. > > If thats not done, is there any benefit to this series? Completeness and preparation for the code itself, if nothing else? Konrad > >>> >>>> >>>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>>> --- >>>> Konrad Dybcio (2): >>>> drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk >>>> drm/msm/dpu1: Enable GCv1.8 on many SoCs >>>> >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 4 ++-- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 4 ++-- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 16 ++++++++-------- >>>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- >>>> 9 files changed, 55 insertions(+), 53 deletions(-) >>>> --- >>>> base-commit: 3cdbc01c40e34c57697f8934f2727a88551696be >>>> change-id: 20230420-topic-dpu_gc-6901f75768db >>>> >>>> Best regards, >>>
On 20/04/2023 04:36, Konrad Dybcio wrote: > > > On 20.04.2023 03:28, Abhinav Kumar wrote: >> >> >> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>> >>> >>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>> more, but none of them are supported upstream. >>>>> >>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>> >>>> Does this mean that we will see gamma_lut support soon? >>> No promises, my plate is not even full, it's beyond overflowing! :P >>> >>> Konrad >> >> So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. >> >> If thats not done, is there any benefit to this series? > Completeness and preparation for the code itself, if nothing else? The usual problem is that if something is not put to use, it quickly rots or becomes misused for newer platforms. We have seen this with the some of DPU features. In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we have three options: - drop the unused GC from msm8998_sblk. - keep things as is, single unused GC entry - fill all the sblk with the correct information in hope that it stays correct Each of these options has its own drawbacks. I have slight bias towards the last option, to have the information in place (as long as it is accurate).
On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: > On 20/04/2023 04:36, Konrad Dybcio wrote: >> >> >> On 20.04.2023 03:28, Abhinav Kumar wrote: >>> >>> >>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>> >>>> >>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>> more, but none of them are supported upstream. >>>>>> >>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>> >>>>> Does this mean that we will see gamma_lut support soon? >>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>> >>>> Konrad >>> >>> So I think I wrote about this before during the catalog rework/fixes >>> that the gc registers are not written to / programmed. >>> >>> If thats not done, is there any benefit to this series? >> Completeness and preparation for the code itself, if nothing else? > > The usual problem is that if something is not put to use, it quickly > rots or becomes misused for newer platforms. We have seen this with the > some of DPU features. > > In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > have three options: > - drop the unused GC from msm8998_sblk. > - keep things as is, single unused GC entry > - fill all the sblk with the correct information in hope that it stays > correct > > Each of these options has its own drawbacks. I have slight bias towards > the last option, to have the information in place (as long as it is > accurate). > My vote is for (1) . Today, GC is unused and from the discussion here, there is no concrete plan to add it. If we keep extending an unused bitmask for all the chipsets including the ones which will get added in the future in the hope that someday the feature comes, it doesnt sound like a good idea. I would rather do (1), if someone has time. OR lets stay at (2) till someone does (1). When someone implements GC, we can re-use this patch and that time keep konrad's author rights or co-developed by.
On 2023-04-20 21:01:04, Dmitry Baryshkov wrote: > On 20/04/2023 04:36, Konrad Dybcio wrote: > > > > > > On 20.04.2023 03:28, Abhinav Kumar wrote: > >> > >> > >> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: > >>> > >>> > >>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: > >>>> On 20/04/2023 04:14, Konrad Dybcio wrote: > >>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > >>>>> dspp sub-block in addition to PCCv4. The other block differ a bit > >>>>> more, but none of them are supported upstream. > >>>>> > >>>>> This series adds configures the GCv1.8 on all the relevant SoCs. > >>>> > >>>> Does this mean that we will see gamma_lut support soon? > >>> No promises, my plate is not even full, it's beyond overflowing! :P > >>> > >>> Konrad > >> > >> So I think I wrote about this before during the catalog rework/fixes that the gc registers are not written to / programmed. > >> > >> If thats not done, is there any benefit to this series? > > Completeness and preparation for the code itself, if nothing else? > > The usual problem is that if something is not put to use, it quickly > rots or becomes misused for newer platforms. We have seen this with the > some of DPU features. > > In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > have three options: > - drop the unused GC from msm8998_sblk. > - keep things as is, single unused GC entry > - fill all the sblk with the correct information in hope that it stays > correct > > Each of these options has its own drawbacks. I have slight bias towards > the last option, to have the information in place (as long as it is > accurate). Normally I'm all for rigorously and completely defining the hardware, porting the entire downstream DT in one go while looking at it anyway. (And it leaves less room for error when looking at DT properties while having no clue where they should end up in the catalog, or why they wouldn't be there) In this case though, as you say, it's unused so there's no way to test and validate anything, especially future changes we **might** make to the looks and layout of the catalog. What's worse, this series shows zero efforts towards at the very least explaining that GC is the Gamma Correction block, what the benefits are in defining/having it, and that it is currently not used by the DSPP driver block at all. That's my major reason for NAK'ing this. - Marijn
On 20/04/2023 22:47, Abhinav Kumar wrote: > > > On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >> On 20/04/2023 04:36, Konrad Dybcio wrote: >>> >>> >>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>> more, but none of them are supported upstream. >>>>>>> >>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>> >>>>>> Does this mean that we will see gamma_lut support soon? >>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>> >>>>> Konrad >>>> >>>> So I think I wrote about this before during the catalog rework/fixes >>>> that the gc registers are not written to / programmed. >>>> >>>> If thats not done, is there any benefit to this series? >>> Completeness and preparation for the code itself, if nothing else? >> >> The usual problem is that if something is not put to use, it quickly >> rots or becomes misused for newer platforms. We have seen this with >> the some of DPU features. >> >> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >> have three options: >> - drop the unused GC from msm8998_sblk. >> - keep things as is, single unused GC entry >> - fill all the sblk with the correct information in hope that it stays >> correct >> >> Each of these options has its own drawbacks. I have slight bias >> towards the last option, to have the information in place (as long as >> it is accurate). >> > > My vote is for (1) . Today, GC is unused and from the discussion here, > there is no concrete plan to add it. If we keep extending an unused > bitmask for all the chipsets including the ones which will get added in > the future in the hope that someday the feature comes, it doesnt sound > like a good idea. > > I would rather do (1), if someone has time. Agree, this was the second item on my preference list. Could you please send this oneliner? > OR lets stay at (2) till > someone does (1). > > When someone implements GC, we can re-use this patch and that time keep > konrad's author rights or co-developed by. > >
On 4/20/2023 12:51 PM, Dmitry Baryshkov wrote: > On 20/04/2023 22:47, Abhinav Kumar wrote: >> >> >> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>> >>>> >>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>> >>>>> >>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>> more, but none of them are supported upstream. >>>>>>>> >>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>> >>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>> >>>>>> Konrad >>>>> >>>>> So I think I wrote about this before during the catalog >>>>> rework/fixes that the gc registers are not written to / programmed. >>>>> >>>>> If thats not done, is there any benefit to this series? >>>> Completeness and preparation for the code itself, if nothing else? >>> >>> The usual problem is that if something is not put to use, it quickly >>> rots or becomes misused for newer platforms. We have seen this with >>> the some of DPU features. >>> >>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>> have three options: >>> - drop the unused GC from msm8998_sblk. >>> - keep things as is, single unused GC entry >>> - fill all the sblk with the correct information in hope that it >>> stays correct >>> >>> Each of these options has its own drawbacks. I have slight bias >>> towards the last option, to have the information in place (as long as >>> it is accurate). >>> >> >> My vote is for (1) . Today, GC is unused and from the discussion here, >> there is no concrete plan to add it. If we keep extending an unused >> bitmask for all the chipsets including the ones which will get added >> in the future in the hope that someday the feature comes, it doesnt >> sound like a good idea. >> >> I would rather do (1), if someone has time. > > Agree, this was the second item on my preference list. Could you please > send this oneliner? > Sure, i will send this by tomorrow, but its not a oneliner. Need to get rid of below too: 470 struct dpu_dspp_sub_blks { 471 struct dpu_pp_blk gc; >> OR lets stay at (2) till someone does (1). >> >> When someone implements GC, we can re-use this patch and that time >> keep konrad's author rights or co-developed by. >> >> >
On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: > On 20/04/2023 22:47, Abhinav Kumar wrote: > > > > > > On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: > >> On 20/04/2023 04:36, Konrad Dybcio wrote: > >>> > >>> > >>> On 20.04.2023 03:28, Abhinav Kumar wrote: > >>>> > >>>> > >>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: > >>>>> > >>>>> > >>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: > >>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: > >>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > >>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit > >>>>>>> more, but none of them are supported upstream. > >>>>>>> > >>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. > >>>>>> > >>>>>> Does this mean that we will see gamma_lut support soon? > >>>>> No promises, my plate is not even full, it's beyond overflowing! :P > >>>>> > >>>>> Konrad > >>>> > >>>> So I think I wrote about this before during the catalog rework/fixes > >>>> that the gc registers are not written to / programmed. > >>>> > >>>> If thats not done, is there any benefit to this series? > >>> Completeness and preparation for the code itself, if nothing else? > >> > >> The usual problem is that if something is not put to use, it quickly > >> rots or becomes misused for newer platforms. We have seen this with > >> the some of DPU features. > >> > >> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we > >> have three options: > >> - drop the unused GC from msm8998_sblk. > >> - keep things as is, single unused GC entry > >> - fill all the sblk with the correct information in hope that it stays > >> correct > >> > >> Each of these options has its own drawbacks. I have slight bias > >> towards the last option, to have the information in place (as long as > >> it is accurate). > >> > > > > My vote is for (1) . Today, GC is unused and from the discussion here, > > there is no concrete plan to add it. If we keep extending an unused > > bitmask for all the chipsets including the ones which will get added in > > the future in the hope that someday the feature comes, it doesnt sound > > like a good idea. > > > > I would rather do (1), if someone has time. > > Agree, this was the second item on my preference list. Could you please > send this oneliner? Nit (to make sure we're on the same thought here): I think it's a 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. > > OR lets stay at (2) till > > someone does (1). I'm personally okay leaving it in place too, with an eye on implementing this, IGC, and other blocks at some point if there's a use for it via standard DRM properties. > > When someone implements GC, we can re-use this patch and that time keep > > konrad's author rights or co-developed by. Good to at least know all these SoCs have the same offset and revision. - Marijn
On 20/04/2023 22:53, Abhinav Kumar wrote: > > > On 4/20/2023 12:51 PM, Dmitry Baryshkov wrote: >> On 20/04/2023 22:47, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>> more, but none of them are supported upstream. >>>>>>>>> >>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>> >>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>> >>>>>>> Konrad >>>>>> >>>>>> So I think I wrote about this before during the catalog >>>>>> rework/fixes that the gc registers are not written to / programmed. >>>>>> >>>>>> If thats not done, is there any benefit to this series? >>>>> Completeness and preparation for the code itself, if nothing else? >>>> >>>> The usual problem is that if something is not put to use, it quickly >>>> rots or becomes misused for newer platforms. We have seen this with >>>> the some of DPU features. >>>> >>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) >>>> we have three options: >>>> - drop the unused GC from msm8998_sblk. >>>> - keep things as is, single unused GC entry >>>> - fill all the sblk with the correct information in hope that it >>>> stays correct >>>> >>>> Each of these options has its own drawbacks. I have slight bias >>>> towards the last option, to have the information in place (as long >>>> as it is accurate). >>>> >>> >>> My vote is for (1) . Today, GC is unused and from the discussion >>> here, there is no concrete plan to add it. If we keep extending an >>> unused bitmask for all the chipsets including the ones which will get >>> added in the future in the hope that someday the feature comes, it >>> doesnt sound like a good idea. >>> >>> I would rather do (1), if someone has time. >> >> Agree, this was the second item on my preference list. Could you >> please send this oneliner? >> > > Sure, i will send this by tomorrow, but its not a oneliner. Need to get > rid of below too: > > 470 struct dpu_dspp_sub_blks { > 471 struct dpu_pp_blk gc; Agree. > >>> OR lets stay at (2) till someone does (1). >>> >>> When someone implements GC, we can re-use this patch and that time >>> keep konrad's author rights or co-developed by. >>> >>> >>
On 20/04/2023 22:56, Marijn Suijten wrote: > On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >> On 20/04/2023 22:47, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>> more, but none of them are supported upstream. >>>>>>>>> >>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>> >>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>> >>>>>>> Konrad >>>>>> >>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>> that the gc registers are not written to / programmed. >>>>>> >>>>>> If thats not done, is there any benefit to this series? >>>>> Completeness and preparation for the code itself, if nothing else? >>>> >>>> The usual problem is that if something is not put to use, it quickly >>>> rots or becomes misused for newer platforms. We have seen this with >>>> the some of DPU features. >>>> >>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>> have three options: >>>> - drop the unused GC from msm8998_sblk. >>>> - keep things as is, single unused GC entry >>>> - fill all the sblk with the correct information in hope that it stays >>>> correct >>>> >>>> Each of these options has its own drawbacks. I have slight bias >>>> towards the last option, to have the information in place (as long as >>>> it is accurate). >>>> >>> >>> My vote is for (1) . Today, GC is unused and from the discussion here, >>> there is no concrete plan to add it. If we keep extending an unused >>> bitmask for all the chipsets including the ones which will get added in >>> the future in the hope that someday the feature comes, it doesnt sound >>> like a good idea. >>> >>> I would rather do (1), if someone has time. >> >> Agree, this was the second item on my preference list. Could you please >> send this oneliner? > > Nit (to make sure we're on the same thought here): I think it's a > 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. > >>> OR lets stay at (2) till >>> someone does (1). > > I'm personally okay leaving it in place too, with an eye on implementing > this, IGC, and other blocks at some point if there's a use for it via > standard DRM properties. I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. > >>> When someone implements GC, we can re-use this patch and that time keep >>> konrad's author rights or co-developed by. > > Good to at least know all these SoCs have the same offset and revision. > > - Marijn
On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: > On 20/04/2023 22:56, Marijn Suijten wrote: >> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>> >>>>>>> >>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>> >>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>> >>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>> >>>>>>>> Konrad >>>>>>> >>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>> that the gc registers are not written to / programmed. >>>>>>> >>>>>>> If thats not done, is there any benefit to this series? >>>>>> Completeness and preparation for the code itself, if nothing else? >>>>> >>>>> The usual problem is that if something is not put to use, it quickly >>>>> rots or becomes misused for newer platforms. We have seen this with >>>>> the some of DPU features. >>>>> >>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>> have three options: >>>>> - drop the unused GC from msm8998_sblk. >>>>> - keep things as is, single unused GC entry >>>>> - fill all the sblk with the correct information in hope that it stays >>>>> correct >>>>> >>>>> Each of these options has its own drawbacks. I have slight bias >>>>> towards the last option, to have the information in place (as long as >>>>> it is accurate). >>>>> >>>> >>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>> there is no concrete plan to add it. If we keep extending an unused >>>> bitmask for all the chipsets including the ones which will get added in >>>> the future in the hope that someday the feature comes, it doesnt sound >>>> like a good idea. >>>> >>>> I would rather do (1), if someone has time. >>> >>> Agree, this was the second item on my preference list. Could you please >>> send this oneliner? >> >> Nit (to make sure we're on the same thought here): I think it's a >> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >> >>>> OR lets stay at (2) till >>>> someone does (1). >> >> I'm personally okay leaving it in place too, with an eye on implementing >> this, IGC, and other blocks at some point if there's a use for it via >> standard DRM properties. > > I took a quick glance. I think it is possible, but not straightforward. > But I must admit here, I don't have a full picture regarding different > color encodings, ranges and the rest of gamma/degamma API and usage. > I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. >> >>>> When someone implements GC, we can re-use this patch and that time keep >>>> konrad's author rights or co-developed by. >> >> Good to at least know all these SoCs have the same offset and revision. >> >> - Marijn >
On 22/04/2023 01:34, Abhinav Kumar wrote: > > > On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >> On 20/04/2023 22:56, Marijn Suijten wrote: >>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>> >>>>> >>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>> >>>>>>> >>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a >>>>>>>>>>> bit >>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>> >>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>> >>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>> No promises, my plate is not even full, it's beyond >>>>>>>>> overflowing! :P >>>>>>>>> >>>>>>>>> Konrad >>>>>>>> >>>>>>>> So I think I wrote about this before during the catalog >>>>>>>> rework/fixes >>>>>>>> that the gc registers are not written to / programmed. >>>>>>>> >>>>>>>> If thats not done, is there any benefit to this series? >>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>> >>>>>> The usual problem is that if something is not put to use, it quickly >>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>> the some of DPU features. >>>>>> >>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>> have three options: >>>>>> - drop the unused GC from msm8998_sblk. >>>>>> - keep things as is, single unused GC entry >>>>>> - fill all the sblk with the correct information in hope that it >>>>>> stays >>>>>> correct >>>>>> >>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>> towards the last option, to have the information in place (as long as >>>>>> it is accurate). >>>>>> >>>>> >>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>> there is no concrete plan to add it. If we keep extending an unused >>>>> bitmask for all the chipsets including the ones which will get >>>>> added in >>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>> like a good idea. >>>>> >>>>> I would rather do (1), if someone has time. >>>> >>>> Agree, this was the second item on my preference list. Could you please >>>> send this oneliner? >>> >>> Nit (to make sure we're on the same thought here): I think it's a >>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>> >>>>> OR lets stay at (2) till >>>>> someone does (1). >>> >>> I'm personally okay leaving it in place too, with an eye on implementing >>> this, IGC, and other blocks at some point if there's a use for it via >>> standard DRM properties. >> >> I took a quick glance. I think it is possible, but not >> straightforward. But I must admit here, I don't have a full picture >> regarding different color encodings, ranges and the rest of >> gamma/degamma API and usage. >> > > I think its easier to remove this now and then add it when we add the > support. As discussed, will post this shortly. > > Otherwise, whenever any new chipset gets added, we will run into the > same question of whether to add GC or not. Yes, I absolutely agree here. > >>> >>>>> When someone implements GC, we can re-use this patch and that time >>>>> keep >>>>> konrad's author rights or co-developed by. >>> >>> Good to at least know all these SoCs have the same offset and revision. >>> >>> - Marijn >>
On 22.04.2023 00:35, Dmitry Baryshkov wrote: > On 22/04/2023 01:34, Abhinav Kumar wrote: >> >> >> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>> >>>>>> >>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>> >>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>>> >>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>>>> >>>>>>>>>> Konrad >>>>>>>>> >>>>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>> >>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>>> >>>>>>> The usual problem is that if something is not put to use, it quickly >>>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>>> the some of DPU features. >>>>>>> >>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>>> have three options: >>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>> - keep things as is, single unused GC entry >>>>>>> - fill all the sblk with the correct information in hope that it stays >>>>>>> correct >>>>>>> >>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>> towards the last option, to have the information in place (as long as >>>>>>> it is accurate). >>>>>>> >>>>>> >>>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>> bitmask for all the chipsets including the ones which will get added in >>>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>>> like a good idea. >>>>>> >>>>>> I would rather do (1), if someone has time. >>>>> >>>>> Agree, this was the second item on my preference list. Could you please >>>>> send this oneliner? >>>> >>>> Nit (to make sure we're on the same thought here): I think it's a >>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>>> >>>>>> OR lets stay at (2) till >>>>>> someone does (1). >>>> >>>> I'm personally okay leaving it in place too, with an eye on implementing >>>> this, IGC, and other blocks at some point if there's a use for it via >>>> standard DRM properties. >>> >>> I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. >>> >> >> I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. >> >> Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. > > Yes, I absolutely agree here. Sorry for the useless patches, though I guess they were a good discussion starter.. Konrad > >> >>>> >>>>>> When someone implements GC, we can re-use this patch and that time keep >>>>>> konrad's author rights or co-developed by. >>>> >>>> Good to at least know all these SoCs have the same offset and revision. >>>> >>>> - Marijn >>> >
On 22/04/2023 15:08, Konrad Dybcio wrote: > > > On 22.04.2023 00:35, Dmitry Baryshkov wrote: >> On 22/04/2023 01:34, Abhinav Kumar wrote: >>> >>> >>> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>>> >>>>>>> >>>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 >>>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block differ a bit >>>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>>> >>>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant SoCs. >>>>>>>>>>>> >>>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>>> No promises, my plate is not even full, it's beyond overflowing! :P >>>>>>>>>>> >>>>>>>>>>> Konrad >>>>>>>>>> >>>>>>>>>> So I think I wrote about this before during the catalog rework/fixes >>>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>>> >>>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>>> Completeness and preparation for the code itself, if nothing else? >>>>>>>> >>>>>>>> The usual problem is that if something is not put to use, it quickly >>>>>>>> rots or becomes misused for newer platforms. We have seen this with >>>>>>>> the some of DPU features. >>>>>>>> >>>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not used) we >>>>>>>> have three options: >>>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>>> - keep things as is, single unused GC entry >>>>>>>> - fill all the sblk with the correct information in hope that it stays >>>>>>>> correct >>>>>>>> >>>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>>> towards the last option, to have the information in place (as long as >>>>>>>> it is accurate). >>>>>>>> >>>>>>> >>>>>>> My vote is for (1) . Today, GC is unused and from the discussion here, >>>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>>> bitmask for all the chipsets including the ones which will get added in >>>>>>> the future in the hope that someday the feature comes, it doesnt sound >>>>>>> like a good idea. >>>>>>> >>>>>>> I would rather do (1), if someone has time. >>>>>> >>>>>> Agree, this was the second item on my preference list. Could you please >>>>>> send this oneliner? >>>>> >>>>> Nit (to make sure we're on the same thought here): I think it's a >>>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as msm8998_dspp_sblk. >>>>> >>>>>>> OR lets stay at (2) till >>>>>>> someone does (1). >>>>> >>>>> I'm personally okay leaving it in place too, with an eye on implementing >>>>> this, IGC, and other blocks at some point if there's a use for it via >>>>> standard DRM properties. >>>> >>>> I took a quick glance. I think it is possible, but not straightforward. But I must admit here, I don't have a full picture regarding different color encodings, ranges and the rest of gamma/degamma API and usage. >>>> >>> >>> I think its easier to remove this now and then add it when we add the support. As discussed, will post this shortly. >>> >>> Otherwise, whenever any new chipset gets added, we will run into the same question of whether to add GC or not. >> >> Yes, I absolutely agree here. > Sorry for the useless patches, though I guess they were a good > discussion starter.. If they started the discussion, they were not useless. > > Konrad >> >>> >>>>> >>>>>>> When someone implements GC, we can re-use this patch and that time keep >>>>>>> konrad's author rights or co-developed by. >>>>> >>>>> Good to at least know all these SoCs have the same offset and revision. >>>>> >>>>> - Marijn >>>> >>
On 4/22/2023 7:11 AM, Dmitry Baryshkov wrote: > On 22/04/2023 15:08, Konrad Dybcio wrote: >> >> >> On 22.04.2023 00:35, Dmitry Baryshkov wrote: >>> On 22/04/2023 01:34, Abhinav Kumar wrote: >>>> >>>> >>>> On 4/20/2023 3:52 PM, Dmitry Baryshkov wrote: >>>>> On 20/04/2023 22:56, Marijn Suijten wrote: >>>>>> On 2023-04-20 22:51:22, Dmitry Baryshkov wrote: >>>>>>> On 20/04/2023 22:47, Abhinav Kumar wrote: >>>>>>>> >>>>>>>> >>>>>>>> On 4/20/2023 11:01 AM, Dmitry Baryshkov wrote: >>>>>>>>> On 20/04/2023 04:36, Konrad Dybcio wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 20.04.2023 03:28, Abhinav Kumar wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 4/19/2023 6:26 PM, Konrad Dybcio wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On 20.04.2023 03:25, Dmitry Baryshkov wrote: >>>>>>>>>>>>> On 20/04/2023 04:14, Konrad Dybcio wrote: >>>>>>>>>>>>>> Almost all SoCs from SDM845 to SM8550 inclusive feature a >>>>>>>>>>>>>> GC1.8 >>>>>>>>>>>>>> dspp sub-block in addition to PCCv4. The other block >>>>>>>>>>>>>> differ a bit >>>>>>>>>>>>>> more, but none of them are supported upstream. >>>>>>>>>>>>>> >>>>>>>>>>>>>> This series adds configures the GCv1.8 on all the relevant >>>>>>>>>>>>>> SoCs. >>>>>>>>>>>>> >>>>>>>>>>>>> Does this mean that we will see gamma_lut support soon? >>>>>>>>>>>> No promises, my plate is not even full, it's beyond >>>>>>>>>>>> overflowing! :P >>>>>>>>>>>> >>>>>>>>>>>> Konrad >>>>>>>>>>> >>>>>>>>>>> So I think I wrote about this before during the catalog >>>>>>>>>>> rework/fixes >>>>>>>>>>> that the gc registers are not written to / programmed. >>>>>>>>>>> >>>>>>>>>>> If thats not done, is there any benefit to this series? >>>>>>>>>> Completeness and preparation for the code itself, if nothing >>>>>>>>>> else? >>>>>>>>> >>>>>>>>> The usual problem is that if something is not put to use, it >>>>>>>>> quickly >>>>>>>>> rots or becomes misused for newer platforms. We have seen this >>>>>>>>> with >>>>>>>>> the some of DPU features. >>>>>>>>> >>>>>>>>> In case of GC (and the freshly defined DPU_DSPP_IGC, but not >>>>>>>>> used) we >>>>>>>>> have three options: >>>>>>>>> - drop the unused GC from msm8998_sblk. >>>>>>>>> - keep things as is, single unused GC entry >>>>>>>>> - fill all the sblk with the correct information in hope that >>>>>>>>> it stays >>>>>>>>> correct >>>>>>>>> >>>>>>>>> Each of these options has its own drawbacks. I have slight bias >>>>>>>>> towards the last option, to have the information in place (as >>>>>>>>> long as >>>>>>>>> it is accurate). >>>>>>>>> >>>>>>>> >>>>>>>> My vote is for (1) . Today, GC is unused and from the discussion >>>>>>>> here, >>>>>>>> there is no concrete plan to add it. If we keep extending an unused >>>>>>>> bitmask for all the chipsets including the ones which will get >>>>>>>> added in >>>>>>>> the future in the hope that someday the feature comes, it doesnt >>>>>>>> sound >>>>>>>> like a good idea. >>>>>>>> >>>>>>>> I would rather do (1), if someone has time. >>>>>>> >>>>>>> Agree, this was the second item on my preference list. Could you >>>>>>> please >>>>>>> send this oneliner? >>>>>> >>>>>> Nit (to make sure we're on the same thought here): I think it's a >>>>>> 3-liner: remove it from DSPP_MSM8998_MASK as well as >>>>>> msm8998_dspp_sblk. >>>>>> >>>>>>>> OR lets stay at (2) till >>>>>>>> someone does (1). >>>>>> >>>>>> I'm personally okay leaving it in place too, with an eye on >>>>>> implementing >>>>>> this, IGC, and other blocks at some point if there's a use for it via >>>>>> standard DRM properties. >>>>> >>>>> I took a quick glance. I think it is possible, but not >>>>> straightforward. But I must admit here, I don't have a full picture >>>>> regarding different color encodings, ranges and the rest of >>>>> gamma/degamma API and usage. >>>>> >>>> >>>> I think its easier to remove this now and then add it when we add >>>> the support. As discussed, will post this shortly. >>>> >>>> Otherwise, whenever any new chipset gets added, we will run into the >>>> same question of whether to add GC or not. >>> >>> Yes, I absolutely agree here. >> Sorry for the useless patches, though I guess they were a good >> discussion starter.. > > If they started the discussion, they were not useless. > I second that, they were not useless at all. In fact, like I mentioned earlier, once GC support is added, we can re-use these catalog changes. So, this is all good work. >> >> Konrad >>> >>>> >>>>>> >>>>>>>> When someone implements GC, we can re-use this patch and that >>>>>>>> time keep >>>>>>>> konrad's author rights or co-developed by. >>>>>> >>>>>> Good to at least know all these SoCs have the same offset and >>>>>> revision. >>>>>> >>>>>> - Marijn >>>>> >>> >
On Thu, 20 Apr 2023 03:14:53 +0200, Konrad Dybcio wrote: > Almost all SoCs from SDM845 to SM8550 inclusive feature a GC1.8 > dspp sub-block in addition to PCCv4. The other block differ a bit > more, but none of them are supported upstream. > > This series adds configures the GCv1.8 on all the relevant SoCs. > > > [...] Applied, thanks! [1/2] drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blk https://gitlab.freedesktop.org/lumag/msm/-/commit/9891b3df2b43 Best regards,