Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1459074rwr; Fri, 5 May 2023 14:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ozT4fDMMjbITyOeHyBdrE71GGZQ/rY6i2xZFE3Fv/WVToDtOTBneh2Ue3atzR7hBFVWjz X-Received: by 2002:a05:6a00:c87:b0:63d:23a7:ca62 with SMTP id a7-20020a056a000c8700b0063d23a7ca62mr4201459pfv.19.1683322830622; Fri, 05 May 2023 14:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683322830; cv=none; d=google.com; s=arc-20160816; b=Mf9CLwl0jimt8N6n2R6T6Yn99tvifrPEdQIlC0eeicRXa4mEIiJIMazwIKQ5Qo8frG gNDeXvp29nIajGyPTwcFXlY4nZqCGIdww3AFoM0OibsvPv9cP2P8tYlybj4o4Dpx7ZIJ ByrxUKw09wZCQLw8fEXTmj9GoSKxsdMBsnc/PSMRKpemZl3QsN06p5sE2D2EXbwcw7aB TEw294CWju82eGtWlfauMYh1aMLPodTOuV89vEShOJyR07IHwmDZJs7QTlS5fWKNNH7i EhLVNn6Qy7wmdMOK/4I++ngxqc/Ly9UQeXEdY+VJ5Q7PGy/ion3aLGcj6AdwuitR1cXx S71g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=rVzmO3/8OqoWF/+vJ6RhxHVcSzHR6TKoYzoM+GO5ESc=; b=ezKVqP+dmpPBS7AaWeL5aXlBIknTCJ0hGJ05zi+N4mhCjSTWXL16oHCksQnGnZRB3r Y6xp1WAK7vWZhxrJWLmlrstmItwQttdXHgATpg7gfXNDQdE6iBsJUKyDrgG7ZnXFmhkg k5vYCfmWMXuKCCLk8KECGNYfS09SG9lTEqhFo8qkX8++opwQKNKuGQ82c9A9otEHomF1 4RPXQ2SrcZnj83RUyA3SnaygP/TDlLH2IpMsu5rdRPSRck22ZMEahjAR/t5ME05se3iE fEOSdBO1WZX7THrqunHLgORbMAVR2uBDwThGh9R38HRpHXroeNVuAhHdPoAjl4virJ6B 0r+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YIU0SbxV; 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 u185-20020a6279c2000000b006391322d3f8si2986989pfc.375.2023.05.05.14.40.16; Fri, 05 May 2023 14:40:30 -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=YIU0SbxV; 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 S233372AbjEEVY1 (ORCPT + 99 others); Fri, 5 May 2023 17:24:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbjEEVYN (ORCPT ); Fri, 5 May 2023 17:24:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17911BC3; Fri, 5 May 2023 14:24:11 -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 345KHQh9012432; Fri, 5 May 2023 21:24:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : subject : date : message-id : mime-version : content-type : content-transfer-encoding : to : cc; s=qcppdkim1; bh=rVzmO3/8OqoWF/+vJ6RhxHVcSzHR6TKoYzoM+GO5ESc=; b=YIU0SbxVrT3acBPe+Yi0SiQgRR/NpevEP86jZ+uoKsqgrnaZ4iSSqAfQ4+zXtssDxsoU NuDbe+Zhd5OHuJaOVZXm2ILBNwNnr91fVAMlAOtf2HDmp08b1/iZ0CYw1ldE7NZoKkLp Y6Mbxz3tu1jfWm56gU2DZBmG51O6QGULliImnf8u21AgfWq+fCRFvRL9ROOpWX1INv3g 0WJFTkolNam1bivtGtclURvo1aZ5ulqs8Nkd+EKWh2t2FzCXC3CyUavmGSL5qp841cI1 WLZ0+UXVZZmmmX1CUelxoSe86fCNcfR/33/bdx8Yrh9/gNMWkWXVRlWOSGYGGx/rxNF2 oA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qctfua1dr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 May 2023 21:24:04 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 345LO3qb011979 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 May 2023 21:24:03 GMT Received: from jesszhan-linux.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 5 May 2023 14:24:03 -0700 From: Jessica Zhang Subject: [PATCH v2 0/4] Add DSC v1.2 Support for DSI Date: Fri, 5 May 2023 14:23:47 -0700 Message-ID: <20230405-add-dsc-support-v2-0-1072c70e9786@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAONzVWQC/3WNOw6DMBAFrxK5zkY2BvKpco+Iwp8lbIFNvICIE HePoU8572k0q2BMhCwep1UknIkphgzF+SRcZ8IbgXxmUchCy1JWYLwHzw54GoaYRmhRaWlNeb+ VSmTLGkawyQTX7V7PPQRcxv0aEra0HLFXk7kjHmP6Hu1Z7ev/zKxAQm1d3Upt8Kqr52ciR8FdX OxFs23bDxfVnPDLAAAA To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Marijn Suijten CC: Konrad Dybcio , , , , , Jessica Zhang X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=ed25519-sha256; t=1683321843; l=1960; i=quic_jesszhan@quicinc.com; s=20230329; h=from:subject:message-id; bh=6BbpC86xjXc0XHFd1x6qXXxS28hFrPmY3crN8mrsv0Y=; b=o9CYNBF/0tZlZu7sK47OD0ZX+iQqNLNcjwIKz1c33TIot1KQ0gK5Bci/AvAFEQr6DsQ4er+2s WbWRdcgs2/VBMkWDpr290EA+O4ZCAprV2tQ3nVRYX6v+iEjbNGyeqV+ X-Developer-Key: i=quic_jesszhan@quicinc.com; a=ed25519; pk=gAUCgHZ6wTJOzQa3U0GfeCDH7iZLlqIEPo4rrjfDpWE= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: eB_sNAZTnUzkpMaasas2jSarU8o7FCmc X-Proofpoint-ORIG-GUID: eB_sNAZTnUzkpMaasas2jSarU8o7FCmc 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-05_27,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305050173 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 is a series of changes for DSI to enable command mode support for DSC v1.2. This includes: 1) Adjusting pclk_rate to account for compression 2) Fixing the word count calculation for DSC 3) Setting the DATA_COMPRESS bit when DSC is enabled With these changes (and the dependency below), DSC v1.2 should work over DSI in command mode. Note: Changes that add DSC v1.2 support for video mode will be posted with the DP support changes. Depends-on: "add DSC 1.2 dpu supports" [1] and "Introduce MSM-specific DSC helpers" [2] [1] https://patchwork.freedesktop.org/series/116789/ [2] https://patchwork.freedesktop.org/series/115833/ Signed-off-by: Jessica Zhang --- Changes in v2: - Changed pclk math to only divide hdisplay by compression ratio - Reworded word count TODO comment - Make DATA_COMPRESS an INTF flag - Read INTF_CFG2 before setting DATA_COMRPESS register - Reworded commit messages and cover letter for clarity - Link to v1: https://lore.kernel.org/r/20230405-add-dsc-support-v1-0-6bc6f03ae735@quicinc.com --- Jessica Zhang (4): drm/msm/dsi: Adjust pclk rate for compression drm/msm/dsi: Fix compressed word count calculation drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag drm/msm/dpu: Set DATA_COMPRESS for command mode .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 +++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 11 +++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 2 ++ drivers/gpu/drm/msm/dsi/dsi_host.c | 26 +++++++++++++++++----- 6 files changed, 40 insertions(+), 6 deletions(-) --- base-commit: 70e08302e024bfac485b12972099237f7f39d829 change-id: 20230405-add-dsc-support-fe130ba49841 Best regards, -- Jessica Zhang