ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: Michael Klein <michael@fossekall.de>
To: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	regressions@lists.linux.dev
Subject: Re: [REGRESSION] [BISECTED] drm/sun4i: hdmi: No HDMI output with BananaPI M1 on 6.9
Date: Mon, 2 Jun 2025 20:40:19 +0200	[thread overview]
Message-ID: <aD3wE_mkfYA2XqA6@a98shuttle.de> (raw)
In-Reply-To: <20250602-psychedelic-purring-poodle-900a5b@houat>

On Mon, Jun 02, 2025 at 11:55:44AM +0200, Maxime Ripard wrote:
>On Mon, May 26, 2025 at 11:13:01PM +0200, Michael wrote:
>> On Mon, May 26, 2025 at 07:30:35PM +0200, Maxime Ripard wrote:
>> > On Mon, May 12, 2025 at 10:27:06PM +0200, Michael wrote:
>> > > with v6.9 and later there is no output on the BananaPI HDMI connector.
>> > >
>> > > I have bisected the issue to the following commit:
>> > >
>> > >   358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid")
>> > >
>> > > With this patch, sun4i_hdmi_connector_clock_valid() is occasionally called
>> > > with clock=0, causing the function to return MODE_NOCLOCK.
>> > > In the old sun4i_hdmi_mode_valid() before the patch, mode->clock is
>> > > always!=0, maybe that gives someone a hint.
>> >
>> > This doesn't make sense to me, if only because the two callers of
>> > tmds_char_rate_valid (hdmi_compute_clock and
>> > drm_hdmi_connector_mode_valid) have, right before calling it, checks to
>> > make sure the clock rate isn't 0, and would return MODE_ERROR or EINVAL
>> > in such a case.
>> >
>> > https://elixir.bootlin.com/linux/v6.15/source/drivers/gpu/drm/display/drm_hdmi_state_helper.c#L234
>> > https://elixir.bootlin.com/linux/v6.15/source/drivers/gpu/drm/display/drm_hdmi_state_helper.c#L553
>>
>> Before 6.14, sun4i_hdmi_connector_clock_valid() was also called from
>> sun4i_hdmi_connector_atomic_check()...
>>
>> > Do you have some logs (with dri.devel=0xff)? Does it happen with 6.15 as
>> > well?
>>
>> It does not happen with 6.15, as it was fixed in 6.14 with 84e541b1e58e
>> ("drm/sun4i: use drm_atomic_helper_connector_hdmi_check()").
>
>Then we might still need to backport that patch.
>
>Does applying it to 6.9 alone makes it work, or do you need some additional ones (I'm thinking of
>ae048fc4f96d in particular, which in turn would require 47368ab437fd)

No way to apply this to anything 6.9. The closest I can get it into is 
6.11, which requires both ae048fc4f96d and 47368ab437fd (with one 
trivial conflict) to make it work. Anthing earlier lacks the entire HDMI 
connector framework.

-- 
Michael

  reply	other threads:[~2025-06-02 18:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-12 20:27 [REGRESSION] [BISECTED] drm/sun4i: hdmi: No HDMI output with BananaPI M1 on 6.9 Michael
2025-05-26 16:56 ` Michael Klein
2025-05-26 17:30 ` Maxime Ripard
2025-05-26 21:13   ` Michael
2025-06-02  9:55     ` Maxime Ripard
2025-06-02 18:40       ` Michael Klein [this message]
2025-06-02 20:22         ` Michael Klein

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=aD3wE_mkfYA2XqA6@a98shuttle.de \
    --to=michael@fossekall.de \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=regressions@lists.linux.dev \
    --cc=samuel@sholland.org \
    --cc=tzimmermann@suse.de \
    --cc=wens@csie.org \
    /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