From patchwork Wed Nov 16 14:30:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalyan Thota X-Patchwork-Id: 1765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp172714wru; Wed, 16 Nov 2022 06:33:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PnICgI0jp7GsWcwWVSDOByrZ1/iIoFfcOrqJ/Mg7glzXtQ7DbhX6D24SFLG24RXjncwnZ X-Received: by 2002:a17:907:6748:b0:7ae:bfeb:f484 with SMTP id qm8-20020a170907674800b007aebfebf484mr18637309ejc.174.1668609180790; Wed, 16 Nov 2022 06:33:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668609180; cv=none; d=google.com; s=arc-20160816; b=dxJSd2q0Oc6RNFE74rKVZlVWOjkm1HeV70/sjan+ll6StIK3Z7HE7i2nY0x3r7IPWP Tw3zgh8Hhah8a4DYUiSEtU3Vpx7ZMqtbG1rYj4lNlnnDFkPYolnYmChXR35RJBUNmPbi xvUjz4e63JYFTSyY4TJfdmqAKhDu5dGv/itnBoGup3hlBjNowftrIbUAnJ37ljh5ZGV4 FQCKvqMgVlLXRhIPtK3MGYHyg8h9Zn/ztzECw5C+WcRh63KhQ3i4adnbOQldXA0NxDMd 1xbD2NLNGkpMNrZckWCbw7tbX0c0D1DJeZej44n/0SE+TA081MKbSPQn1Ej9QA6MTuBG N1xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=2koXY0aEfYtayLecGazENv7+KqrR7v4BhKdVunVKIsc=; b=eHgiztBYjzqXPsrfpGLiL0qv9TjvBgmxAAlc+5Yt+miffBae7HY946TFHv+6XT834q IZTfX6sv9yuJMRGLVEu/Pvz9847Q/bLq7rddrX4INmSZOFJgE1+1KVfLgi98SawmSc0T v6BQekjH9qSj47CBvRgl/l0DKk3AziIBtWPbd9UNmhlUJpFnpzkZY427RO9YSnHAXkqK hXPPdq1Iom7Pa6FJAbOAPcxCS2LbtppqrD96i+rdN0OPvQns/t/YIoGKsHQup93gSJeN OtMFjzeQ03uw1VSVRN7SyWPn4UzpVmWLe4z/3qI4LqTo8qEgmiFgwFVINs9MHrgz93d4 7/pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YgWvaGbG; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a17090657c300b0078356aaeb61si10361795ejr.286.2022.11.16.06.32.30; Wed, 16 Nov 2022 06:33:00 -0800 (PST) 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=YgWvaGbG; 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 S232869AbiKPObA (ORCPT + 99 others); Wed, 16 Nov 2022 09:31:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiKPOay (ORCPT ); Wed, 16 Nov 2022 09:30:54 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F23FE167F5; Wed, 16 Nov 2022 06:30:52 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AGEU7I7018059; Wed, 16 Nov 2022 14:30:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=2koXY0aEfYtayLecGazENv7+KqrR7v4BhKdVunVKIsc=; b=YgWvaGbGEPSu+oDKr/oo/ckI6lVkPTqbJtetHaPoxd8fDVmxisZ1gRzWRMyHanM4f5M7 RyhfpYhJ39n/WvGzex9vMRN4aCT6f4TRSfr4NhvP7U6X7R+NPIVNjvia5ZbLs3YErbhR 40iIbI1M9HR3Ye1pVyg54TYz0QNCoQ9OBw5j13xnQZrrO+ucMVgXyLEjE5/1QRfbPN20 z1xE6tVw/2UiqHnSB2U2timrP4JSZWOiMvT9vOtRvFL4wFywmVIxxYaV9vfxAgCcdI3T sQSVr9/kOo7+BbVEdSgfwxhJa4PFjzXwsakq2YCIqvAOvFoKeUMPSv0XaCjrhT0kUyvR kA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kvyg9gat2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Nov 2022 14:30:48 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 2AGEUiH4008022; Wed, 16 Nov 2022 14:30:44 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3kt4jkxbc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 16 Nov 2022 14:30:44 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2AGEUiee008017; Wed, 16 Nov 2022 14:30:44 GMT Received: from kalyant-linux.qualcomm.com (kalyant-linux.qualcomm.com [10.204.66.210]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 2AGEUham008016; Wed, 16 Nov 2022 14:30:44 +0000 Received: by kalyant-linux.qualcomm.com (Postfix, from userid 94428) id 339CA48A0; Wed, 16 Nov 2022 06:30:43 -0800 (PST) From: Kalyan Thota To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Kalyan Thota , linux-kernel@vger.kernel.org, robdclark@chromium.org, dianders@chromium.org, swboyd@chromium.org, quic_vpolimer@quicinc.com, dmitry.baryshkov@linaro.org, quic_abhinavk@quicinc.com Subject: [PATCH v2 0/3] add color management support for the crtc Date: Wed, 16 Nov 2022 06:30:37 -0800 Message-Id: <1668609040-2549-1-git-send-email-quic_kalyant@quicinc.com> X-Mailer: git-send-email 2.7.4 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: _P8hv34Ke4rusqaOYJq9kpVEnmXNrCPD X-Proofpoint-ORIG-GUID: _P8hv34Ke4rusqaOYJq9kpVEnmXNrCPD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-16_03,2022-11-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=590 spamscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211160100 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749663540419829346?= X-GMAIL-MSGID: =?utf-8?q?1749663540419829346?= Add color management support for the crtc provided there are enough dspps that can be allocated from the catalog Kalyan Thota (3): drm/msm/disp/dpu1: pin 1 crtc to 1 encoder drm/msm/disp/dpu1: add helper to know if display is pluggable drm/msm/disp/dpu1: add color management support for the crtc drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 6 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 23 ++++++++- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 6 +++ drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 75 ++++++++++++++++++++++++++--- 5 files changed, 101 insertions(+), 14 deletions(-)