Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1852397rdb; Thu, 21 Sep 2023 01:03:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiPhOw2q2Jlb0fU80usNvZGlCOkdJomF6WdxzEVkshTbwVZoy3lPjB2yBZalvPSZzvEyZY X-Received: by 2002:a17:902:a407:b0:1c3:ed30:ce0a with SMTP id p7-20020a170902a40700b001c3ed30ce0amr4468464plq.19.1695283407968; Thu, 21 Sep 2023 01:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695283407; cv=none; d=google.com; s=arc-20160816; b=0PSLq5CJGqDzvzhgPt+4hoEMC4R6ixk4xuZ32UsUsUL1u2lfXmRjVEfNs2o63FLHK8 +aSJ+GeKjte9wbwKj2fSk2dHjtrlx0Rfzaq+e0sShnCEXP/dPmt2MjPO3cuFQAFEiZ+z 4JGpKW6/AqRRScYgevF25TDDSgc3t6FY5wPTXzEluMXLYYxYIljmRx/13G4GfEeYLU/J TIpytZYFhwKhoyeeRQ/KaBREVl3o0Et23Mr1+ZCjRUwrw0IsyutzgQbnrfedVQEuP46E eUKxW58uxZ9vivJpGy0EdPEOXDellMTSRV04GBXow5nBFQEB9BjkoPoF1MkH4SCqTv64 SH6A== 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=8KAHJyb7ukMJL9JrE9n3VvcVa5V7tnW/DWUd0mk62fY=; fh=OqbwOCZw1/uatKYMI8dg4TfwUf3j+NNy+U3ieVHgvfI=; b=mdhYPg3D2cB1GX/y5G818LiYmUtVG/jcJ74AZs5nYlgypD73NQla2TF0PUdK1dSMWE mbK/2pRQ+PydeAPN7ZcVaMlh7YFFURNOGSuT7lQu7Nb5pCyH2Zxk7EwirzT/HjKTCBSU SoT+wZCNmOMh99+RtaPRshd01kQWpi8iF8MhCIoAnFjy03HXsIQhwiV7SCDJcpCyvPpR Mz1vdfzby//dhpr8wxdTF+rMSS5QUqZDDYx4h6IJSryxk80cPfiUvy/+VUqponRfrRee u/rgylRmEomlCZsYA4SspocjzZKaZKOIBRTBWbfHYDDBUtsEfxmowEw3gSVlMv1+oJag rOlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HbjQATyC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p7-20020a170903248700b001c44c2a2fcasi844197plw.222.2023.09.21.01.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 01:03:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HbjQATyC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EA75C801E0E6; Wed, 20 Sep 2023 16:42:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjITXmH (ORCPT + 99 others); Wed, 20 Sep 2023 19:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjITXmF (ORCPT ); Wed, 20 Sep 2023 19:42:05 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDCCFC9; Wed, 20 Sep 2023 16:41:58 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38KMkDIW019187; Wed, 20 Sep 2023 23:41:42 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=8KAHJyb7ukMJL9JrE9n3VvcVa5V7tnW/DWUd0mk62fY=; b=HbjQATyCTC/6PLpQbAbTPJyU4Bt2xzoFAIuicO2LiX9htYKQ4ZFqhCwTX41d3yoUBX4O Y++bZz6kRwDQw1wzY4L1DrgKsMYPuZJwJTyuxxYHHqF/wY16QI1R4j+aVEnIcxEa6w2v 1VdXRD377BcPbz15VMC0IZcIWoOooLLGNaHcvxJhaY+xZg7PWl2tPdn6+TxmGEWEpkky GK4wwdSwQDK8hya8HvNWLxO3BIK7DEnX9QC3aI9bcs6RZNeu3tYyh9FFhGj+Z7/OO4FD IThn2+zNKEh2riDJQvTYSAW8KHLVNN5LolV8y7asnlBE9FnpocFrgXUDoaUDLqxuUrvC Dg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t7rhuthv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 23:41:42 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38KNffS5026075 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 23:41:41 GMT Received: from [10.71.111.102] (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.1118.36; Wed, 20 Sep 2023 16:41:39 -0700 Message-ID: <3b23270c-ec89-2177-8252-6ccaf58d37ac@quicinc.com> Date: Wed, 20 Sep 2023 16:41:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] drm/msm/dpu: Fix SC7280 PP length Content-Language: en-US To: Konrad Dybcio , Rob Clark , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Kuogee Hsieh CC: , , , References: <20230921-topic-7280_dpu-v1-0-6912a97183d5@linaro.org> <20230921-topic-7280_dpu-v1-1-6912a97183d5@linaro.org> From: Abhinav Kumar In-Reply-To: <20230921-topic-7280_dpu-v1-1-6912a97183d5@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: 5aMlcQT71gL4U0CQLsyPDlhyxVdm4f83 X-Proofpoint-GUID: 5aMlcQT71gL4U0CQLsyPDlhyxVdm4f83 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-20_12,2023-09-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 adultscore=0 mlxlogscore=858 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309200199 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 16:42:06 -0700 (PDT) On 9/20/2023 3:46 PM, Konrad Dybcio wrote: > Commit 194347df5844 ("drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 > macros") unrolled a macro incorrectly. Fix that. > No, its correct from what i can tell. Before inlining it was using PP_BLK_DITHER macro and not PP_BLK. PP_BLK_DITHER has a len of 0 and not 0xd4. Hence I cannot see whats wrong here. > Fixes: 194347df5844 ("drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros") > Signed-off-by: Konrad Dybcio > --- > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h > index 3b5061c4402a..dc3198335164 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h > @@ -126,7 +126,7 @@ static const struct dpu_dspp_cfg sc7280_dspp[] = { > static const struct dpu_pingpong_cfg sc7280_pp[] = { > { > .name = "pingpong_0", .id = PINGPONG_0, > - .base = 0x69000, .len = 0, > + .base = 0x69000, .len = 0xd4, > .features = BIT(DPU_PINGPONG_DITHER), > .sblk = &sc7280_pp_sblk, > .merge_3d = 0, > @@ -134,7 +134,7 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { > .intr_rdptr = -1, > }, { > .name = "pingpong_1", .id = PINGPONG_1, > - .base = 0x6a000, .len = 0, > + .base = 0x6a000, .len = 0xd4, > .features = BIT(DPU_PINGPONG_DITHER), > .sblk = &sc7280_pp_sblk, > .merge_3d = 0, > @@ -142,7 +142,7 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { > .intr_rdptr = -1, > }, { > .name = "pingpong_2", .id = PINGPONG_2, > - .base = 0x6b000, .len = 0, > + .base = 0x6b000, .len = 0xd4, > .features = BIT(DPU_PINGPONG_DITHER), > .sblk = &sc7280_pp_sblk, > .merge_3d = 0, > @@ -150,7 +150,7 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { > .intr_rdptr = -1, > }, { > .name = "pingpong_3", .id = PINGPONG_3, > - .base = 0x6c000, .len = 0, > + .base = 0x6c000, .len = 0xd4, > .features = BIT(DPU_PINGPONG_DITHER), > .sblk = &sc7280_pp_sblk, > .merge_3d = 0, >