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=1796318711; b=regPHIEYojsJWhLiiSMfFzl8Pe+ggDDhLDh5EqK3HsmOjh+MH8aCd5+MgFBynM+0BR4I KqV3GO2baG9YRrY8Vn4Wrol0vHw8Ia/YDvVQNjXsG9czw7d6nZy16SazjHywFXq0y+rWq Ahk5RNwMroKMAzACLo1DL98cWsgp2BrXGrAczHY0+Hc58PDGaDLfMwnq3Nn4FHZtrl1zj v0kizkIxdN6yZOyYLJ8mQRsB8TnhgxeosYcyMJ3BKGBOBx5HLgMBlIpOmg5psqBg2cEQD g8hnNpyGBH2uTIzf/x/mYEVhBnKOVc5bzYRmud7aAmZ6vDdrE8gbZUUAn9yV+KU9EjQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318711; 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=scb5p/zdv0JptLvNc0itWG+FitHl7HOlrBfyYB3PiBE=; b=O+V2LQthM3MvBDfN46TEQitUdcj5UFfLeeaD+iy/KDJox9O/FgY8LnuFjxFfuaPiFm9n 3i+QaUjDFJUUoxD/zUJxIuH5OVjEBrty+raKiTkKXJXrOh+oy7oXNfErJ/lj7xAV2Lm2d jwuJmPN+FumF5N+5bFbGoKc4Uvm4TIbwDWB61GNsoZOYrAs6P4lp5tYRDg+Qm2coNV+Bi PYhJSFy0sPBivMGpCKOmTJrPHL+pw7RqCjWono3w0PH0PE8WwgLKuKM46Wwsa0shU5LS1 Wv0O90Jy3VEbByXe9O7KgC5jN9QqM2EcSfXwSmyWj82TKctbzgnaqpzvUMpalzmgdTA== 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="Ec/s2ZRu"; 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 ACBFC606A322 for ; Thu, 3 Dec 2026 17:25:11 +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=Ec/s2ZRu Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5B741F00893; Thu, 3 Dec 2026 17:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796318711; bh=scb5p/zdv0JptLvNc0itWG+FitHl7HOlrBfyYB3PiBE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Ec/s2ZRubVa0BK0Wx2V8FZIHCuGpP3E8D06E9M74EAKU2V7Skeym/PzxEyRbZd20E htPUn69eBVigKwXPWbbQzNDHHQAVYyXeOgHuob8jZeZnZ48IEWRyze3vGS8HeQPvPI gyMKUhz//RLqKjWjWz5+jhF1mgYcy7vSxjFQr1Ptq5AdJ26XoPHYD5CrHGdfTs9ATK G71aDG8C2yg+4XmiGI5BIGMcm1FpNT3gGGXgftkpqXmmgzp6NvLIRgQbOlFn1yTAv7 VdPlzNmF89HpG395g0bzZ62Ka1RRdZk+aTY72PxMpnQevKhPLwll1LUvl7w9VmnVHA IFVSV6IBWBEgg== Message-ID: Date: Thu, 3 Dec 2026 11:25:10 -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: Mika Westerberg , =?UTF-8?Q?Achim_L=C3=B6bbert?= Cc: linux-usb@vger.kernel.org References: <4e9adf36-e10a-44d2-8dc4-562120784824@kernel.org> <20261203142832.GA953667@black.igk.intel.com> From: Mario Limonciello In-Reply-To: <20261203142832.GA953667@black.igk.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/3/26 08:28, Mika Westerberg wrote: > Hi, > > On Wed, Dec 02, 2026 at 09:40:42AM +0100, Achim Löbbert wrote: >> On Tuesday, 1. December 2026 20:59:30 CET Mario Limonciello wrote: >>> If it's working 100% of the time with just Mika's patch that sounds like >>> the preferred approach to me. >> >> Agreed. >> >>> Any remaining black screen issues sound like they would be caused by >>> userland then, no? >> >> After the console test I think so as well. >> >> Many thanks to Mika and you for your time, effort and expertise! > > Thanks for testing. I wonder if you can still give the below a go because I > noticed an issue with the latest changes in my tree on Intel at least. So > the below patch on top of my next branch here: > > https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git/log/?h=next > > Also it would be good if Mario could try on AMD as well just to make sure > this does not break them (should be same flow for all and I don't see why > it would break something but you never know). There is small side-effect > that DP tunnels may be created bit earlier but that should not matter. > > diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c > index 10fca534ff78..c27490b626c9 100644 > --- a/drivers/thunderbolt/tb.c > +++ b/drivers/thunderbolt/tb.c > @@ -3166,6 +3166,8 @@ static void tb_restore_children(struct tb_switch *sw) > if (tb_enable_tmu(sw)) > tb_sw_warn(sw, "failed to restore TMU configuration\n"); > > + tb_add_dp_resources(sw); > + > tb_switch_configuration_valid(sw); > > tb_switch_for_each_port(sw, port) { > @@ -3223,15 +3225,15 @@ static int tb_resume_noirq(struct tb *tb, bool hibernate) > tb_free_invalid_tunnels(tb); > tb_free_unplugged_children(tb->root_switch); > tb_free_unplugged_xdomains(tb->root_switch); > - tb_restore_children(tb->root_switch); > > if (hibernate) { > tb_disconnect_and_release_dp(tb); > - tb_add_dp_resources(tb->root_switch); > tb_switch_exit_redrive(tb->root_switch); > usb3_delay = true; > } > > + tb_restore_children(tb->root_switch); > + > /* Re-create our tunnels now */ > list_for_each_entry_safe(tunnel, n, &tcm->tunnel_list, list) { > /* Yeah; I don't expect this causes any problems for AMD. Can you send it to the list as a regular patch and CC dri-devel and amd-gfx@lists.freedesktop.org lists too? Display team can include it in promotion testing.