Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3663800rwd; Mon, 22 May 2023 18:20:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48ZDokxRPQD/7/lZN9UVjRed2sARt3AlV6odWOtvb9apxNKrl2yrGdmCk3j0F8okjuGm2K X-Received: by 2002:a17:902:e848:b0:1ac:820e:c34a with SMTP id t8-20020a170902e84800b001ac820ec34amr18300268plg.0.1684804814871; Mon, 22 May 2023 18:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684804814; cv=none; d=google.com; s=arc-20160816; b=m/p9TdA3Ym9A25kiOufW4i4h+zvPeJxRXwMoussDpaX5RIfMfq2ckUfnczJJEh+Ixp cqyvl7eJqjQYfadaLwFGnCsIW0NSfMEgD/z0QH52VD4PqZ2eGAa9C+GdheMk91SlXSiW AWQeoj3eKYl6uyVbfLdF8M5g0fB9ns+pzbUcx2b1ZPeV6kwgRxc+pKURt2PFwBaca+O+ OusKUcOcU2RrmwLIOVhfJSMDAmi7vt4UvAuqjLa0Za52V9r+Bl3AFNvVuh+hd5yv6wno 1z3Zbjz0wUPMJS+rcnRKEpqqMl6Z3CpPXzlMJP11P1sqZepde//xUk3kRdc587p8Y1uX AUkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=whbUGkqnjli4g0rLqr53+VrX3qfyqmb3mPMNVkClsKA=; b=L3gLZdWpVn+Hrgq38MmOR1ZX8etSlxSlUuDaY7r0AfG02yQEgOTfPuCPk8TpKOsXGm Sr4jur8I2MhNicvRt9Kd1Klxz2MWVXvmQmloyIQ2jkS76OXSfY15h687jhf3qFTleSxU M1YKk14gS3TKWtm0hWZYkzPNRpcLnidnNNTByBvwXsAp4I5uKHwWnpbCxNcahiHgCxQq OyYGe5k6OCGq2HRgz5TqC3fWmee3gS0kFf88V7pG4KclCztC6DYexk8ALxroTP9ryXFS yM2UMgk08j/S6eVB526xPhAtko7Jw0MZeHxBE/0TNcJhSYILu75KmbNO9FUYbmg/gpt2 lNtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h9KR4NDF; 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 p10-20020a170902eaca00b001adbfba9c29si5202202pld.409.2023.05.22.18.20.00; Mon, 22 May 2023 18:20: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=h9KR4NDF; 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 S233498AbjEWBJp (ORCPT + 99 others); Mon, 22 May 2023 21:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbjEWBJj (ORCPT ); Mon, 22 May 2023 21:09:39 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B379B91; Mon, 22 May 2023 18:09:33 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34N0q82n007772; Tue, 23 May 2023 01:09:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=whbUGkqnjli4g0rLqr53+VrX3qfyqmb3mPMNVkClsKA=; b=h9KR4NDFltdbYwztvf6Ir3hiZ5r3h2QPFy9fREjQRv7BDXaMbxT5d89YCIcyJkRzAyZp dRCiB7HYkFW91j33VVBbVmKwts7SHJ+ORuKEirT6uOLK3VYHj3WobqYzqrO2j8NdStXk e+zwJeyYzEAynBgFIYn6rQ+koDOj/G5ZTgG39/BTngcy12CtnNZahRJNuUTOuYm8G4MZ TFvXAa0sP5loqOwpIQF8tQqfbbNIQJIsYxEngLKE2Edc2h0gDqCf33LKrEm0b57QRsRq YOD9keRsULVGjPaHwmJOttf10MA6xAcbFpr7BsHssxi806vlvkoJWlvP8NUTUQcGliUB ag== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qr8qr9agw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 01:09:28 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34N196la017278 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 01:09:06 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; Mon, 22 May 2023 18:09:05 -0700 From: Jessica Zhang Date: Mon, 22 May 2023 18:08:57 -0700 Subject: [PATCH v5 3/5] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag for DPU >= 7.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230405-add-dsc-support-v5-3-028c10850491@quicinc.com> References: <20230405-add-dsc-support-v5-0-028c10850491@quicinc.com> In-Reply-To: <20230405-add-dsc-support-v5-0-028c10850491@quicinc.com> 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=1684804144; l=1924; i=quic_jesszhan@quicinc.com; s=20230329; h=from:subject:message-id; bh=z2q0kFVA9BDxduXfPGimNAADq5NplWIHp99D/M30orQ=; b=BplUX6rccBJYr4MrhWff2PU1rpraWeTeUAtLBd4PaGezesNdc5hjQOONZEDblXbZUKelMiZM+ Fz6IyvY2x+sC7inyDiZZ3gWzKB9X6wYX/FiOehEB50sADX13rB6I1bu 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: 8I9YH_pdAbkFeHgM-W_WS9Bb_dlQ2kkQ X-Proofpoint-ORIG-GUID: 8I9YH_pdAbkFeHgM-W_WS9Bb_dlQ2kkQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-22_18,2023-05-22_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=653 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305230007 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,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 In DPU 7.x and later, DSC/DCE enablement registers have been moved from PINGPONG to INTF. Thus, add a DPU_INTF_DATA_COMPRESS feature flag that will be set if the DATA_COMPRESS register is in the INTF block. Reviewed-by: Marijn Suijten Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 243399d09ffe..09c8c1672910 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -104,7 +104,8 @@ #define INTF_SC7180_MASK \ (BIT(DPU_INTF_INPUT_CTRL) | BIT(DPU_INTF_TE) | BIT(DPU_INTF_STATUS_SUPPORTED)) -#define INTF_SC7280_MASK INTF_SC7180_MASK | BIT(DPU_DATA_HCTL_EN) +#define INTF_SC7280_MASK \ + (INTF_SC7180_MASK | BIT(DPU_DATA_HCTL_EN) | BIT(DPU_INTF_DATA_COMPRESS)) #define WB_SM8250_MASK (BIT(DPU_WB_LINE_MODE) | \ BIT(DPU_WB_UBWC) | \ 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 11610f7d3150..334e4ab7281a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h @@ -185,6 +185,7 @@ enum { * @DPU_DATA_HCTL_EN Allows data to be transferred at different rate * than video timing * @DPU_INTF_STATUS_SUPPORTED INTF block has INTF_STATUS register + * @DPU_INTF_DATA_COMPRESS INTF block has DATA_COMPRESS register * @DPU_INTF_MAX */ enum { @@ -192,6 +193,7 @@ enum { DPU_INTF_TE, DPU_DATA_HCTL_EN, DPU_INTF_STATUS_SUPPORTED, + DPU_INTF_DATA_COMPRESS, DPU_INTF_MAX }; -- 2.40.1