From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Luca Ceresoli <luca.ceresoli@bootlin.com>,
Daniel Stone <daniel@fooishbar.org>,
Hans Verkuil <hverkuil+cisco@kernel.org>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
kernel@collabora.com, Daniel Stone <daniels@collabora.com>
Subject: Re: [PATCH v6 0/4] Add SCDC information to connector debugfs
Date: Tue, 16 Jun 2026 14:04:13 +0200 [thread overview]
Message-ID: <GWBGXfaiTF64ibliB2zCRg@collabora.com> (raw)
In-Reply-To: <20260615-mature-frog-of-certainty-d05f99@houat>
On Monday, 15 June 2026 18:33:11 Central European Summer Time Maxime Ripard wrote:
> On Mon, Jun 15, 2026 at 10:07:02AM +0200, Nicolas Frattaroli wrote:
> > On Saturday, 13 June 2026 08:57:29 Central European Summer Time Hans Verkuil wrote:
> > > Hi Nicolas,
> > >
> > > On 11/06/2026 14:57, Nicolas Frattaroli wrote:
> > > > HDMI uses the DDC I2C bus for communicating various bits of link status
> > > > out of band with the actual HDMI video signal. This information can be
> > > > useful for debugging issues like questionable cables sabotaged by feline
> > > > teeth, Enthusiast Grade cables made of cow fencing wire, and other such
> > > > problems that ruin one's media viewing plans.
> > > >
> > > > Consequently, this series exposes various bits of pertinent information
> > > > from the SCDC protocol in an HDMI connector's debugfs. To continually
> > > > poll the link status, userspace can poll the debugfs file.
> > >
> > > Something is not quite right: I've been testing this series with my i915
> > > based laptop with HDMI connector, and I never see the scdc_status file.
> > > And that's because CONFIG_DRM_BRIDGE_CONNECTOR is not set for my configuration.
> >
> > That's to be expected. i915 does not use bridge connectors, and neither
> > does amdgpu iirc. I am working on embedded boards that do use bridge
> > connectors, along with all the rest of the HDMI state helpers.
> >
> > Implementing something new in DRM usually involves having to triplicate
> > certain parts of the work in order to have i915 and amdgpu behave the
> > same as everyone else.
> >
> > > So I think you are creating the debugfs entry in the wrong place.
> >
> > I can't create it for all drm_connectors as Maxime suggested due to the
> > cyclical dependency that would create. If someone has any idea on how
> > to break that dependency cycle, I'm open to suggestions.
>
> Back when we introduce the audio support, we floated the idea to
> de-midlayer this and turn it into a debugfs_init helper. We don't have a
> lot of users yet so it might be the best time to do so, and would solve
> your issue.
I agree and will be happy to do that. I need some more concrete info
though on what "de-midlayer" means here. From what I can tell, the
core problem is that drm_connector.c directly calls into
drm_debugfs_connector_add of drm_debugfs.c, which if it did also
do a direct call into drm_scdc_helper.c would mean drm_scdc_helper.c
needs drm_connector.c but drm_connector.c needs drm_scdc_helper.c.
So I guess the de-midlayer and turn it into helper part is that
drm_connector does an indirect call to a function pointer instead,
which is default-filled at runtime with the helper debugfs_init
function? I don't know if we can then do this by default for all
drivers in drm_connector.c or if it needs to be done per-driver
like some of the other helpers. If the latter, then we don't
really gain much over what I'm doing with bridge connector.
The other maybe less intrusive change is that
drm_scdc_debugfs_init and scdc_status_fops travels to drm_debugfs.c,
while the actual implementation of the read op remains in
drm_scdc_helper.c. I think that would solve it without a big refactor?
Kind regards,
Nicolas Frattaroli
>
> Maxime
>
next prev parent reply other threads:[~2026-06-16 12:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 12:57 Nicolas Frattaroli
2026-06-11 12:57 ` [PATCH v6 1/4] drm/scdc-helper: Don't use ssize_t return type for scdc_read/write Nicolas Frattaroli
2026-06-11 12:57 ` [PATCH v6 2/4] drm/scdc-helper: Add scdc_status debugfs entry Nicolas Frattaroli
2026-06-11 12:57 ` [PATCH v6 3/4] drm/display: bridge_connector: init scdc debugfs for HDMI Nicolas Frattaroli
2026-06-11 12:58 ` [PATCH v6 4/4] drm/scdc-helper: Implement parsing and printing HDMI 2.1 fields Nicolas Frattaroli
2026-06-13 6:57 ` [PATCH v6 0/4] Add SCDC information to connector debugfs Hans Verkuil
2026-06-15 8:07 ` Nicolas Frattaroli
2026-06-15 16:33 ` Maxime Ripard
2026-06-16 12:04 ` Nicolas Frattaroli [this message]
2026-06-25 16:19 ` Maxime Ripard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=GWBGXfaiTF64ibliB2zCRg@collabora.com \
--to=nicolas.frattaroli@collabora.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=daniel@fooishbar.org \
--cc=daniels@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil+cisco@kernel.org \
--cc=jani.nikula@linux.intel.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kernel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome