Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2875370rdb; Mon, 4 Dec 2023 09:46:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjJXDm9XSm8E0LXVixfnDE+9lcMlWMvXzPR+JA8feML9j4a7d2R8xiPpLZbi04M9mIjTc/ X-Received: by 2002:a17:90b:4a10:b0:286:6cc0:8854 with SMTP id kk16-20020a17090b4a1000b002866cc08854mr2086108pjb.65.1701711971989; Mon, 04 Dec 2023 09:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701711971; cv=none; d=google.com; s=arc-20160816; b=I668yQqpXVnccUwQ6h3E0+MXfZUqoaDeeBJXWLuTRYvKI5vfZ4KvRh4BCiHIEk8eGb VmyxQLoSNKhFITV6C10Jfkn1nYPrxYMaBBv0eLiKv3vG6B6wSYDoTKiYoMJbZmSLGHPb Lr7pgdFTx3hm7+ARydMbr/79JOp0hRRLSP7FNl4QbP1SyrgMtjOXtXW8WaHFU4wE2EAN E2bO8D8vo6JMs3ZhcMRGUYVNCsgfCWAUqvqYI4zseKWD5tkfOGqqhmj4pcgdh1QmpW2C jOr+nppnw7eRPTUmi4QPX4U2H0FtzsLGSWYieyS2/+vR1hfPw/7YXxekaRSqyx+Xq6oD F4yg== 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=VXEkGrebY6EpaoRxkLmNRIq8U7rbzpMW/SZKy6MWvnw=; fh=jFzD0n0T4mKTYMsKQmIcaPdyAhChXso6SoPxZHs5KQs=; b=qCOnrznHe/GOTRfJSP0Z+iCsivJDDC82ONKysWDehNDM07jBNpVzKNl68K9x6HMS+z k/8uGjfz6hup8fvlaQTVsRA74gBdJntr4K3fgMY+0Gw+U2XiwMkG1i1yb9E2PW4PvtXa T7yb2X4o5H1Z7WbcboZxSLhHj/RSCZiiIapuP9swxT6D7gYRQANYkpbo7IgXswCbK5F1 U8IYxpUfbHTaeQIi17Rs0XoGdzeBx+V2FSlv+pIYiMa2ZUJHuTybXazy/fFoRoOmoCqx eUbx1BcroowSwMnNrgnIjKUW3wloJ5g9/WsOeLY1b/VI5mnyXWJowD3W2zHJ+zrcvpMG 1dxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aEoYVP5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w1-20020a17090aea0100b002865a495b84si5763094pjy.183.2023.12.04.09.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:46:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aEoYVP5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 22F54806990B; Mon, 4 Dec 2023 09:46:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbjLDRpq (ORCPT + 99 others); Mon, 4 Dec 2023 12:45:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjLDRpn (ORCPT ); Mon, 4 Dec 2023 12:45:43 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5022FDF for ; Mon, 4 Dec 2023 09:45:50 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4G0R29019293; Mon, 4 Dec 2023 17:45:22 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=VXEkGrebY6EpaoRxkLmNRIq8U7rbzpMW/SZKy6MWvnw=; b=aEoYVP5L4QFfqM7inlb02XdDHBsP+ORGDABZDtgJZSwf5A7Cn8J+C4b/4A1NzgcAyGax xe8RKr6j9FCSaVsGSM6sUB/h7Mx/OfhBGv/BGnb77OZE6IZi9uFm6buzawtQRGy38HTv w5w2uGY8pmLu4Ne7iDzszyUiuk55aEXRjQhqVu+Hu9QIj9/2isDn2gKVIY1V7zerIZf3 UZtqnE0dijP0QFDkYpp5hRP2LhTyuggbfqSflJovy5mOa9YjwULq3ziq2DsODXkEeQgp he+BPCdonISPfVhlcBGDqmK/h52D8wS/DSmbKGU60MU1444mNChBdcjpTq5vvmpGMyfZ dg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usdf7h3wb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 17:45:22 +0000 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 3B4HjKI2004582 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Dec 2023 17:45:20 GMT Received: from [10.110.73.134] (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; Mon, 4 Dec 2023 09:45:20 -0800 Message-ID: <4a2d6fb2-e3b5-dd5d-7a66-d514e091eb41@quicinc.com> Date: Mon, 4 Dec 2023 09:45:19 -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: [Freedreno] [PATCH] drm: improve the documentation of connector hpd ops Content-Language: en-US To: Dmitry Baryshkov , Laurent Pinchart CC: , Thomas Zimmermann , , , Maarten Lankhorst , , "Maxime Ripard" , , , Daniel Vetter , , David Airlie References: <20230920201358.27597-1-quic_abhinavk@quicinc.com> <20231203142441.GA26644@pendragon.ideasonboard.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: EkHT7SJ4frOUXAXSx2l67_zfmBQsrdaS X-Proofpoint-GUID: EkHT7SJ4frOUXAXSx2l67_zfmBQsrdaS 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-04_17,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 spamscore=0 clxscore=1011 adultscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040137 X-Spam-Status: No, score=-5.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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 09:46:09 -0800 (PST) On 12/3/2023 10:14 AM, Dmitry Baryshkov wrote: > On Sun, 3 Dec 2023 at 16:24, Laurent Pinchart > wrote: >> >> Hi Abhinav, >> >> Thank you for the patch (and thank to Dmitry for pinging me on IRC, this >> patch got burried in my inbox). >> >> On Wed, Sep 20, 2023 at 01:13:58PM -0700, Abhinav Kumar wrote: >>> While making the changes in [1], it was noted that the documentation >>> of the enable_hpd() and disable_hpd() does not make it clear that >>> these ops should not try to do hpd state maintenance and should only >>> attempt to enable/disable hpd related hardware for the connector. >> >> s/attempt to // > > I can probably fix this while applying the patch. > Thank you Laurent and Dmitry. >> >>> >>> The state management of these calls to make sure these calls are >>> balanced is handled by the DRM core and we should keep it that way >>> to minimize the overhead in the drivers which implement these ops. >>> >>> [1]: https://patchwork.freedesktop.org/patch/558387/ >>> >> >> You could add a >> >> Suggested-by: Laurent Pinchart >> >>> Signed-off-by: Abhinav Kumar >> >> Reviewed-by: Laurent Pinchart >> >>> --- >>> include/drm/drm_modeset_helper_vtables.h | 10 ++++++++++ >>> 1 file changed, 10 insertions(+) >>> >>> diff --git a/include/drm/drm_modeset_helper_vtables.h b/include/drm/drm_modeset_helper_vtables.h >>> index e3c3ac615909..a33cf7488737 100644 >>> --- a/include/drm/drm_modeset_helper_vtables.h >>> +++ b/include/drm/drm_modeset_helper_vtables.h >>> @@ -1154,6 +1154,11 @@ struct drm_connector_helper_funcs { >>> * This operation is optional. >>> * >>> * This callback is used by the drm_kms_helper_poll_enable() helpers. >>> + * >>> + * This operation does not need to perform any hpd state tracking as >>> + * the DRM core handles that maintenance and ensures the calls to enable >>> + * and disable hpd are balanced. >>> + * >>> */ >>> void (*enable_hpd)(struct drm_connector *connector); >>> >>> @@ -1165,6 +1170,11 @@ struct drm_connector_helper_funcs { >>> * This operation is optional. >>> * >>> * This callback is used by the drm_kms_helper_poll_disable() helpers. >>> + * >>> + * This operation does not need to perform any hpd state tracking as >>> + * the DRM core handles that maintenance and ensures the calls to enable >>> + * and disable hpd are balanced. >>> + * >>> */ >>> void (*disable_hpd)(struct drm_connector *connector); >>> }; >> >> -- >> Regards, >> >> Laurent Pinchart > > >