Now is the time to bring out the heavy weapon ... Thunderbolt debug detailed log..
You can add the two following boot-args :
tbdebug tblog=1
I use this terminal command to extract theses logs :
sudo log show --style syslog --last boot | grep Thunderbolt > LOG_Thunderbolt01.txt
I have attached my thunderbolt debug logs with a system sleep at time
09:35:26.40 and a Sleep call at
09:35:25.53
On this LOG file, you can see multiple initialisation phases :
----------------------------------------------------------------------
IOThunderboltSwitch<<private>>(0x0) - Phase 1 (Discover Switch) begin
----------------------------------------------------------------------
----------------------------------------------------------------------
IOThunderboltSwitch<<private>>(0x0) - Phase 2 (Discover Ports) begin
----------------------------------------------------------------------
----------------------------------------------------------------------
IOThunderboltSwitch<<private>>(0x0) - Phase 3 (Resolve Micros) begin
----------------------------------------------------------------------
...
----------------------------------------------------------------------
IOThunderboltSwitch<<private>>(0x0) - Phase 9 (Register New) begin
----------------------------------------------------------------------