From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796308115; b=oVc15HXFyN/OrR3d8UGEY/W5qippaKoi+IMOZaxD/zq3E8sjveyZQJN5zfmGvk9Tgrcd SzxeyCqu1us24MSeq6IUYIdNzoE82zx3P5MAZv0BoLAV7Oe1YzvIQnX5/xnQ/2yulNrlk VGawZ3wAIUN/0VPDUAsdsB+C8Z3aBU1GTu0fHwSSTFJ2crUxd2cngdxAc5A182SRhZwKB tb2p7v8nnooSUhwYJPeXFtilDx4YsQCs8MHb7dDzC6VyPmCVwnfM/5Ts6h8eyhxrqLzX6 oKD9WYPoM/bu3nX/qIDfm4tIDJte0lJvVJzjL0iIzGQzWqyrmARi+Zaowvk83iEi2uQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796308115; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=tyE3Exk0ZsarKrVUQI3qDDgDmFlSYFKBdyBlvXDT4sw=; b=ZqxwbkvbU78FEK8E+C5fnGsaoNuFclCKzyyJpZoX+Hgxk8iyFNNTIa2+l2XlZx0HTuVc zFaKgo/5yOfs1XfZHWyzCISCtjXfiqFcZpR+26nrYMEjvjyRcIREJi0pvVNhMv/lRRE3T hWDq9hv+vRQdrTBZW4akiK6vUSspDIvsZ+vBUJrFM5Q0/+zG69cxtLoLMXIoHI7afeBtR olUcybbUSoWyVf3dX7mPD8CrMJu50vCiLBNZngB2Q090elU/oLXRW9NhGQ8a9rmiFY8Z5 X14d3LrGyO2s98Yum6keH388hZ74OS9u/+8X8HN2hN3auR7rKCXdL+/RyVFoyv01zDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Byfq7PKh; arc=none smtp.remote-ip=192.198.163.18 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 979D6606A32F for ; Thu, 3 Dec 2026 14:28:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 979D6606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Byfq7PKh DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796308115; x=1827844115; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=tyE3Exk0ZsarKrVUQI3qDDgDmFlSYFKBdyBlvXDT4sw=; b=Byfq7PKhZx1miUKfgnvQyY/TF7vqlTm2nG68KCVTyL5PTBEYBoi5FKMe emgx20gK2iTgTc5PegX8lWny9Qi7py7IE6L40U36tAfakLYP8neXcJHKE GMEkgsvGQlH4x0Eg9ENKWhpgYF4nB+BcZtT66cnMqvwUO3S0YRf4qmP9c d/Begja1+dVpcQiN0/7l0U3/ri3KX5WLGjXG5UIUsuupUfjHioVxgokG+ Aqpo39zWeyjK/V/y21bUFe7v9uMgkCdZ1kV6Vr+0qcd7ST8SHk1HEFnjJ xj6wwZMDlv+bzg7PujGxOOnBpCE5t08BVX+hJLIkNr+LpAZJvy3eDTzse Q==; X-CSE-ConnectionGUID: KW7Aa1aRTuuOsOzn1cK4tQ== X-CSE-MsgGUID: EbrIaOiYQm+eLTLcyaSJmw== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5281007" X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="5281007" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 06:28:34 -0800 X-CSE-ConnectionGUID: lqzc7W1fQq6CnzX5EXNrwQ== X-CSE-MsgGUID: HKZUwea2R+yhZEbzR+QfMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="14211601" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa009.jf.intel.com with ESMTP; 03 Dec 2026 06:28:33 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id 17BA598; Thu, 03 Dec 2026 15:28:32 +0100 (CET) Date: Thu, 3 Dec 2026 15:28:32 +0100 From: Mika Westerberg To: Achim =?utf-8?Q?L=C3=B6bbert?= Cc: Mario Limonciello , linux-usb@vger.kernel.org Subject: Re: [REGRESSION/BUG] thunderbolt: ASM4242 fails to restore DP tunnel after resume on Ryzen 8700G (7.4-rc4) Message-ID: <20261203142832.GA953667@black.igk.intel.com> References: <4e9adf36-e10a-44d2-8dc4-562120784824@kernel.org> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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) { /* -- 2.53.0