From: Mario Limonciello <superm1@kernel.org>
To: "Achim Löbbert" <aloebbert@gmx.de>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [REGRESSION/BUG] thunderbolt: ASM4242 fails to restore DP tunnel after resume on Ryzen 8700G (7.4-rc4)
Date: Tue, 1 Dec 2026 08:53:25 -0600 [thread overview]
Message-ID: <1a3e6fcd-e495-4390-959b-2f843a1c96ea@kernel.org> (raw)
In-Reply-To: <65josc0HRlek_rk8jm9-zA@gmx.de>
On 12/1/26 08:45, Achim Löbbert wrote:
> Hi Mario,
>
> On Tuesday, 1. December 2026 05:29:52 CET Mario Limonciello wrote:
> [...]
>> Can you have a try with this patch to force replug events? I think it
>> should help on top of Mika's other inline patch. Whether it should be a
>> quirk or some other form can be up for discussion. Let's see if the
>> concept works.
>
> Thanks for the patch and the bug description, which summarizes it very well.
> I applied the patch together with Mika's patch against 7.4-rc5 and rebuilt.
> I also deactivated my hook script using
>
> sudo chmod -x /etc/elogind/system-sleep/99-bolt-wake.sh
>
> and added 'log_buf_len=1M' on kernel command line to log more sleep cycles.
>
> Attached dmesg log now shows two suspend/resume cycles with following results:
>
> #1: PC resumes after 1st keypress and remote ssh to it works. U3225QE wakes up
> from powersaving, but a screen image is shown only after another 2nd keypress.
> Seen this before with my hook script, and that's what the for loop is for: to
> prevent to return to elogind too early before DP-2 is actually connected.
>
> #2: PC resumes, ssh works again, screen comes up from power saving, but stays
> black again, unfortunately. But after waiting several (>10) minutes, another
> keypress might still turn it on and unlock screen is displayed.
>
> Another observation: with the latest patches, DP-2 status now always shows
> connected, even in case of black screen, for which it showed disconnected
> before the patch.
> $ for i in /sys/class/drm/card0-DP-*/status; do echo "$i: $(cat $i)"; done
> /sys/class/drm/card0-DP-1/status: disconnected
> /sys/class/drm/card0-DP-2/status: connected
> /sys/class/drm/card0-DP-3/status: disconnected
> /sys/class/drm/card0-DP-4/status: disconnected
> /sys/class/drm/card0-DP-5/status: disconnected
> /sys/class/drm/card0-DP-6/status: disconnected
>
> Confusing results. Certainly some race condition is involved.
> Would be happy to assist with further testing.
>
> BR, Achim
Confusing results indeed. But I think this is at least the right direction.
To rule out a race with a compositor; can you stop all userspace that
holds DRM master and work from a VT while testing?
Then the kernel should be lighting up all the displays and we shouldn't
have to worry about anything induced by races.
next prev parent reply other threads:[~2026-12-01 14:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:10 [REGRESSION/BUG] thunderbolt: ASM4242 fails to restore DP tunnel after resume on Ryzen 8700G (7.4-rc4) Achim Löbbert
2026-11-26 7:31 ` Mika Westerberg
2026-11-26 8:53 ` Achim Löbbert
2026-11-26 12:27 ` Mika Westerberg
2026-11-26 16:59 ` Achim Löbbert
2026-11-27 5:35 ` Mika Westerberg
2026-11-27 18:13 ` Achim Löbbert
2026-11-29 3:36 ` Mario Limonciello
2026-11-30 19:16 ` Achim Löbbert
2026-12-01 4:29 ` Mario Limonciello
2026-12-01 14:45 ` Achim Löbbert
2026-12-01 14:53 ` Mario Limonciello [this message]
2026-12-01 17:24 ` Achim Löbbert
2026-12-01 17:36 ` Mario Limonciello
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=1a3e6fcd-e495-4390-959b-2f843a1c96ea@kernel.org \
--to=superm1@kernel.org \
--cc=aloebbert@gmx.de \
--cc=linux-usb@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/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