Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp808779rwr; Thu, 4 May 2023 09:49:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7IlzE5k9bMg5rQoV3wUb355l4S38zUnkO6KGZAzmg5SEsslTKH2F1Lgpf5m+qUqokFvvUr X-Received: by 2002:a17:90b:f0b:b0:246:f9f1:ad17 with SMTP id br11-20020a17090b0f0b00b00246f9f1ad17mr2489326pjb.40.1683218954686; Thu, 04 May 2023 09:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683218954; cv=none; d=google.com; s=arc-20160816; b=z2EcnWcW/oGNKYXrTqz9dHAWKaMzgPFPZ5liJJdaNrMbz59xsSm8eKwhKZCecIQFha us64c2lLMa+EIz4w199MwTgo+6qLk25snNswmIj90oHPLWZiwWD2PMppJDEfnXAI/BZV WSFkYUEbx/j/nklV4haakwdXGQ4Aa6V1t+NpLqR0xOcVO1W7meZMh/8UQ/caxnRmnIvA KPvDrR8IUt3aO+pXkxEJjHWh3xONqLnNO9pEozHStAGKzrsynjx9Hb8zESeAhDHLv2Lh PYwAJvG67falVlr4G1jVnHefKalIqkmN5yRCAr9VDZ8wIbbjeM9QFvZC8A8CxKnrRWad CM2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Kf2+34XEzNLrx05TNlYlXWYQma1jIn7oJNcNhN662q4=; b=Q174gp32HvxKjhRQ/qrjEalSOJrjlAp/XntB/mD7xmKujXy5/5MDpiD9r3lgMeINpJ hHAg+turFKhrjv4vG8dsOs3E77+4EqAsJfWcP1K5eVs0FRale/G549qIJcowZBgqK5ht sXBdnE1N4oz5VHaEuFeAIZC7m26Omw59HLd5B5YDRaZjq1E74L5223ufdYnYU1XZoaf/ nI73sM6671ul2I1VTM0MIp5n1TZ9+rYT6GOsaa1xs/w+jzihjJh8btlVGFa2GAunZPRj ehq40n6QUD53rKliefsGpKmhq4QtGOPAab29sOxd9QPyz8J4qo0kmt8bMGFMVLNX0lrU dAEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EipOORCv; 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 kn14-20020a17090b480e00b00246ba136cc1si15851106pjb.137.2023.05.04.09.49.02; Thu, 04 May 2023 09:49:14 -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=EipOORCv; 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 S229916AbjEDQrO (ORCPT + 99 others); Thu, 4 May 2023 12:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjEDQrK (ORCPT ); Thu, 4 May 2023 12:47:10 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61B7C359D; Thu, 4 May 2023 09:47:09 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 344AX0gR016310; Thu, 4 May 2023 16:46:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=Kf2+34XEzNLrx05TNlYlXWYQma1jIn7oJNcNhN662q4=; b=EipOORCvBassLct4NrxyLrAglfrnQgu9S6X1rsSTfyvVlLOVmhT+wOJSrQiWS3RH3S3b +ltd60puYVavo6rS7gR7EiPGWbhmxBr4IYsCThEMFxfQywZVK/tmzVM4J+tTkCD141nO oWrC8YeXnZAnuJEA8PDWaWBQIgs9rutQ1SzXiygmcpEgOCXsTptOCVuLwMdEKy5PPLes zwQrNdbzAcpf3vVtia5xncecd1qdRusilD4KXz0gBRlNI85i5LCogbr0CObFp3ZHNChD q5a9BEW9PaGbGvWLMVRWZ+v3MhSxqNCd5WCxe2gyH0J76fFY/8kErzf75lImz/x+IqZJ kw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qcb2492fe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 16:46:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 344GkuRG005341 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 May 2023 16:46:56 GMT Received: from khsieh-linux1.qualcomm.com (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 09:46:55 -0700 From: Kuogee Hsieh To: , , , , , , , , , , CC: Kuogee Hsieh , , , , , , Subject: [PATCH v5 0/7] add DSC 1.2 dpu supports Date: Thu, 4 May 2023 09:46:38 -0700 Message-ID: <1683218805-23419-1-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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: RJu8z22nG8HsREQDIu-vJW3NZt36mvQL X-Proofpoint-ORIG-GUID: RJu8z22nG8HsREQDIu-vJW3NZt36mvQL 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_10,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=964 phishscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040136 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 This series adds the DPU side changes to support DSC 1.2 encoder. This was validated with both DSI DSC 1.2 panel and DP DSC 1.2 monitor. The DSI and DP parts will be pushed later on top of this change. This seriel is rebase on [1], [2] and catalog fixes from rev-4 of [3]. [1]: https://patchwork.freedesktop.org/series/116851/ [2]: https://patchwork.freedesktop.org/series/116615/ [3]: https://patchwork.freedesktop.org/series/112332/ Abhinav Kumar (2): drm/msm/dpu: add dsc blocks for remaining chipsets in catalog drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets Kuogee Hsieh (5): drm/msm/dpu: add DPU_PINGPONG_DSC feature bit drm/msm/dpu: add DPU_PINGPONG_DSC bits into PP_BLK and PP_BLK_TE marcos drm/msm/dpu: Introduce PINGPONG_NONE to disconnect DSC from PINGPONG drm/msm/dpu: add support for DSC encoder v1.2 engine drm/msm/dpu: separate DSC flush update out of interface drivers/gpu/drm/msm/Makefile | 1 + .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 23 +- .../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 | 35 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 24 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 14 + .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 + .../drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 + .../gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 14 + .../gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 14 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 16 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 25 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 36 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 22 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 10 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 15 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h | 15 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc_1_2.c | 385 +++++++++++++++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 6 + drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 7 +- 22 files changed, 652 insertions(+), 76 deletions(-) create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc_1_2.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project