Thread (14 messages) flat view 14 messages, 4 authors, 2021-12-07

Re: [PATCH 2/6] thunderbolt: Tear down existing tunnels when resuming from hibernate

From: Yehezkel Bernat <yehezkelshb@gmail.com>
Date: 2021-12-03 11:40:09

On Wed, Dec 1, 2021 at 8:47 AM Mika Westerberg
[off-list ref] wrote:
Hi,
quoted
quoted
quoted
quoted
reason we re-use the tunnel discovery functionality and find out all the
existing tunnels, and tear them down. Once that is done we can restore
our tunnels.
Hm, what if the system is running from a Thunderbolt-attached drive?
Will the mount points survive tearing down and re-establishing the
tunnels to that drive?
Yes, they should. PCI is waiting for the TBT to resume so it should not
notice this, and all the data is at point still synced out to the disks.
But the user will notice the screen flashing, probably?
They will notice flashing anyway because we jump from one kernel to
another (as this is suspend-to-disk which involves shutting down the
machine and booting to "fresh" resume kernel first). We actually tear
down all the DP tunnels before we even enter suspend-to-disk (see
81a2e3e49f1f ("thunderbolt: Tear down DP tunnels when suspending")).
Ah, thanks.
quoted
Is this because the FW might not support the same set of functionality?
Yes, that too.
OK
quoted
Maybe we can continue using the already established tunnels after
discovering them?
Yes we could but that would require us to map the existing tunnels with
the ones we had prior, and also indentify any new tunnels or missing
ones. This makes it more complex, and the approach here seem to work
according to my testing :) I can look for that solution too if you think
it is necessary.
Following the previous points, I don't see any value in trying the
more complex solution.
Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help