Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp930980rwr; Thu, 4 May 2023 11:30:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lHVcXGf3xUy3wxIkLMJwNxBMwD9f0eXhxQZKKgZIzafF4Gx7pjLkNesP3GRMJefsA8Jry X-Received: by 2002:a05:6a00:2d22:b0:5a8:9858:750a with SMTP id fa34-20020a056a002d2200b005a89858750amr3600710pfb.13.1683225010756; Thu, 04 May 2023 11:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683225010; cv=none; d=google.com; s=arc-20160816; b=QfdOB9TjrZjLZv9cz19CNVp8rbQcGiaqLkfyN4MuS+h6bSYWusIevuc9+vb649zL1v IGNHtOUjykFyzRsZAC9uThqDlsogOq6biYNJXNuvJl5rLl3m/AXXjIzSUeb0kCY43oPB Cf4101dVf+baqON0doPBXuZOTXXqKW5tvNWBtJnxB9JBuUIzMyDsE0nzJJwikKvMpdzj N46VgZnY3bqlmHGIhcd3JfcMu+2ai8KLjsqfGrH17HLqHi4pS9cULG3eG/h+sJCmPxKr F3LVNBRly5pz6jXsnHUixOno2NkDE8Cz4VWWEI2Rk0I6HkRk7CnIyqqM3S4StngufR52 IPHQ== 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=VvECvwED7W/HA1z7gnpxPn76AS8vUwvrR+GOyUzxrds=; b=JVd/SAbCN5WpFzfSqmJ8kGKR2j4uzsFrm+06GfLzKhzpClog2SkprVBPlMoft6ZVyV pHMo0Q5UMgHIoFu1zRVDvZ3ld8EcBTrtzhBWjmGXNG+QQBzL2W6sl9g9L9YICUMKergA zs/8cBSmAxraPQO720UDbTaEWAMRJifMEbQdjN7vU0lVk6aXWMrpa8iUhz2KBO3j13gm N6Typ/WmfKc+YFWPdl+IVZHmkfCIzYca1Nl9v+jfDfsL1/MGVJna1vZykhjSTS8Zai6N zogVNE2n7oOlUYZlk/sd3QKl8ZopVQzN3399n1wwQ6CVzsZNXE1esBHb2GwA0rLeowS/ /D/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OSvl5AZN; 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 e8-20020aa79808000000b0064359e09cecsi85649pfl.18.2023.05.04.11.29.53; Thu, 04 May 2023 11:30: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=OSvl5AZN; 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 S229736AbjEDS0c (ORCPT + 99 others); Thu, 4 May 2023 14:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjEDS0a (ORCPT ); Thu, 4 May 2023 14:26:30 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B12A65B9; Thu, 4 May 2023 11:26:29 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 344EHjwT026987; Thu, 4 May 2023 18:26:15 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=VvECvwED7W/HA1z7gnpxPn76AS8vUwvrR+GOyUzxrds=; b=OSvl5AZNh2znUPFyEQpGChwfB/uzb2788mZlu47KP49jg3XYQlvJJZpzQnPkrqMfrSmk 04Fgn72kxhG/LHSBoB7HIbkmbEmgx21GGxq/ePlQ3tNmJm8mkBK2sd/xw7Fphvn4WBm0 WkFNbRQ/HuXPR6oAWn4W5juBaw/hQ5kRx6nG5x7pCUn1BtsOeDH9vP7b9nGi4ZOzwzG8 jYZNUZvZWPu7pwI/Qg0R5+MS+SV0tg5Ojh5aVYF03A+iZuKcVcsAc+u+lUc/xzcxHqSP MRYZ8NlWNTX49QeNLAOyT06TwMEw1VMfuZInofK438SfFEOTCQpv0iF/PSry9fcAaA27 cw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qc2aj2912-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 18:26:14 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 344IPqQx022797 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 May 2023 18:25:52 GMT Received: from [10.134.70.142] (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; Thu, 4 May 2023 11:25:52 -0700 Message-ID: <11ef769a-5089-57d4-db87-4c5766d98206@quicinc.com> Date: Thu, 4 May 2023 11:25:44 -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 v5 3/7] drm/msm/dpu: add DPU_PINGPONG_DSC bits into PP_BLK and PP_BLK_TE marcos Content-Language: en-US To: Marijn Suijten , Dmitry Baryshkov CC: Kuogee Hsieh , , , , , , , , , , , , , , References: <1683218805-23419-1-git-send-email-quic_khsieh@quicinc.com> <1683218805-23419-4-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: Otc9LpKqzjwth8JGXUokyTmq_w0iysbX X-Proofpoint-GUID: Otc9LpKqzjwth8JGXUokyTmq_w0iysbX 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-05-04_12,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 priorityscore=1501 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040149 X-Spam-Status: No, score=-6.4 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 5/4/2023 11:23 AM, Marijn Suijten wrote: > On 2023-05-04 20:53:33, Dmitry Baryshkov wrote: >> On Thu, 4 May 2023 at 20:49, Marijn Suijten >> wrote: >>> >>> PP_BLK_TE is no longer there. >>> >>> marcos -> macros. >>> >>> On 2023-05-04 09:46:41, Kuogee Hsieh wrote: >>>> At legacy chipsets, it required DPU_PINGPONG_DSC bit be set to indicate >>> >>> I may have not made this clear, but the comments on patch 2/7 >>> (introducing the DPU_PINGPONG_DSC bit) also apply to this patch: clarify >>> DPU 7.0.0 exactly in favour of "legacy", which has no definition at all >>> and changes over time. >>> >>>> pingpong ops functions are required to complete DSC data path setup if >>>> this chipset has DSC hardware block presented. This patch add >>>> DPU_PINGPONG_DSC bit to both PP_BLK and PP_BLK_TE marcos if it has DSC >>>> hardware block presented. >>> >>> Strictly speaking this patch together with 2/7 is not bisectable, as 2/7 >>> first disables the callbacks for _all_ hardware and then this patch adds >>> it back by adding the flag to all DPU < 7.0.0 catalog descriptions. >> >> I asked to split these into two patches, but I see your point and >> partially agree with it. However if we mix the catalog changes with >> functional changes, it is too easy to overlook or misjudge the >> functional changes. > > I did the same in the INTF TE series for patches that have very little > and/or very obvious functional changes: exactly this combination of > guarding a few callbacks behind a feature bit, and setting that feature > bit on a few specific catalog entries. > >> As you are correct about bisectability, I'd probably suggest either >> having three patches (define flag, update catalog, handle flag in the >> driver) or squashing first two patches to have two patches (add flag + >> catalog, separate functional changes). > > Sure, if you really prefer a split I'd go for two patches: > 1. Add the flag to the enum and catalog; > 2. Add the ops guard (functional change). > > Then don't forget to reword the commit message, following the guidelines > below and the suggestion for 2/7. > > - Marijn Plan sounds good to me. Marijn, we will wait for a couple of days to post the next rev but would be hard more than that as we need to pick up other things which are pending on top of this. Hence would appreciate if you can finish reviews by then. > >>> To solve that, as we do in other DPU patch-series, just squash this >>> patch into 2/7. That way you also don't have to spend extra time >>> rewording this commit message either to match the improvements we made >>> in 2/7 (for example, you mention that "ops functions are required to >>> complete DSC data path setup", but those were already available before >>> 2/7, despite sounding as if this is a new thing that was previously >>> missing entirely). >>> >>> But please wait at least a couple days before sending v6. I only have a >>> few hours every day/week but would appreciate to review and test all the >>> other patches. >>> >>>> Signed-off-by: Kuogee Hsieh >>>> --- >>>> .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 16 +++++++-------- >>>> .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 16 +++++++-------- >>>> .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 24 +++++++++++----------- >>>> .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 24 +++++++++++----------- >>>> .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 24 +++++++++++----------- >>>> 5 files changed, 52 insertions(+), 52 deletions(-) >>>> >>>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>>> index 521cfd5..ef92545 100644 >>>> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>>> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>>> @@ -112,17 +112,17 @@ static const struct dpu_lm_cfg msm8998_lm[] = { >>>> }; >>>> >>>> static const struct dpu_pingpong_cfg msm8998_pp[] = { >>>> - PP_BLK("pingpong_0", PINGPONG_0, 0x70000, PINGPONG_SDM845_TE2_MASK, 0, sdm845_pp_sblk_te, >>>> - DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>>> + PP_BLK("pingpong_0", PINGPONG_0, 0x70000, PINGPONG_SDM845_TE2_MASK|BIT(DPU_PINGPONG_DSC), >>> >>> This should be added to the MASK (add new #define's where necessary). >>> >>> - Marijn > >