Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp709648rdb; Thu, 30 Nov 2023 16:51:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/G5sxWNDYgFsfZXlVcOfsuKImiXpphnDUj8AnRHGiSjAB+Cw+VjL3/LdDZzt+KAMBJaJz X-Received: by 2002:a05:6a00:3926:b0:690:c75e:25c8 with SMTP id fh38-20020a056a00392600b00690c75e25c8mr27333785pfb.7.1701391864214; Thu, 30 Nov 2023 16:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701391864; cv=none; d=google.com; s=arc-20160816; b=gRGZvxddISRM6GCl1n8nddr9wpm3zNMuSu7rTZpEToBc54HTgymlN7NgtbtqkoQtHD deSDzcAdeqGfZNUbtz290M5jMPKLdlhgIzwNJ82iS5n3EJrWSDDjP3ryDJIF1Ym8v6Ei uQxh/BDOtshbTHayJu2JXSl1Hzd4015rfpNFQjDPkjJXv91OeAEIm9+q6wOmHaxfBkj4 IzvXe+5SNlchLKnpHa/es6KwLvqhq4yKLU8pA1mvmaaQsVLpCAwwtIJFrmN9h3ZxHeIo R+zPIOkVGR0wp5/AH6NTpi696qDf7aXVjJl35picPeJIRSFZ5eL0gUhQzrmqtP3HvfqB ZQaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=v2bv+KAdIdm9IFWwcr9OUqBoM9HY+CK+i+kY21Cut3Q=; fh=PV8mTOqHBITZfXWDdpO6auBL9NA1tybqIGg9DEXyy5s=; b=DVuXiB1YQOsh+iArGFcdsLWiru80Efos+iho0eLvmTQbPRzQpeNVgvnROvLw1Ce9k7 mIsUmNLu8PlDgItHfCDcw4G4+YjhXqkolggzHZe4gKQuOWMPAca+9VPnwsNIFasVopbe cv2jTnZMFOl+FtQuMknKJo7RO70aZk1gU1Dstb8K4SIk1PRPfW5mZHiUkisr3qmmFx4c +vxsEn1v1zKXZD4+jgOAAJtbNlwwwoxnAzyHdnsJFAKRHdms2TVk3mlnYX874naJgWgn 4N2oBkSwOr09u/NGwEAzX2DrUuvbJus6WprNQ231qWLZ1U84ocalyuWP7usRB5RP7LeR a/wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EzBhfu0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fc16-20020a056a002e1000b006cbf2bc6eaesi2326285pfb.188.2023.11.30.16.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:51:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EzBhfu0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 64B8480FD8AD; Thu, 30 Nov 2023 16:51:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbjLAAut (ORCPT + 99 others); Thu, 30 Nov 2023 19:50:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjLAAur (ORCPT ); Thu, 30 Nov 2023 19:50:47 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B2B10D9; Thu, 30 Nov 2023 16:50:53 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AUN8NfG019022; Fri, 1 Dec 2023 00:50:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=v2bv+KAdIdm9IFWwcr9OUqBoM9HY+CK+i+kY21Cut3Q=; b=EzBhfu0+aH2VGLOb0yrbVN5UuhdYTKj+JEUmy7xeu+llFwMj5ng565GtTSXo4sR3H/oh Gch+3ouKtiWTbEZWg/R3R09I5bVjbIagT1Hj5PAC2zcFNzjuq9tClKgl5DwRT2yUtwqk 62QUeEqT6n+dzJu8SjeTxPECuiBxycWm9ukmyFvWh6oC43O9ZyT8PFUiKFGteadMhWJG iN9lOD+u81tTjHASEjbDbvlLxR6sAhtvXGBSCFqeEN7qEHvaFSnDIIHrVeu0899WrfMC a+4d31l/Vsu+Y009MPWzeLXxZYwBoi8Ke3vBHMN9w9k/8ZsP42HJ8WeGlkkMdZQTiSD9 XQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3upvm1see9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 00:50:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B10odWk024718 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 00:50:39 GMT Received: from [10.71.109.77] (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.1118.40; Thu, 30 Nov 2023 16:50:39 -0800 Message-ID: <6ed0c636-c222-36b3-aae9-eb822e088a2c@quicinc.com> Date: Thu, 30 Nov 2023 16:50:38 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 14/16] drm/msm/dpu: do not allow YUV formats if no CDM block is present Content-Language: en-US To: Dmitry Baryshkov CC: , Rob Clark , "Sean Paul" , Marijn Suijten , "David Airlie" , Daniel Vetter , , , , , , References: <20230830224910.8091-1-quic_abhinavk@quicinc.com> <20230830224910.8091-15-quic_abhinavk@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-ORIG-GUID: GP_k8ApHg65NP_08TXp-Cw7iD8AlHq5I X-Proofpoint-GUID: GP_k8ApHg65NP_08TXp-Cw7iD8AlHq5I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-30_25,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 impostorscore=0 phishscore=0 spamscore=0 malwarescore=0 bulkscore=0 adultscore=0 clxscore=1015 mlxscore=0 mlxlogscore=749 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010004 X-Spam-Status: No, score=-3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 16:51:01 -0800 (PST) On 8/30/2023 5:24 PM, Dmitry Baryshkov wrote: > On Thu, 31 Aug 2023 at 01:50, Abhinav Kumar wrote: >> >> On chipsets where CDM block is not available OR where support has >> not been added yet do not allow YUV formats for writeback block. >> >> Signed-off-by: Abhinav Kumar >> --- >> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c >> index 7fc174b33ae2..d8edca9bc964 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c >> @@ -406,6 +406,12 @@ static int dpu_encoder_phys_wb_atomic_check( >> return ret; >> } >> >> + if (DPU_FORMAT_IS_YUV(to_dpu_format(msm_framebuffer_format(fb))) && >> + !phys_enc->dpu_kms->catalog->cdm) { >> + DPU_ERROR("cannot support YUV formats without CDM block\n"); >> + return -EINVAL; >> + } > > Can we have YUV formats in wb_formats if we do not support CDM? That > would be an error. I can drop this one once i address the comments on the next patch. Yeah the reason for this change was we had one formats array for wb and were using that for all chipsets. We can have two arrays : one only rgb and the other rgb+yuv to address this. > >> + >> return 0; >> } >> >> -- >> 2.40.1 >> > >