Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2189971rdb; Sun, 3 Dec 2023 06:24:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwd0YbQyuFXfFvAvxMjmYi7/bzGP3t9sRkj7MCL2EnlWqdyZZEgOltkMYZicZ8Bn7OG5mc X-Received: by 2002:a05:6a20:12c3:b0:18f:97c:824a with SMTP id v3-20020a056a2012c300b0018f097c824amr890942pzg.84.1701613495503; Sun, 03 Dec 2023 06:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701613495; cv=none; d=google.com; s=arc-20160816; b=l2D/hQxWzU5RAOn3LriOZloX2+BE5sPAREqmQnesJJ+Akzvqy0YF5LstuqAndKUwNo VPlU5MMWTxKOMCcogiNXaGARUNiWnc6qjsY9zYHX1/FmTJWIqnblQGf+CHh7BpMvsjvA fGE7t50Y/3+et1F3cwDlGAe5aCepK/N8xemvt2pSY9jYqFMNuBVhJTV1UBkxcPQj9RYS 5t8q3tYr3vx9M+Op3jm/xEdx5P96st7ThYo9CQjdcYrABuXAJXtgZPn8RXyllFhdCgcE neurU181Cz+gbxhRjxFIAD+Rh4D9As2U9sRqShCi+o83rijSxFxHcMvVcvQXpVBMMC8H Pwfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VaQ5MoyTE9Hqd8hakm9Bj/LnFtdFQva/kehEMMAjVGs=; fh=v657I6DJ6flPy+DCzRupX2CX5TETnSWx9jL6NaRQywU=; b=ZN+4K+WfavVNVt0/tawdf+KGfdNSTMIM9tCxOggFRRFSdn29IImhnShbAO2w8q2arF Tjd9Pbp/3TJw/QZFaB7z2dpAl0ByXznDPn7uj0OZ0RzqpIEvEEPLnFzrEo2bslmspzZ2 wlLRl9XEJl01WG//bgpKT/GVSZVW0NmcvEf9kS0Ia7VrOhkUCnHiYrhDGDYyQstQhqXi NhVOz5LGLpRup7IBuH+huquB4A5g1atcHmdF8Z+oiBn+BAys1uhV9MwplKXCWmWm/SdB 1lkopW0AmkgZNxaGObKsahWdDXuuAY4fqAKpOrDWsIPqFGBOTODD8RGcsa5MJbham2Ts ialA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="YF8/ZEIU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b7-20020a655cc7000000b005b958401e4fsi6524063pgt.418.2023.12.03.06.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 06:24:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="YF8/ZEIU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A01458041EC7; Sun, 3 Dec 2023 06:24:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233481AbjLCOYc (ORCPT + 99 others); Sun, 3 Dec 2023 09:24:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCOYb (ORCPT ); Sun, 3 Dec 2023 09:24:31 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A2DDFA for ; Sun, 3 Dec 2023 06:24:37 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 171E525A; Sun, 3 Dec 2023 15:23:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701613436; bh=tHh/dUnJ5r4RBftwQVK/y6yde5Na2FuFMRERe2LbEBs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YF8/ZEIUYW4zMjjqiGudkdTkM19WuEZQS+8d25SvHsQC7i2RQ88mLNEbPe2WCpeVs nuGOcGfylY72p+A0bmNhMeETIpVwubqqvAYAfvdLlz0eE54RmQPpW/VrkwkTTDLhzB xCfYCazK5QjAALujo4Hvi8Iwl9tMZd1WfZxFBlJs= Date: Sun, 3 Dec 2023 16:24:41 +0200 From: Laurent Pinchart To: Abhinav Kumar Cc: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , freedreno@lists.freedesktop.org, quic_jesszhan@quicinc.com, quic_parellan@quicinc.com, andersson@kernel.org, jani.nikula@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: improve the documentation of connector hpd ops Message-ID: <20231203142441.GA26644@pendragon.ideasonboard.com> References: <20230920201358.27597-1-quic_abhinavk@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230920201358.27597-1-quic_abhinavk@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 pete.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 (pete.vger.email [0.0.0.0]); Sun, 03 Dec 2023 06:24:52 -0800 (PST) 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 // > > 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