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=1796146586; b=q02j2DfrIsxFFojE4hf29KWk3+b1Sd3jhltplmnzjKQBijHYk8TsWoLOoXgEmHY7LeMu 7CLvA+yPMaZAN9FvLxhTAatkxXahHu/3UJawJRkMgzsUY/8KYsaakb9ngWmFcQ3FYjogE NuYBy0WHDvpbrhwKokQGBMhip5zbNoXIKwVuHX0fU4q4eYPg1hqFu4r4VNJJhc2HGQNZH 8ha0oONSFOAP+TsgHH1l2964pbuTtveZ4+Xd6uECFOjSlpHjQh6itc1xP/SHzuhQcHnTo Gb16JFkIztqSXoik4zjnFDrRv0SouQSl0LsZ/wvcpQm3r32VIx/1dEk4wgysIyPqeOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796146586; 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=gzpVoB9oolbZJYy9qA69uDybpPh9QdxTx/OKctPGvQg=; b=swFDOgPMSUuGPbbLhEh/FlbPgFTfuJaKCX0Asfn6NdlDO9oKUWwddLYh6BLHDQitNYiq k3dURXsnuhFA0XvUCbB5T/nJjRgh6umQPdvu4yg86l8Op5TjucNowoLMpk4h3zfmcsck/ q3rV7kX9DwJCUxff0dPI0oF2iFQIXLeLSvErLBuLHyEmelJuNN7Is7smG0amzeeW/d0u9 I79vCiJMFg8vQOYc/Ekh/JujOP0/rPx2xecylKA02Lf2PDrf6bONkVEzpmsmP/klFVHex Hf3zeAfcTXaQ7XnTlcSWzdWneeDV98yBRb04nDKiCHfjwHAmaQqt2aP3ZJnM1n+ltAg== 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="j//RD/FY"; 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 2B2FC606A329 for ; Tue, 1 Dec 2026 17:36:25 +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=j//RD/FY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AAFA1F00897; Tue, 1 Dec 2026 17:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796146585; bh=gzpVoB9oolbZJYy9qA69uDybpPh9QdxTx/OKctPGvQg=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=j//RD/FYAvcdiln7Ftd/1zgE8AAdQgXCVNS+wlLk42lqIRAScdkdP9dY273Wv2g8V CijMM3/fS/chsV+hFIWluEdO7Q+mmXafqjJ+OvJFQGDgSm39KMapNNECLxyJD26O38 2fKxNLzGKtiMPSWxob6MLQCWhvxbKOPwBXuM6AP6/wcrW10NU5ovJMNCD6GQviKIyq 4Af5plxd1tOWXvd84YY8lbfjFvDyf9Qa+9NRkYznrhek/arl3em5OMqidSrMxM6blQ uJ/oIMxsKGV7famsB+4Yw7IZYQi2bqlHniwlm+s4kQu65sBUClxs3GzVFce3pLS6Cm 5YFWF3fRlkjrw== Message-ID: <286e5547-70f8-4275-9777-1a723dbcb388@kernel.org> Date: Tue, 1 Dec 2026 11:36:24 -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: <65josc0HRlek_rk8jm9-zA@gmx.de> <1a3e6fcd-e495-4390-959b-2f843a1c96ea@kernel.org> From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/1/26 11:24, Achim Löbbert wrote: > On Tuesday, 1. December 2026 15:53:25 CET Mario Limonciello wrote: >> 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. > > Good idea: service display-manager (sddm/wayland) deleted from run-level > default, reboot, with everything else unchanged. Text mode VTs only, no GUI. > > To enter sleep, on the console this was executed 5 times: > $ echo mem | sudo tee /sys/power/state > wait until U3225QE enters power saving state, then press a key to wake up: > > Text mode console screen comes up immediately, turns black exactly once for 2 > seconds each time, then comes up solid without any further issues. > > 2 more times 'sudo tee /sys/power/state' printed "device or resource busy" > and sleep mode S3 was not entered, no clue why. But wanted to mention in case > there is something peculiar in the log. > > Log attached with 5 suspend/resume cycles OK so now with compositor out of the picture it sounds like what I would expect happens. Basically it forces the plug event after resume and everything works fine. I don't think the patch as I shared it is what we should be putting in. The surprising part to me is that it was visible before the the black screen. Is this consistent every single time? Or just some cycles it happens? With just Mika's inline patch and no compositor/userspace running is it a failure rate when there is a black screen vs not?