Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1326485rwr; Thu, 20 Apr 2023 13:17:18 -0700 (PDT) X-Google-Smtp-Source: AKy350Yt+6nBVdn5zrNaaCO5tWrGacXgb0syRT+RGWFmZ1vkzRCbNgWE2cR1r7d8Cwn4ThRliApC X-Received: by 2002:a17:90a:ad82:b0:247:5bb4:f445 with SMTP id s2-20020a17090aad8200b002475bb4f445mr2872926pjq.29.1682021838068; Thu, 20 Apr 2023 13:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682021838; cv=none; d=google.com; s=arc-20160816; b=DAQchasJd4rJmKbTHoxT3mPsBdFGEI9lbcOEV9D6g48PHznXOMcyLrXhhxpP6L1m8R 7/9ZfSmIgyZ3FpST/i3Ow+Rn7rZ3v4p7/Jai8yGSyf7rSo1ozf4w/eZCpUnY2yFG2WEo W63P//2/teM5735WFYkxzJ8r+bfD92ZMJETku1SPNFmIM5fYIQb7n3qjXkkzDf+rr7OF ALSYiYzhYK+oQrvs7yqvn/3RwY5gAiEMFLT3neftVPMRVMiE+dZJGBluWSZ2Mco/rknT zaL+GD/Etxx4ua+73k2+SS9bWJjyoW49V7ElYEl+pe16FRtFseq+9AbtdIR9L+QR9SiT nqLg== 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=M3Y9Il1oqwyiPf5dbbjjrGSxVhkcdbFOHAXUkuBeIj4=; b=Ho/s4N4zIkFiBOPNMWxS2n6yXwc+K2LjBcXKqEpcuO31UMSJJ0DnypZyffjpwUHZUw 0kQLzMjgGAlioWMvchV8fSfrQaE9lntBRmflQHgEPiaADQ1a+SiOxPD2VzWZ4c92NpS7 sH7U6svIW8nVE37HCzb8ctxv6Nd6eNDkc5ynL5OcTewcEXgCHbUTg8NlHaHd0L2YKIsS MxSCcKrxIBVtS6P0RPYkalK4gX9lb1GKoL7UpZMiVK0OeL1XobzS9Rfe48fE+BPXRa9/ AijijJ+Ah11kfCCCwU3fKsO5YFtsXqKxJ8+ah3NQUe1MC63DzLxi5y615b1v5A64Fn7B TKOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zxnUBz/X"; 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 v10-20020a63610a000000b00513edc81581si2487440pgb.287.2023.04.20.13.17.04; Thu, 20 Apr 2023 13:17:18 -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="zxnUBz/X"; 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 S231287AbjDTUJT (ORCPT + 99 others); Thu, 20 Apr 2023 16:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjDTUJS (ORCPT ); Thu, 20 Apr 2023 16:09:18 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 224D2170C for ; Thu, 20 Apr 2023 13:09:16 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4eed764a10cso850679e87.0 for ; Thu, 20 Apr 2023 13:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682021354; x=1684613354; 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=M3Y9Il1oqwyiPf5dbbjjrGSxVhkcdbFOHAXUkuBeIj4=; b=zxnUBz/XDQ02FR4wGa8lMypLEZQCrNT0gmPf4maNMnbuMNfuSFaPqvxs9d4PUfa7vN Bj3V1ZrWP17FJrRl6FDueGniOvbu267cwf6v2e3pJuEPctgNdy6gahF6PuqZoRi4MQKO SSposQliOyvlNLX4LPx8ZSBxLjwN+i4pPe6yc3H3vv3lEKNRlwS4NR6g4aV+qppSXPfP rKs/iwDmzkhrHb6CWALpgVhQtqWZKZJA2pKpHr5ehUVj1dmdb7mIsp7ZxGiAw8GZnrJi qIDZaNPWczBRC+yYJABQAIyYHK5pmcMcXorn9ohRbAcvuDQuhe8YyFf6ro6hTcpBV/vr zKWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682021354; x=1684613354; 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=M3Y9Il1oqwyiPf5dbbjjrGSxVhkcdbFOHAXUkuBeIj4=; b=d6uJP0+Kf91lRDqKNvWZwLUhygcGtLfUSarI13j36cu7CWQtDeUuxH8rV5lz0+RBCN 85JCGpBBGe1e8kRL4tcOp/pyZqK3O9YK+/BIlcY2ncDkPesihryT9Yrw2NWhHfS1P1bv A2f9sm6VHliJNcfwHHIHM2cAOoJX244SS7z6AB7YOQNKEzVedZ/qptLVDSBGgqO9rF+g TEM3nsV2p3GIKLF6ktKKLXjlNyeUC8OOMPeQXu4uyEqwoRwy52QX18KOjApP0vpysyXb J+Jf1ROm9vHHzCg1RLl6jcyP4vwQX1r9QbNlEHuk1WOD60q8tUW+VBQIZ8oCeCMnKswR 5W/Q== X-Gm-Message-State: AAQBX9fF73ZSR6+OTlMWfUk0ByEfO03MunOf+rNhfq6RoNkZ1/lA8CZp r6Rc32cIODTs6NBGDxKHk15Lcg== X-Received: by 2002:ac2:4219:0:b0:4db:3e56:55c8 with SMTP id y25-20020ac24219000000b004db3e5655c8mr665153lfh.59.1682021354370; Thu, 20 Apr 2023 13:09:14 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id s6-20020a19ad46000000b004db51387ad6sm318181lfd.129.2023.04.20.13.09.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 13:09:13 -0700 (PDT) Message-ID: <47d32e5e-49ad-3ffa-2862-26b78c9c6a98@linaro.org> Date: Thu, 20 Apr 2023 23:09:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 0/2] DPU1 GC1.8 wiring-up Content-Language: en-GB To: Abhinav Kumar , Konrad Dybcio , Rob Clark , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , 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> <951c7bbd-c239-336d-1914-af76f79a69d6@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <951c7bbd-c239-336d-1914-af76f79a69d6@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 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 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 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. >>> >>> >> -- With best wishes Dmitry