Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp100763rwd; Wed, 17 May 2023 15:22:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4h2ndI24ec4P9wmH1cVtQ+t9vKKlVOcX9cNRv8tgip9m1kLESefb9E0UNNCBgdnq2n42Mf X-Received: by 2002:a05:6a20:160a:b0:103:7b79:1506 with SMTP id l10-20020a056a20160a00b001037b791506mr34151600pzj.24.1684362136700; Wed, 17 May 2023 15:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684362136; cv=none; d=google.com; s=arc-20160816; b=0/7nPaPfkQOnSgzn8jRqEfQaUdMsh6c6Q/Ml/mGnsoVqyRendQWdCZzovfOFpZfWpw oy6QEIO//ckryIrNWG4pQ6DzmUKMvQ+o7n1jRy1KPwTanMMbONUU3AgxX3OH+9rxcX7X aBOAQYS4V3PYbA7v1pAqHbhT+NGWznzrR5tKlz/xpBI5PnCY7od82KUXVg8F7xcmfLIZ kowTy59oLvrHtUcPa08pHPZ9+Xe6g/pcnynlcSan/7jT8jCfmOUXoK78FggQEtByaLW7 Qyvb+00svOkdhwBnEiTmnPs6B7BDD8f93Prtegd5Gc3WTjD9XEqLuhxXz84pMb7d8jRm Kk6w== 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=V+fu4Jl8nxExO64zchEbC+xXtgYj1oQi3VWPVEjVrwY=; b=rw9YQgqLrZFX/OI+REPInJZM7r0qIZQcOHz5X/jYILF9MpmM9XZPDH8D9Uv/XIMQuw wYtal88j1ujxAMJeVAnnR80A5ytOJcFd1cM+twmjpVogpEZH2U2fmnTZZraNi+qus+3b iYpZbGNeBt+4NJTobJfACTGAIidZDaklRHxlpmWspVceYhuub1F9rUfpRGNtiJ0WXvAR mmytszSwq/QtTmiqJvETX1wnfDkogT2gml8aI8yWsmYicLyngTa2FJ83g2wrlPsFL2Am tSE+EmBP/SVP5F8AwDQrplPxfE+n/4g1hW8eHthvT6rG2zDnQrKFsD038T9fngRcY/nS sltw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BhESeyQS; 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 p28-20020a637f5c000000b00530b7eca08dsi12506140pgn.51.2023.05.17.15.22.00; Wed, 17 May 2023 15:22:16 -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=BhESeyQS; 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 S229612AbjEQWCW (ORCPT + 99 others); Wed, 17 May 2023 18:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjEQWCU (ORCPT ); Wed, 17 May 2023 18:02:20 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71A4440CE; Wed, 17 May 2023 15:02:19 -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 34HJrlfo008378; Wed, 17 May 2023 22:02:09 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=V+fu4Jl8nxExO64zchEbC+xXtgYj1oQi3VWPVEjVrwY=; b=BhESeyQSPNEdgl04p2Hg0ODhCNU4f3klLpDMBHpLox9IFwT5HRBj7cMPsGwsv57LOI4A 3OAary26hfHpKoVFd/hDLBhyKU9a6KFUCl79HsigEMLrEhktIhLChToTOEcS4kcsSotv FruNG2kPMqwXpzzOiwMR0eEkqpERhcV1An+XkQJXA46751XmOpX9uAEm+Lze4nATvGCX mLPuVq3Q8TjIBLr4Townbhxx7fK2wYbQZK+zFyrZ+Hw0HB2AruBvhHX/nsLl4LcwPoC5 pLHv0kvUDEiH6rfaqO4t0R20hGbnE7o4IXFst/aQ2zzmwY8OHLTPgfzRX2zBmPrbmBOw HA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qmxyp18q5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 22:02:09 +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 34HM287P031232 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 22:02:08 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; Wed, 17 May 2023 15:02:07 -0700 From: Kuogee Hsieh To: , , , , , , , , , , CC: Kuogee Hsieh , , , , , , , Subject: [PATCH v10 0/8] add DSC 1.2 dpu supports Date: Wed, 17 May 2023 15:01:51 -0700 Message-ID: <1684360919-28458-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: 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: O5jZi0gNylFxMjWydkg-wLPWZU6qP8kM X-Proofpoint-GUID: O5jZi0gNylFxMjWydkg-wLPWZU6qP8kM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_04,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=949 priorityscore=1501 impostorscore=0 suspectscore=0 mlxscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305170181 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 to the catalog of MSM8998 and SC8180X drm/msm/dpu: add DSC 1.2 hw blocks for relevant chipsets Kuogee Hsieh (6): drm/msm/dpu: add DPU_PINGPONG_DSC feature bit for DPU < 7.0.0 drm/msm/dpu: Guard PINGPONG DSC ops behind DPU_PINGPONG_DSC bit 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 drm/msm/dpu: tear down DSC data path when DSC disabled drivers/gpu/drm/msm/Makefile | 1 + .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 7 + .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 11 + .../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 | 51 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 29 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 35 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 29 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 13 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 14 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h | 15 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc_1_2.c | 386 +++++++++++++++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 9 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 7 +- 19 files changed, 646 insertions(+), 29 deletions(-) create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc_1_2.c -- 2.7.4