From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136807; b=v3zZkMl9I3ieD7KAcLlwlYpkW3TnSrNFh84WXHMz0BwNXBD47j3AwcfFI9jIuTqDVlGf M9SVIUWCotaH28hldQ4E4w/usL0nX0zUGIm6z5bBG6a5P2QeZIyIkM7tdDltE71VCteS5 J4eLhBb21laT6LvEagzKazTMF665A9jnby8hW3weRX6gfnLG9C48U/vxBHVDENv3UaDK1 511iknUgUaG2XnmOsM6qcwBxSoBKmEmnRvBWRb+uhnlKMH4kOPd8+iC3i4+jAFGELu0Dh OXewGRv2a/4judzKHKt9sJiB9tCKDcwYNSPtFauX+Yt1P5kuF8YT80+UVXO3vGJ9oNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136807; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=S/uIwgNFn8isYcWtOnXH3nVhRYUyZ5duZnD9ckL9tRE=; b=p+W7fjBwupFKzkW4E6kX9MV2iBLBjZAupTuOLynzvdTICtoXDABH7fir/99s2aFZe8pp Fu0pOucHQIUDhAyiCNsW8woRew8kR8xpieSlxUNvA+ojvlNC3P27gbSJOZd69Vt0ixOBX ZQ4sE4GXSiKk+M46olBQl+dvnp90HSsTW1ZMgnVAJ1UGXhShR+LwEGwWKyYuoY0t6XtjD YFnbKVs292yvUcPF9W8k03j7sUWfrh685IjHxQBkkCiz0FrwSjkyQeeDcmEGUqeSzRxTG 3hZMb9mxBJnR7oU3OirGDCJ6i4gSVq7IVYsCcvQ0ufXzN4MxoOyiAHJfNTPwpe5FckQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=o1yWhVxU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94C77606A320 for ; Tue, 1 Dec 2026 14:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=o1yWhVxU Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADCAF1F00898; Tue, 1 Dec 2026 14:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796136806; bh=S/uIwgNFn8isYcWtOnXH3nVhRYUyZ5duZnD9ckL9tRE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=o1yWhVxUk2CZ5oXftsQkIzu0AD7E+I0vWnlv/CGCweXCZ+iQNaJttSEhKW1IxMvp9 9/Da8S7ZDuBedH4bGfMv5b8ioCQNuzSC/LwRcl7r2CBhFEu6wpCNVmUKF3DywXL61Z nCcoV7biJKJ4O/iix9anP/cr89zo80b0D5qvlx9dObsw3jMIcGREjVsQAoMI0RsaXu S9+lKvtKuN29+cJu35HU69Y1uYJSxNUIeF9g/5ED8f1GUUs/KiCwR1JgfZr8RQtPNu xezFqwHtJQnjRwsBCtfUAXYNloHqrr2lquBQnbgDFjbxy0LhaZKLdM5eaBMk5qw1s3 GJyRSFDD67xMg== Message-ID: <1a3e6fcd-e495-4390-959b-2f843a1c96ea@kernel.org> Date: Tue, 1 Dec 2026 08:53:25 -0600 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [REGRESSION/BUG] thunderbolt: ASM4242 fails to restore DP tunnel after resume on Ryzen 8700G (7.4-rc4) Content-Language: en-US To: =?UTF-8?Q?Achim_L=C3=B6bbert?= , Mika Westerberg Cc: linux-usb@vger.kernel.org References: <23779328-dbcf-4e22-a6c0-3ad79a367b9d@kernel.org> <65josc0HRlek_rk8jm9-zA@gmx.de> From: Mario Limonciello In-Reply-To: <65josc0HRlek_rk8jm9-zA@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.