Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4951463rdb; Tue, 12 Dec 2023 14:21:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG56CwClZ8EJbRFjjGR7tJ5nUi18IMnKcommhpefcpkxp8R9P6mxNA5whhGfb4kv4uYS8h7 X-Received: by 2002:a05:6871:4183:b0:1fb:13a6:bd2d with SMTP id lc3-20020a056871418300b001fb13a6bd2dmr7160283oab.2.1702419683244; Tue, 12 Dec 2023 14:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702419683; cv=none; d=google.com; s=arc-20160816; b=IT4Ues0E+BKp2GSM7l4WAczg1mLl4hZJTdJMuhchCRN6aR8EWXqibt1loyU2vt6JRt SWLq3H99sd/Ea4gXDre3VdxEbRQyhBSAwbf+CHLQLLs874tEqHC66pGXYV40FYJpXKi8 iaK/ALxYWnEPkLh3ymnwOkhj2aI4R+Q5SR8DXTS814xE0ozxCkhsNlmtKDgkXHtLJtOM lG929P/3Zd61RutIQXHui88xEGAXU2Rv7Z783lrMaQedBhY52DhlRRPM5ZDujA5/Jpy4 YDjBsuk6c9juLUHljehjqac1fVEL32PkergWbDru2zAhpWXPUZ7AB58ASKJUnTJrxyV4 PppQ== 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=jWYvq0lPk1O+dbwc4Fr/alVnAmWxr57RBysJceZ7SaI=; fh=s8wPFNZ6sHMHivXPx2iFTGXuMlX/GFs58spIMenNN9Y=; b=DkEKz9SohElH3Mho2dFAdX9N1xpKrxeBWu33o9nDH8sK38dyucFyMwkm8IVtU/octh ewBvZcJMYH6/OgPA5AjaJ9uwLjTHflLk7ixLAfhEwaP1IUnKTNE+RiZ6+MQwEOMblA7X orON8I6LT10sa2zbkVrOUR4s93+Z470cCxmD/DR/JbNRkhs5DM6yo56PfT7Arlbf1dws iox/JbT+AzX0nL0QegQ2we2SiknevJejaf3vZHGA+Q18+HugoKHwWOr+rWWLRlcC/81r BJVn6l5lbdelmL7g9FRO+/2uTJbzRAl7xu+s75VWpRvMB99VFJ6Ze+DZEi/qY/88Nl0h PXSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=a48kClVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z4-20020a656644000000b005c67e10f238si8375769pgv.492.2023.12.12.14.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 14:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=a48kClVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 82770801C8DC; Tue, 12 Dec 2023 14:21:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377787AbjLLWVH (ORCPT + 99 others); Tue, 12 Dec 2023 17:21:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377774AbjLLWVF (ORCPT ); Tue, 12 Dec 2023 17:21:05 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39B4392; Tue, 12 Dec 2023 14:21:10 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BCMFUNC025319; Tue, 12 Dec 2023 22:21:03 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=jWYvq0lPk1O+dbwc4Fr/alVnAmWxr57RBysJceZ7SaI=; b=a4 8kClVEVybgUYlDXCHN6R6rbU813FuET103gXh3BiSnoRNLTwTNL4mfg/pURsmMAm 0IpSyjQVU4Rf+hEoDC9g5MqvRVjA3IUoNxiUwgoOgLhePc5UO1ktc6qKzdE4xaXT sWrNi0Lp9C7RQoWTmld0PaAauNL3k4H33/BW5vf0moIb9cwqYArbcwN+84IUUf3E T75VKb4+jHF9olAJ3/cM2mKxAxM/kfbzW+66xrsXFrDvX8Ti1TvdaVHWUKF09n/i AfZH/QPNA8r9nN2F6IyMHijWr68zL7QdqBkWbSpyTbqAhiS8n5SIVvC82kBRhmRz mbi3ninQrn6h1Ec+AO4w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ux6533n4n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 22:21:03 +0000 (GMT) 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 3BCML24v013131 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 22:21:02 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; Tue, 12 Dec 2023 14:21:01 -0800 Message-ID: <80ac821a-bc7a-b293-cace-f977819e707a@quicinc.com> Date: Tue, 12 Dec 2023 14:21:00 -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 v4 01/15] drm/msm/dpu: add formats check for writeback encoder Content-Language: en-US To: Dmitry Baryshkov CC: , Rob Clark , "Sean Paul" , Marijn Suijten , "David Airlie" , Daniel Vetter , , , , , References: <20231212205254.12422-1-quic_abhinavk@quicinc.com> <20231212205254.12422-2-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: 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: N_u7Wl7siR0Nrd6T482Jbvt7zLhsBn1F X-Proofpoint-GUID: N_u7Wl7siR0Nrd6T482Jbvt7zLhsBn1F 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-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 mlxlogscore=993 clxscore=1015 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312120174 X-Spam-Status: No, score=-3.4 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 12 Dec 2023 14:21:20 -0800 (PST) On 12/12/2023 2:03 PM, Dmitry Baryshkov wrote: > On Tue, 12 Dec 2023 at 23:30, Dmitry Baryshkov > wrote: >> >> On Tue, 12 Dec 2023 at 22:53, Abhinav Kumar wrote: >>> >>> In preparation for adding more formats to dpu writeback add >>> format validation to it to fail any unsupported formats. >>> >>> changes in v4: >>> - change the failure message of the API >>> drm_atomic_helper_check_wb_connector_state() to a generic >>> one in case it checks more errors later and moreoever it >>> already has debug message to indicate its failure >>> - change the corresponding DPU_ERROR to DPU_DEBUG in-line with >>> other atomic_check failure messages >>> >>> changes in v3: >>> - rebase on top of msm-next >>> - replace drm_atomic_helper_check_wb_encoder_state() with >>> drm_atomic_helper_check_wb_connector_state() due to the >>> rebase >>> >>> changes in v2: >>> - correct some grammar in the commit text >>> >>> Fixes: d7d0e73f7de3 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") >>> Signed-off-by: Abhinav Kumar >>> --- >>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 7 +++++++ >>> 1 file changed, 7 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 bb94909caa25..4953d87affa1 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 >>> @@ -272,6 +272,7 @@ static int dpu_encoder_phys_wb_atomic_check( >>> { >>> struct drm_framebuffer *fb; >>> const struct drm_display_mode *mode = &crtc_state->mode; >>> + int ret; >>> >>> DPU_DEBUG("[atomic_check:%d, \"%s\",%d,%d]\n", >>> phys_enc->hw_wb->idx, mode->name, mode->hdisplay, mode->vdisplay); >>> @@ -308,6 +309,12 @@ static int dpu_encoder_phys_wb_atomic_check( >>> return -EINVAL; >>> } >>> >>> + ret = drm_atomic_helper_check_wb_connector_state(conn_state->connector, conn_state->state); >>> + if (ret < 0) { >>> + DPU_DEBUG("wb check connector state failed ret = %d\n", ret); >> >> We already have a debug message in >> drm_atomic_helper_check_wb_connector_state(). Can we please drop this >> one? > > If you don't mind, I can just drop it while applying > Ack. Thank you. >> >>> + return ret; >>> + } >>> + >>> return 0; >>> } >>> >>> -- >>> 2.40.1 >>> >> >> >> -- >> With best wishes >> Dmitry > > >