Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3425630rwr; Sat, 22 Apr 2023 05:15:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YWdTYEqwEg/yXCs7Rdyq1tSfuH3NjyGP8K2WQawxqCwepeSEIolYOEqmRdm5aNZBkHaOml X-Received: by 2002:a05:6a20:7f99:b0:f3:d92:a209 with SMTP id d25-20020a056a207f9900b000f30d92a209mr1968025pzj.0.1682165727012; Sat, 22 Apr 2023 05:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682165726; cv=none; d=google.com; s=arc-20160816; b=nc6BXSIAp/OUgLHOp5ftCOJk0E5n0a/OZYgB/ixIbbY6Uo9Swq635OJba24djefq93 VVHXh/tuZMMsGEc69DLWLVkIvw4VfsqQTJrLarDRYsjiAHYGPalj1dBqY8UGzyffYIUW yVtnYRaEd00I4QCgl4U9KqDU+iaPnf2ODNJMt6CQ3xdLFociK6iKnDZK1cKiwnUFFXLg i3ccyUCSvY6u2ut2b8NiLYw0xYce8bkNqGOWbHDjQBqDLc4OoGl7YO5HOR9axdJPr8l4 HZEUPKuzlGnp3D73b487bOdqvTlB3LMgzQExbXYAYHRDpil+28jE2qeY9HT/3zi8JvlO jYGQ== 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=9GDmJNueG7xvHJSuyd9rLemP2UP6fJ5kCNsM0oZLf0c=; b=ShNrFN5Y1JIzcXgO2eEuda+lmurtAT7I1RvHUeMveKvTh8xs9Mgr5hLfl/r8OMM73V lSEWJQKjHbz+m7U+CsY4wO7qNdCUzzpJWOlJIZ3pafW4KPThinV48+aIdIRs9jEqIfXT x496mDhKczuOLAUbj885D67+hKXBkdMJ8eS5dxIwCpTdL2V37+I1XmSLUfYjDFmHjoo5 eL4MPCneBBnNQQiPd4J1IBvi9V1U7c0IfiGpES7V5iAreTjCAt7DS3IfkCUgxVLPFTmG UvZHfcJizK4BzOH5lm0H0LL4YakJljv9wcvOdmXv0wnsmWhs1zKEkuYTTKYHKQwihJPP CQJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=epzCGo4B; 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 y5-20020a633205000000b0050fae6024f8si6862836pgy.792.2023.04.22.05.15.12; Sat, 22 Apr 2023 05:15:26 -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=epzCGo4B; 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 S229695AbjDVMIN (ORCPT + 99 others); Sat, 22 Apr 2023 08:08:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjDVMIL (ORCPT ); Sat, 22 Apr 2023 08:08:11 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7B01FE3 for ; Sat, 22 Apr 2023 05:08:09 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4ec816d64afso11553749e87.1 for ; Sat, 22 Apr 2023 05:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682165287; x=1684757287; 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=9GDmJNueG7xvHJSuyd9rLemP2UP6fJ5kCNsM0oZLf0c=; b=epzCGo4BQwPSgU50raaRrSMsXncJ7bFElplNuEIhpEZ5+F5BmKvGfrRJNj1v9eaTZu QI3GdJaBLJBy/fu+cvNFMQ9OTvXh6s3UX+cC2lYDoJRgbpLLhMkIVaQMxLS1iOIOZjcs Q9dESVfprMP29DW3YnSLCo7Qi5knCZjRza48d7Wfhhk/bpT8R5ED5pR/9Ic/L4/h4Yh7 7DwcpkhK7tifJbIB7H/dSS3NBa12IFq6KihU7B5EO793E2CJviAaFxIxBFMd02V+PX0G nCiu/UEGNvDEwIYnnOt9Dtwr0IKWhEZFuhKrCwtcju9vQE+tNvhZi7sMvp9HKDYkzuv8 y47w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682165287; x=1684757287; 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=9GDmJNueG7xvHJSuyd9rLemP2UP6fJ5kCNsM0oZLf0c=; b=DE8zm66AcIiTl8XDYN7iY7Qy+MMs+NQjgBYuCGhXrMjFEQigw1uifJb/fR2RHEnKxV 26CyOGMztBjefhskguSdnIhvTIYngMWWLD0tYgyE8eUFiKY3qQUZM1KQ/JUQlrbvqgw1 VKXH5byBL/6d4KRVo3CS4Se7ILIYffrSKQqGKMvXOVY4iuL4yW1lPZuDVlJFUSGAyWPm lfbnv6n1e83NXRikGppFQaVjSEgNB3ekwp+Ia3ih85FyB46BH+c6uJ/84QP0BLbQEbFQ weBDG/uycoaKgGydpHMTVDTaGG3FQXocmI7yqw/PEqYwIhP9AnzoBf1Mt4d9xAajXSdu Tj5g== X-Gm-Message-State: AAQBX9eozEHgfK0zxzKWEWGMAeetIALV76mz/d9iWBnUWaUOVp1jljdZ NwAKBspJROYFsRNwU3BeG2n6Jw== X-Received: by 2002:a05:6512:3e16:b0:4eb:41ac:e33 with SMTP id i22-20020a0565123e1600b004eb41ac0e33mr3781242lfv.19.1682165287653; Sat, 22 Apr 2023 05:08:07 -0700 (PDT) Received: from [192.168.1.101] (abyj144.neoplus.adsl.tpnet.pl. [83.9.29.144]) by smtp.gmail.com with ESMTPSA id w7-20020ac254a7000000b004efe73ee01fsm200108lfk.306.2023.04.22.05.08.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Apr 2023 05:08:07 -0700 (PDT) Message-ID: Date: Sat, 22 Apr 2023 14:08:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 0/2] DPU1 GC1.8 wiring-up Content-Language: en-US To: Dmitry Baryshkov , Abhinav Kumar , Marijn Suijten Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230420-topic-dpu_gc-v1-0-d9d1a5e40917@linaro.org> <5b133c55-e4f5-bfd2-b542-a7d44313c038@linaro.org> <3f3b3637-ed85-09a1-22b7-3ccd4bc929bb@quicinc.com> <2dff9d62-cffe-c66f-9e50-3ecd64e44d37@linaro.org> <6a335df7-ff0b-098a-feec-45714159df04@linaro.org> <0f469b3c-5f0f-e027-8a9f-d1233169c04a@linaro.org> <57pxyxwluu33z4lpij5gx7biwfo5pbhdalhhxflw7esi5n3vts@qhjb7ldnz3wb> <0bba90c1-01be-a76e-df12-2328b84f7298@linaro.org> <1f7bb81a-d38c-725a-9ee1-89efe2950b1d@linaro.org> From: Konrad Dybcio In-Reply-To: <1f7bb81a-d38c-725a-9ee1-89efe2950b1d@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 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,URIBL_BLOCKED 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 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 >>> >