Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3826802rwr; Sat, 22 Apr 2023 12:50:11 -0700 (PDT) X-Google-Smtp-Source: AKy350YLGbWUF+V9bG88pbxsE0zcaAu1gVCBiKqIyV0SGh147nTPjh4Z46cqqv82K9f1UU+uUMVt X-Received: by 2002:a05:6a20:244d:b0:dc:e387:5661 with SMTP id t13-20020a056a20244d00b000dce3875661mr13052546pzc.6.1682193010913; Sat, 22 Apr 2023 12:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682193010; cv=none; d=google.com; s=arc-20160816; b=D8HKXtIyrpUAVq1Bw1MLoi+Gix6LJowwysaQLSGYckl2uhHCgKuSrR2SuklJHizLrb i7gnbYM0qhyx6iiFE3nWsDY28rcQPv4HGCOdPfWBrapEortVg5wC9Peeq8AGE/ZtDp1b TS1EkZ1SCz4hV59RiQ3tTY2NzophZYuu5eVMhCvhw5Zf5z5JPGPv2fkHuYdkiMt+Pd8N eStVV10kdt8LyxmdqGSa/RWjaQswK/9wKyCONtJOvtRcy9SnJqCK+N1sI/wVfAhXGPL/ smU6c4g0K/ED6esb8DQGa5AW0REbsXO9ysJwKij4b1kvIDWP8/yA+tZGi688tQrYi7D4 1DgA== 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=Qr+PpyvLR4gWsD72o1Xmz6BhKN6P4FvdieeALxB+T4k=; b=pOS1h6Paa8iRR13NQXmT8pC0yt57nJZTMnDY94sI9Cm+RjfKtG2pjbh9Vn2uBKFE4n zMWbN8cmukf6AXt8e7eGvR1X219zDFqUMdfDUcWqpftZzMh70DIyAQ+r0bmJBsH1bsbg itQ8X9Q5uxvF74UUS2pKWnxlr/L0lbE3ifFFNv5Qax7kpvTRP1OkzFoketNRqC13zAFI ljluGe0wo03J3cTCoDo/i2A6avpnEo0jgZeLmSLdEPRL3NIiAo8anYltWYH9L+gk3JU3 YKkPJcAiY5WK8KHp8YmRMlhzTgaA6obm3n3kAFG7NghF9ogAus1AeglyrGGXVLPEZI8R wNpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=H1ocmu51; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a635515000000b0050bf225ba32si7313867pgb.706.2023.04.22.12.49.59; Sat, 22 Apr 2023 12:50:10 -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=@quicinc.com header.s=qcppdkim1 header.b=H1ocmu51; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbjDVScj (ORCPT + 99 others); Sat, 22 Apr 2023 14:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjDVSci (ORCPT ); Sat, 22 Apr 2023 14:32:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E72FE3; Sat, 22 Apr 2023 11:32:37 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33MIWUDe024330; Sat, 22 Apr 2023 18:32:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Qr+PpyvLR4gWsD72o1Xmz6BhKN6P4FvdieeALxB+T4k=; b=H1ocmu51rw4m3fStiF6eruc2hgdbGdOl+4kvFtjIRSL76pxuHe81aLMYsjRNzBtSbGFk bBrLQVINpqcfvdwqSkFlNtKjaauC9re6+z7zwBNj3yKVtEft1f2aUrre+IldjgrvQ3Pt 0scQ83IvtWpsSMiPw4KkMvmo2QNfHHxtb1CcogfdbAxFXyDluMQ90Eklaj3/NWCnKDPj 2xLpLUlNxdDFobYWQtqV5SbqEe/H2f4G6y5vZh3UCYzIhIPLvf1FYgwYgqx5/ZkMFGuA afFfOlRWHk18sTKx4O04sLdtND/L8HBv/c24woTs9BhD8ThY7lhqw8BosRd/0jlYlHas yw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q48ge8rc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Apr 2023 18:32:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33MIWTAK014518 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Apr 2023 18:32:29 GMT Received: from [10.110.104.134] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Sat, 22 Apr 2023 11:32:28 -0700 Message-ID: Date: Sat, 22 Apr 2023 11:32:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH 0/2] DPU1 GC1.8 wiring-up Content-Language: en-US To: Dmitry Baryshkov , Konrad Dybcio , Marijn Suijten CC: , Sean Paul , , , 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> <01f04f1f-12a9-8137-bf89-5bf6c1bbca77@linaro.org> From: Abhinav Kumar In-Reply-To: <01f04f1f-12a9-8137-bf89-5bf6c1bbca77@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ZTVaMpjh7Dh42eb-K4m7sg9h7r4YlR2o X-Proofpoint-GUID: ZTVaMpjh7Dh42eb-K4m7sg9h7r4YlR2o X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-21_08,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 phishscore=0 adultscore=0 mlxlogscore=807 clxscore=1015 priorityscore=1501 spamscore=0 malwarescore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304220169 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,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 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 >>>>> >>> >