Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2872920rwr; Fri, 28 Apr 2023 18:20:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EKzXCUUBLMcfABIZo0tn0Lo/UocOYoI59NtmvB0yLdR9h93EsamspZmxfZpSIWEV3IXVt X-Received: by 2002:a05:6a00:1d83:b0:627:fe88:a2e with SMTP id z3-20020a056a001d8300b00627fe880a2emr5895721pfw.0.1682731251882; Fri, 28 Apr 2023 18:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682731251; cv=none; d=google.com; s=arc-20160816; b=JAvrKIyIH2bBcamHOWOoLYLmgyqzWZLf6+RHbQS+Q4B9wDNxeVenBOBdmj7cUJCCu1 GiRKGpSx3slBR5DouJc6HECODPYdnenadtbOdgoazox/PhwwhfcVl9hlsRcqVwlESSI+ IQo0M4iHvdLRfiyPwCPHIg8f//FaAggFma9RGADzPDXo9n/pIF1lUDTEv75fuhX3iCsv 6W0kTlKu1kDr5xyq3e7wq1k8vxv2sE2TsqfguQqt/0zzBFUsR2LtajBRT1MGhVy7A+Wq iYMHLNuYKgumbSpPM+9dAz0LLNVuIVuFHYq16cCF2+5wXcm5ZZFaEKnYd8sblc/ho0MU INYQ== 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=7BrH5yP/U/+y8SiKzIFnfSUy8J8IoCmRmEerg7Q760U=; b=XCUspbLRT5Shc/Z1A7cLW/GD8PV6lnvEJ0QxcAeYpmfCITgFyyFWZdX6HecT5LEfvg yOjLr9VYkGJrARu5ftSYbRZFiwy17b63PxX+hg6cSWubjU96f7nPlSue9da9C1lHpVlB j+K31SuzL1t8LGdMS2hGRa16i1G6wjLHhb95oM759iKStLt1+A5SRVMJCrxtXUyXu+zd ox9jeEj+PrT6SxccXwlU0Bl/hi5rookGvk6yd5skj4+qoENCbYkUmMVVyHx6Y9m5ahy5 n5JFxyvazv4UnMyZYwgCrzlWMFqvC3dhbX6Zy9AEjXgzW/lgPJE8/rWkr5vrS86NwykG VbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=f+3pYNvi; 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 bs9-20020a632809000000b0051b685209d5si21951808pgb.460.2023.04.28.18.20.39; Fri, 28 Apr 2023 18:20:51 -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=f+3pYNvi; 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 S1347212AbjD2BIp (ORCPT + 99 others); Fri, 28 Apr 2023 21:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjD2BIn (ORCPT ); Fri, 28 Apr 2023 21:08:43 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE770180; Fri, 28 Apr 2023 18:08:40 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33T18UuC015306; Sat, 29 Apr 2023 01:08: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=7BrH5yP/U/+y8SiKzIFnfSUy8J8IoCmRmEerg7Q760U=; b=f+3pYNvikvtF+sImMlif59H02E4hokaPdd0QPhsQ2DKBvjMQNfoxONwyZ6/t3ZjfSYe7 VVAvvpCdBgBh8xwdqrutlwx4QtcvdsIvMhWuEpuQ2IrlLBgah9oh64VhxU5dRVOCEOiH JGbgU6NNn4hJujbUsZ4aFStOloeWW1v9cVbUHGLB4WLPv4phoX9w7GQKCKTfEdxspmcr IEDhVmzE0ds9Vlk15IpUb6lRuGHBXsThKGX7UXPC4mICy54SUbAPhYvFzfu28k7r9g7o xZfcvKzNhYm0SkjXeuYonEksNwFMWyYDsMhBvAcP/OsB3Mb8dXOey11qTnHOTjc5aBkC eA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q8b38tbhf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Apr 2023 01:08:29 +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 33T18Sd9027066 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Apr 2023 01:08:29 GMT Received: from [10.110.119.27] (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; Fri, 28 Apr 2023 18:08:27 -0700 Message-ID: Date: Fri, 28 Apr 2023 18:08:26 -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 v2 5/7] drm/msm/dpu: add DPU_PINGPONG_DSC feature PP_BLK and PP_BLK_TE Content-Language: en-US To: Dmitry Baryshkov , Kuogee Hsieh , , , , , , , , , , CC: , , , , References: <1682725511-18185-1-git-send-email-quic_khsieh@quicinc.com> <1682725511-18185-6-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: 8bit 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-GUID: k_pwnNi30jQORurO7RI07qlHvfTWCNyX X-Proofpoint-ORIG-GUID: k_pwnNi30jQORurO7RI07qlHvfTWCNyX 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-28_08,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 priorityscore=1501 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304290008 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_LOW, 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/28/2023 5:45 PM, Dmitry Baryshkov wrote: > On 29/04/2023 02:45, Kuogee Hsieh wrote: >> Legacy DPU requires PP hardware block involved into setting up DSC > > Nit: to be envolved > >> data path. This patch add DDPU_PINGPONG_DSC feature bit to both > > adds > >> PP_BLK and PP_BLK_TE so that both dpu_hw_pp_setup_dsc() and >> dpu_hw_pp_dsc_enable() will be executed during DSC path setup. > > Would it be easier to add PP_BLK_NO_DSC instead and make DSC enabled by > default for PP_BLK / PP_BLK_TE? > No because for some chipsets like qcm2290, it has a ping pong block but no DSC. >> >> Reported-by : Marijn Suijten >> Signed-off-by: Kuogee Hsieh >> --- >>   .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h    | 12 +++++----- >>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h |  8 +++---- >>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 26 >> ++++++++++------------ >>   .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h    | 24 >> ++++++++++---------- >>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 26 >> ++++++++++------------ >>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h |  4 ++-- >>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h |  2 +- >>   .../drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h    |  2 +- >>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c     |  8 +++---- >>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h     |  2 ++ >>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c    |  9 +++++--- >>   11 files changed, 62 insertions(+), 61 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 17f821c..b7cd746 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,16 +112,16 @@ static const struct dpu_lm_cfg msm8998_lm[] = { >>   }; >>   static const struct dpu_pingpong_cfg msm8998_pp[] = { >> -    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk_te, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >> +    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, >> BIT(DPU_PINGPONG_DSC), 0, >> +            sdm845_pp_sblk_te, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >> -    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, 0, sdm845_pp_sblk_te, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >> +    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, >> BIT(DPU_PINGPONG_DSC), 0, >> +            sdm845_pp_sblk_te, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, 0, sdm845_pp_sblk, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, 0, sdm845_pp_sblk, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >> index ceca741..8888bd9 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >> @@ -110,16 +110,16 @@ static const struct dpu_lm_cfg sdm845_lm[] = { >>   }; >>   static const struct dpu_pingpong_cfg sdm845_pp[] = { >> -    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk_te, >> +    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, >> BIT(DPU_PINGPONG_DSC), 0, sdm845_pp_sblk_te, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >> -    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, 0, sdm845_pp_sblk_te, >> +    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, >> BIT(DPU_PINGPONG_DSC), 0, sdm845_pp_sblk_te, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, BIT(DPU_PINGPONG_DSC), >> 0, sdm845_pp_sblk, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, BIT(DPU_PINGPONG_DSC), >> 0, sdm845_pp_sblk, >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h >> index 42b0e58..3a7dffa 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h >> @@ -128,24 +128,22 @@ static const struct dpu_dspp_cfg sm8150_dspp[] = { >>   }; >>   static const struct dpu_pingpong_cfg sm8150_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >> -    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >> +    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >> -    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), >> -            -1), >> -    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), >> -            -1), >> +    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), -1), >> +    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), -1), >>   }; >>   static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >> index 5bb9882..e766a2d 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >> @@ -116,23 +116,23 @@ static const struct dpu_lm_cfg sc8180x_lm[] = { >>   }; >>   static const struct dpu_pingpong_cfg sc8180x_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >> -    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >> +    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >> -    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), >> +    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), >>               -1), >> -    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), >> +    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), >>               -1), >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h >> index ed130582..137b151 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h >> @@ -129,24 +129,22 @@ static const struct dpu_dspp_cfg sm8250_dspp[] = { >>   }; >>   static const struct dpu_pingpong_cfg sm8250_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >> -    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, MERGE_3D_0, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >> +    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_0, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, MERGE_3D_1, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_1, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >> -    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), >> -            -1), >> -    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, MERGE_3D_2, >> sdm845_pp_sblk, >> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), >> -            -1), >> +    PP_BLK("pingpong_4", PINGPONG_4, 0x72000, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), -1), >> +    PP_BLK("pingpong_5", PINGPONG_5, 0x72800, BIT(DPU_PINGPONG_DSC), >> MERGE_3D_2, >> +            sdm845_pp_sblk, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), -1), >>   }; >>   static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h >> index a46b117..e5631a2 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h >> @@ -80,8 +80,8 @@ static const struct dpu_dspp_cfg sc7180_dspp[] = { >>   }; >>   static const struct dpu_pingpong_cfg sc7180_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk, -1, >> -1), >> -    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, 0, sdm845_pp_sblk, -1, >> -1), >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, 0, sdm845_pp_sblk, >> -1, -1), >> +    PP_BLK("pingpong_1", PINGPONG_1, 0x70800, 0, 0, sdm845_pp_sblk, >> -1, -1), >>   }; >>   static const struct dpu_intf_cfg sc7180_intf[] = { >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h >> index 988d820..7b4ad0f 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h >> @@ -60,7 +60,7 @@ static const struct dpu_dspp_cfg sm6115_dspp[] = { >>   }; >>   static const struct dpu_pingpong_cfg sm6115_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, 0, sdm845_pp_sblk, >>           DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>           DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h >> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h >> index c9003dc..20d4d14 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h >> @@ -57,7 +57,7 @@ static const struct dpu_dspp_cfg qcm2290_dspp[] = { >>   }; >>   static const struct dpu_pingpong_cfg qcm2290_pp[] = { >> -    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk, >> +    PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, 0, sdm845_pp_sblk, >>           DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>           DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c >> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c >> index 91bfc8a..83c0cd9 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c >> @@ -501,21 +501,21 @@ static const struct dpu_pingpong_sub_blks >> sc7280_pp_sblk = { >>       .intr_done = _done, \ >>       .intr_rdptr = _rdptr, \ >>       } >> -#define PP_BLK_TE(_name, _id, _base, _merge_3d, _sblk, _done, _rdptr) \ >> +#define PP_BLK_TE(_name, _id, _base, _features, _merge_3d, _sblk, >> _done, _rdptr) \ >>       {\ >>       .name = _name, .id = _id, \ >>       .base = _base, .len = 0xd4, \ >> -    .features = PINGPONG_SDM845_SPLIT_MASK, \ >> +    .features = PINGPONG_SDM845_SPLIT_MASK | _features, \ >>       .merge_3d = _merge_3d, \ >>       .sblk = &_sblk, \ >>       .intr_done = _done, \ >>       .intr_rdptr = _rdptr, \ >>       } >> -#define PP_BLK(_name, _id, _base, _merge_3d, _sblk, _done, _rdptr) \ >> +#define PP_BLK(_name, _id, _base, _features, _merge_3d, _sblk, _done, >> _rdptr) \ >>       {\ >>       .name = _name, .id = _id, \ >>       .base = _base, .len = 0xd4, \ >> -    .features = PINGPONG_SDM845_MASK, \ >> +    .features = PINGPONG_SDM845_MASK | _features, \ >>       .merge_3d = _merge_3d, \ >>       .sblk = &_sblk, \ >>       .intr_done = _done, \ >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> index fc87db1..6b49171 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> @@ -144,6 +144,7 @@ enum { >>    * @DPU_PINGPONG_SPLIT      PP block supports split fifo >>    * @DPU_PINGPONG_SLAVE      PP block is a suitable slave for split fifo >>    * @DPU_PINGPONG_DITHER,    Dither blocks >> + * @DPU_PINGPONG_DSC,        PP block binding to DSC >>    * @DPU_PINGPONG_MAX >>    */ >>   enum { >> @@ -152,6 +153,7 @@ enum { >>       DPU_PINGPONG_SPLIT, >>       DPU_PINGPONG_SLAVE, >>       DPU_PINGPONG_DITHER, >> +    DPU_PINGPONG_DSC, >>       DPU_PINGPONG_MAX >>   }; >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c >> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c >> index 3822e06..f255a04 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c >> @@ -264,9 +264,12 @@ static void _setup_pingpong_ops(struct >> dpu_hw_pingpong *c, >>       c->ops.get_autorefresh = dpu_hw_pp_get_autorefresh_config; >>       c->ops.poll_timeout_wr_ptr = dpu_hw_pp_poll_timeout_wr_ptr; >>       c->ops.get_line_count = dpu_hw_pp_get_line_count; >> -    c->ops.setup_dsc = dpu_hw_pp_setup_dsc; >> -    c->ops.enable_dsc = dpu_hw_pp_dsc_enable; >> -    c->ops.disable_dsc = dpu_hw_pp_dsc_disable; >> + >> +    if (features & BIT(DPU_PINGPONG_DSC)) { >> +        c->ops.setup_dsc = dpu_hw_pp_setup_dsc; >> +        c->ops.enable_dsc = dpu_hw_pp_dsc_enable; >> +        c->ops.disable_dsc = dpu_hw_pp_dsc_disable; >> +    } >>       if (test_bit(DPU_PINGPONG_DITHER, &features)) >>           c->ops.setup_dither = dpu_hw_pp_setup_dither; >