From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796372984; b=KaC8hXZkquecfivtV6/TUhc7n676mNjUbHGrj14wsyJonTNRGNe+nrsAjkAQN1aqV5z4 a+VT6h0/gy8K4GIEORZheL+drOlCyytm27q8DrholP+WU1DUZErSVtiLrft5LZbitm3mT h9wDVgO0JWn71+CLZ32sDLPKVvlfXUxTrWwT8YVLeQGMJa56b+F6K7j9CFvAuQata9jc2 IuEyxmj1g0L1RhVSJdE1zurVZ2iju9GBeqDWv4i9ahvxXLrbbJwI+y+BRgH7K6qLUeVQN vG8RD8bUtW1YtISLDBhliwc8beEbJk3oMaJT1mBNVZ34FVV9u4UzsEq651eJU/9TkMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796372984; 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=GRr8OkAMEjNg4p5dhcFL3gAkGVWz0FwCCA1mIWVC0F4=; b=IuwwC/kQ/Yil+2ky5Vb1WNldbf5fgRXQzH56irNZSKjmEF6csGPdi3fWIkAzcOoStPxY igN39sLeJ/cdGOgrN6buT8R/bhPPO2I5OTRTCUq3AeWLWww9thEpjgIj3bDz/XtadWekL rrETSWLeDKvgmh8SN3S2Wi4l9pLB4S3G7sQNkO0c3sZ8Hxt7CbOCCMEy1TvDtk7ru4GPT qcOm0vktRPmUNarK0kcGfAxv627AO/VCnJltdfcmmeeh3RN5WlM+5RIyzCJJXf7U3qwNZ QnNrCQdOFPRdLVp/NRyJbbWw9BEBBU7fEwBzsQkjTfTuIHh9foMTrPN6tOD47ATaxBQ== 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=g+punIAR; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 AF326606A334 for ; Fri, 4 Dec 2026 08:29:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AF326606A334 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=g+punIAR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796372984; x=1827908984; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=GRr8OkAMEjNg4p5dhcFL3gAkGVWz0FwCCA1mIWVC0F4=; b=g+punIARajlw7axJIvDdKYnZ3plj1iMMZehNQ627qo9IorxeQzASMx9s cG3t2QrsQZJ9XQaK40jVkH/dqzAQtGVRw3kJr3FT52S/86t/pEsp2jWSG 3yxQUNFTF4G1PBp4RBgc+aFj8pnoJCvIPr+f6OyABzTrSrxSux7h8gSCc JwgojchA22IQ9ne3lkLQWvG4oQPqKJ0RpE+teRj4KhjzFGaABfbCrGgdA IIG5tc96+qRyZ8zo5YfLOlmOH1iWXgADLOAvPS5mal9AhJvRXX4mZc4RX Q3483p+LbcN91GVRJFkU6tEX+oEYQo0JJ6uVlLgrWuvl5JeSRD1joxALZ g==; X-CSE-ConnectionGUID: 6RX6s9wRS8Cy4yg7FOH98Q== X-CSE-MsgGUID: 4FMU8ZvwTdCwyq3qEuatrw== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5361333" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5361333" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 00:29:43 -0800 X-CSE-ConnectionGUID: kn05PW02SOGINzB4O8V8bw== X-CSE-MsgGUID: xmqu4XGGT+6ZRaER0K74YA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="13856014" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa004.jf.intel.com with ESMTP; 04 Dec 2026 00:29:42 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id A222C98; Fri, 04 Dec 2026 09:29:40 +0100 (CET) Date: Fri, 4 Dec 2026 09:29:40 +0100 From: Mika Westerberg To: Mario Limonciello Cc: Achim =?utf-8?Q?L=C3=B6bbert?= , 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: <20261204082940.GE953667@black.igk.intel.com> References: <4e9adf36-e10a-44d2-8dc4-562120784824@kernel.org> <20261203142832.GA953667@black.igk.intel.com> 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 Thu, Dec 03, 2026 at 11:25:10AM -0600, Mario Limonciello wrote: > 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. Okay good. > 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. Sure but let's wait for Achim to test so we know if it still solves the ASMedia issue.