Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2292281rdb; Sun, 3 Dec 2023 10:15:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjFCR4adKd4omyKtfXcJyEAT5fg3YQW6tbo6DeRGVk9gSVQXXOYiHesrTUJ82yglvISiZ4 X-Received: by 2002:a05:6358:4194:b0:168:e737:6b25 with SMTP id w20-20020a056358419400b00168e7376b25mr3347229rwc.20.1701627356181; Sun, 03 Dec 2023 10:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701627356; cv=none; d=google.com; s=arc-20160816; b=DJsL1nVWhdo39m5nr4WBBwHIBt3keP4kfvMGMmiejU4yuXs/HvKgGOKResjh1vB/rE YhEa46Ez6ftSNEm4jFh1bf6PWxjybnjuPOCu5xGJFiw6C0w9etLdxVVjEsTawQSGdzrj U21xpZWro6/VrYtrFAF0+RK4/I1lgJjdnw/WZZHQqUcCdVkka1gcoJIAWoE5JZOmKf6r VhUAV8+vPDSTIBhDRplKBbsnAiU4GHlXbKlO6aC3BswuFqeZWIJrA0zmXr+KyK9j/F4I vYMi2iHdT6CvyD/bhhTsFP4i/blrpw/mMzWDnZRAF4uwrr6mPCBMUdvBZQZJVmo/fHbJ OPHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VBw8A5WuhAfyasORYk3sNHDucWPtvrzZdNlLhqgrg1E=; fh=rMmNvf+g30tM6NJUKNUF7mQVimGlkJUIV7eBOy6GTEE=; b=Wa+lJ0IRyCbwzGSDDu7qu1ux5NDKD8ksn4WttBjhTjGx3mmCLrzYWA4+7Q9ZBxO2e3 7ZzkGFh5ZSwYnyuc+If/l6M//QPgpC+TYSod0CmAGVGpcHW1rrGCXXRu5FZgieSD2m5U DsmwvzQqhrqwEJiJT7b1v1BAgpFD8hkeaenk5/7ik6Cf+h07PbWK3OOnGLt/31MoSUN+ 2oFO0jJhobKv+NBqXsPwcQInnaAYS9b9n6ZNNzEnVaKYu8RTxyRqwUw1ZRxVJJFbX3fN EHnpaaxMGa7Prov2xJ+CEt1TRKmqJf1M9HImdHsA+5RxW+yw8gGAGQJreiYh6vjgL7qy Yzww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=syukUXJK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id cp5-20020a056a00348500b006ce4d4d75e8si713737pfb.142.2023.12.03.10.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 10:15:56 -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 header.i=@linaro.org header.s=google header.b=syukUXJK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6355780834BA; Sun, 3 Dec 2023 10:15:20 -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 S233820AbjLCSPD (ORCPT + 99 others); Sun, 3 Dec 2023 13:15:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCSPB (ORCPT ); Sun, 3 Dec 2023 13:15:01 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38AFE7 for ; Sun, 3 Dec 2023 10:15:07 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-daf4f0e3a0fso1882553276.1 for ; Sun, 03 Dec 2023 10:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701627307; x=1702232107; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VBw8A5WuhAfyasORYk3sNHDucWPtvrzZdNlLhqgrg1E=; b=syukUXJKcpDNSqNjL3gh4qnnPlcUAt+jkf0fGSQAq2iNMp/CH+V+eIvlhMmelmCv+o c6V7WTnVHKfXdI+g3t1vYqYKznO1PYb/pESitDITsxV0z18+1cBM/PXZTY6lZ35n/4XP UdPuAf10WsAqYaWhTcKFs9hLVKGZmzwJSY8blZKdF+lueEWZ2pak3ZZxqewj/65siX/k RpBmfebJMznPakuVURqULZJYlj3h94fL8ZibvrZQ85OD93khokxZf3h0N0PophUiiy0E jyaDIC9XebJO/rbUGHpOAuLTKgdVgB0K2guWGZsynoqqxKdq/+bTadjxdnfHejmCI+A6 mK4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701627307; x=1702232107; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VBw8A5WuhAfyasORYk3sNHDucWPtvrzZdNlLhqgrg1E=; b=CVKcrekzAB08HbKrUeh4k0HZ11jp0iUxrGV5HL3zaEeZIlGLMD8pc3VkmQMgFn6aak k7t7Lifcj58LOX9e2Q5jxRkL5Psp69L6/ScRzXZZ9jsxSws3J6SHVoWYQTL5+RqGH4HJ bpijFVP4uSFXo3VM/EUe5JBBKPq6owHJNQXpFXZ01Orei0hxrHu64zaOWUCD1+WUs9mY xqZ3IloRRTzgETql92oYDPFxB8pggW2LpRkofcXqfMgq+s4Sb94hVx1DbIYy5UVqOrz7 bpkF0cDbn5GBoN4kn8RUVxM2GgqDgKmsxGYA0Df/t3EYyhyyLICKtTp8XmXzkRGuL6ds C27A== X-Gm-Message-State: AOJu0YxiKxDnd+VgoUUxw2JjmQqgIT1U4kzNTD39XFU6c/7hd5aa3wYE J2f/wSOsHA2PZ+oDRLllbN5XpzmkxsSxENxv67d92Q== X-Received: by 2002:a05:690c:3381:b0:5d6:c347:4b11 with SMTP id fl1-20020a05690c338100b005d6c3474b11mr1829719ywb.42.1701627307031; Sun, 03 Dec 2023 10:15:07 -0800 (PST) MIME-Version: 1.0 References: <20230920201358.27597-1-quic_abhinavk@quicinc.com> <20231203142441.GA26644@pendragon.ideasonboard.com> In-Reply-To: <20231203142441.GA26644@pendragon.ideasonboard.com> From: Dmitry Baryshkov Date: Sun, 3 Dec 2023 20:14:56 +0200 Message-ID: Subject: Re: [Freedreno] [PATCH] drm: improve the documentation of connector hpd ops To: Laurent Pinchart Cc: Abhinav Kumar , jani.nikula@linux.intel.com, Thomas Zimmermann , freedreno@lists.freedesktop.org, andersson@kernel.org, Maarten Lankhorst , linux-kernel@vger.kernel.org, Maxime Ripard , quic_parellan@quicinc.com, dri-devel@lists.freedesktop.org, Daniel Vetter , quic_jesszhan@quicinc.com, David Airlie Content-Type: text/plain; charset="UTF-8" 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 10:15:20 -0800 (PST) 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. > > > > > 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 -- With best wishes Dmitry