thunderbolt-nvm-linux icon indicating copy to clipboard operation
thunderbolt-nvm-linux copied to clipboard

XPS 9370 Thunderbolt firmware gone missing

Open tjyrinki opened this issue 4 years ago • 11 comments

Even though I have previously updated my XPS 9370's firmware from 28.00 to 33.00, after https://github.com/dell/thunderbolt-nvm-linux/issues/10 got fixed, there's no longer any firmware available at https://fwupd.org/lvfs/device/4eeb9d07-a96c-56d6-92d3-4a23ee7a6e4a

Furthermore, there would be 40.00 available at https://www.dell.com/support/home/fi/fi/fibsdt1/drivers/driversdetails?driverid=2670n&oscode=wt64a&productcode=xps-13-9370-laptop which might be something that would have really helped me since I've a few problems with my Thunderbolt monitor with XPS 9370 only.

The contents of the .exe file do not seem straight-forward enough to mimick the example from https://github.com/fwupd/fwupd/tree/master/contrib/firmware_packager either so I've been unable to find a solution so far.

tjyrinki avatar Nov 04 '19 18:11 tjyrinki

It looks like it got downgraded because of a failure report. I've promoted it back to testing, can you have a try? https://fwupd.org/lvfs/device/com.dell.tbt4eeb9d07.firmware

superm1 avatar Nov 04 '19 18:11 superm1

Thanks a lot, Mario, awesome to see you still at it after 10 years since UDS-L where we met :) It seems to work "as usual". After update and waiting at "Restarting device" I got: failed to get device after update: failed to wait for detach replug: device 549868096948a2e09ff0599b4ef206b23bdc9fd3 did not come back

And then the Thunderbolt device was gone until reboot. After reboot however it's at 40.00 and functioning normally.

This was also my experience with 28.00 -> 33.00, so I can understand there may be failure reports. Maybe with subpar update experience it's not wise to promote it to stable at least then, but after a reboot indeed it seems as fine as before.

tjyrinki avatar Nov 05 '19 05:11 tjyrinki

awesome to see you still at it after 10 years since UDS-L where we met :)

😎

failed to get device after update: failed to wait for detach replug: device 549868096948a2e09ff0599b4ef206b23bdc9fd3 did not come back

What version of fwupd are you using that happened still?

superm1 avatar Nov 06 '19 16:11 superm1

For what that's worth as I was trying to troubleshoot why my TB16 (w/ XPS 13 9370) disconnects USB devices all the time.. I found this issue and updated to 40.0 as well (from 28 - for some reason on windows i could never update properly, but with fwupdmgr no problem)

After update (fwupdmgr -v install file-here.cab) the screen came back (display port connected to the dock) but not the USB devices and indeed, the thunderbolt device would not show up (just like @tjyrinki). However, no failed to get device after update: failed to wait for detach replug: device in the logs for me.

Rebooting the dock and reconnecting it did not fix it, but rebooting the laptop worked and all devices are now visible/functional.

Confirmed the laptop now runs version 40 and everything seems OK so far (unrelated to this issue: waiting to see if I still get USB disconnects ;-)

  • kernel version is 5.3.8
  • fwupd is version 1.3.3

kangsterizer avatar Nov 06 '19 19:11 kangsterizer

Well that's unfortunate to hear that TBT decided to take a hike even with brand new kernel and userland.

Do you by chance have the kernel logs associated with your upgrade? If so, I think this needs a kernel bugzilla to figure out what is happening kernel side with the upgrade to prevent it from coming back. Please CC me ([email protected])

superm1 avatar Nov 06 '19 19:11 superm1

Interesting bits are around Nov 06 11:14:00

Nov 06 11:13:35 xps13 kernel: r8152 4-1.2:1.0 enp63s0u1u2: Tx status -108
Nov 06 11:13:35 xps13 kernel: r8152 4-1.2:1.0 enp63s0u1u2: Tx status -108
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: xHCI host controller not responding, assume dead
Nov 06 11:13:35 xps13 kernel: usb 4-1.2: USB disconnect, device number 3
Nov 06 11:13:35 xps13 kernel: usb 4-1: USB disconnect, device number 2
Nov 06 11:13:35 xps13 kernel: usb usb4: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: remove, state 1
Nov 06 11:13:35 xps13 kernel: usb 3-1.1: USB disconnect, device number 12
Nov 06 11:13:35 xps13 kernel: usb 3-1: USB disconnect, device number 2
Nov 06 11:13:35 xps13 kernel: usb usb3: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: remove, state 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: USB bus 4 deregistered
Nov 06 11:13:35 xps13 kernel: usb 3-1.3: USB disconnect, device number 4
Nov 06 11:13:35 xps13 kernel: r8152 4-1.2:1.0 enp63s0u1u2: Tx status -108
Nov 06 11:13:35 xps13 kernel: r8152 4-1.2:1.0 enp63s0u1u2: Tx status -108
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: xHCI host controller not responding, assume dead
Nov 06 11:13:35 xps13 kernel: usb 4-1.2: USB disconnect, device number 3
Nov 06 11:13:35 xps13 kernel: usb 4-1: USB disconnect, device number 2
Nov 06 11:13:35 xps13 kernel: usb usb4: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: remove, state 1
Nov 06 11:13:35 xps13 kernel: usb 3-1.1: USB disconnect, device number 12
Nov 06 11:13:35 xps13 kernel: usb 3-1: USB disconnect, device number 2
Nov 06 11:13:35 xps13 kernel: usb usb3: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: remove, state 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: USB bus 4 deregistered
Nov 06 11:13:35 xps13 kernel: usb 3-1.3: USB disconnect, device number 4
Nov 06 11:13:35 xps13 kernel: usb 3-1.6.3: USB disconnect, device number 8
Nov 06 11:13:35 xps13 kernel: usb 3-1.6: USB disconnect, device number 6
Nov 06 11:13:35 xps13 kernel: usb 3-1.5: USB disconnect, device number 5
Nov 06 11:13:35 xps13 kernel: mce: CPU0: Package temperature above threshold, cpu clock throttled (total events = 164309)
Nov 06 11:13:35 xps13 kernel: mce: CPU4: Package temperature above threshold, cpu clock throttled (total events = 164306)
Nov 06 11:13:35 xps13 kernel: mce: CPU1: Package temperature above threshold, cpu clock throttled (total events = 164311)
Nov 06 11:13:35 xps13 kernel: mce: CPU5: Package temperature above threshold, cpu clock throttled (total events = 164311)
Nov 06 11:13:35 xps13 kernel: mce: CPU2: Package temperature above threshold, cpu clock throttled (total events = 164310)
Nov 06 11:13:35 xps13 kernel: mce: CPU7: Package temperature above threshold, cpu clock throttled (total events = 164307)
Nov 06 11:13:35 xps13 kernel: mce: CPU3: Package temperature above threshold, cpu clock throttled (total events = 164311)
Nov 06 11:13:35 xps13 kernel: mce: CPU6: Package temperature above threshold, cpu clock throttled (total events = 164303)
Nov 06 11:13:35 xps13 kernel: mce: CPU4: Core temperature above threshold, cpu clock throttled (total events = 95533)
Nov 06 11:13:35 xps13 kernel: mce: CPU0: Core temperature above threshold, cpu clock throttled (total events = 95535)
Nov 06 11:13:35 xps13 kernel: usb 3-1.7: USB disconnect, device number 7
Nov 06 11:13:35 xps13 kernel: pcieport 0000:3b:01.0: Refused to change power state, currently in D3
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: USB bus 3 deregistered
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: Host not accessible, reset failed.
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:3f:00.0: Host halt failed, -19
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: Refused to change power state, currently in D3
Nov 06 11:13:35 xps13 kernel: pcieport 0000:04:02.0: Refused to change power state, currently in D3
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: USB bus 5 deregistered
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: Host not accessible, reset failed.
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: Host halt failed, -19
Nov 06 11:13:35 xps13 kernel: usb usb5: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: remove, state 4
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: USB bus 6 deregistered
Nov 06 11:13:35 xps13 kernel: usb usb6: USB disconnect, device number 1
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: remove, state 4
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: HC died; cleaning up
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: PCI post-resume error -19!
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: Controller not ready at resume -19
Nov 06 11:13:35 xps13 kernel: xhci_hcd 0000:39:00.0: Refused to change power state, currently in D3
Nov 06 11:13:36 xps13 kernel: thunderbolt 0-3: device disconnected
Nov 06 11:13:36 xps13 kernel: thunderbolt 0-303: device disconnected
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:04: busn_res: [bus 04-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3a: busn_res: [bus 3a-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3b: busn_res: [bus 3b-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3d: busn_res: [bus 3d-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3e: busn_res: [bus 3e-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:40: busn_res: [bus 40-6d] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3f: busn_res: [bus 3f] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:3c: busn_res: [bus 3c] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:39: busn_res: [bus 39] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:06: busn_res: [bus 06-38] is released
Nov 06 11:13:36 xps13 kernel: pci_bus 0000:05: busn_res: [bus 05] is released
Nov 06 11:13:52 xps13 kernel: thunderbolt 0000:05:00.0: 0: power cycling the switch now
Nov 06 11:13:52 xps13 kernel: pci 0000:39:00.0: Refused to change power state, currently in D3
Nov 06 11:13:52 xps13 kernel: thunderbolt: probe of 0000:05:00.0 failed with error -108
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: init 0000:39:00.0 fail, -19
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: USB bus 3 deregistered
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: can't setup: -19
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: Host halt failed, -19
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: new USB bus registered, assigned bus number 3
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: xHCI Host Controller
Nov 06 11:14:00 xps13 kernel: xhci_hcd 0000:39:00.0: Refused to change power state, currently in D3
Nov 06 11:14:00 xps13 kernel: pci 0000:39:00.0: quirk_usb_early_handoff+0x0/0x63a took 7298847 usecs
Nov 06 11:14:00 xps13 kernel: pci 0000:39:00.0: xHCI HW not ready after 5 sec (HC bug?) status = 0xffffffff
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04-6d] add_size 4000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: bridge window [io  0x1000-0x0fff] to [bus 3a-6d] add_size 1000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 39] add_size 200000 add_align 100000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: bridge window [io  0x1000-0x0fff] to [bus 39] add_size 1000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: bridge window [io  0x1000-0x0fff] to [bus 06-38] add_size 1000
Nov 06 11:14:04 xps13 kernel: pci_bus 0000:04: Allocating resources
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: BAR 13: failed to assign [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: BAR 13: no space for [io  size 0x1000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: failed to assign [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: BAR 13: no space for [io  size 0x4000]
Nov 06 11:14:04 xps13 kernel: pcieport 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04-6d] add_size 4000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:04.0: bridge window [io  0x1000-0x0fff] to [bus 3a-6d] add_size 1000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 39] add_size 200000 add_align 100000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:02.0: bridge window [io  0x1000-0x0fff] to [bus 39] add_size 1000
Nov 06 11:14:04 xps13 kernel: pcieport 0000:04:01.0: bridge window [io  0x1000-0x0fff] to [bus 06-38] add_size 1000
Nov 06 11:14:04 xps13 kernel: pci_bus 0000:04: Allocating resources
....

kangsterizer avatar Nov 06 '19 21:11 kangsterizer

I have to wonder if it was a timing thing that the ICM wasn't ready to boot yet.

Nov 06 11:13:52 xps13 kernel: thunderbolt 0000:05:00.0: 0: power cycling the switch now
Nov 06 11:13:52 xps13 kernel: thunderbolt: probe of 0000:05:00.0 failed with error -108

Can you please file the full dmesg to a bug on https://bugzilla.kernel.org/ ?

superm1 avatar Nov 06 '19 21:11 superm1

https://bugzilla.kernel.org/show_bug.cgi?id=205457

kangsterizer avatar Nov 06 '19 23:11 kangsterizer

failed to get device after update: failed to wait for detach replug: device 549868096948a2e09ff0599b4ef206b23bdc9fd3 did not come back

What version of fwupd are you using that happened still?

sudo fwupdmgr --version client version: 1.3.1 compile-time dependency versions gusb: 0.3.0 efivar: 37 daemon version: 1.3.1

I got the "failed to get device after update" after waiting several minutes when it seemed like it was just hanging, but eventually I got back to command prompt with that. The message was in the terminal output, not in any logs.

(my unrelated issues I'm seeing if this could fix are 1) XPS 13 9370 only works well with 0.5m Belkin TB3 cable, while the 1.5m cable supplied with Asus PA27AC monitor works very flaky while the same cable works 100% on Latitude 7490, 2) USB devices attached to the monitor sometimes disappear, needing to detach/replug the cable, also something that only has happened on XPS 13)

tjyrinki avatar Nov 07 '19 06:11 tjyrinki

@superm1 as a side note, my usb issue wasn't solved by the fw update. I'm not sure if it's Dell TB16 dock issue, a TB controller issue, or a kernel issue. Is this something you'd want me to file somewhere here or elsewhere? (reloading kernel usb modules fixes it every time, there's no useful logs thought, a device just stop responding at random - sometimes mouse, sometimes keyboard, .. - until i replug them in or reload the module)

kangsterizer avatar Nov 07 '19 19:11 kangsterizer

After a month of use I have not seen regressions with 40.00.

It may have improved may 2) unrelated issue since I don't now remember needing to do the detach/re-attach cycle for disappearing USB devices, although it was quite random also before, sometimes gone for a long time and then appearing many times in a shorter period.

Meanwhile Mika seems to have posted a potential fix for the device gone problem in kernel.

tjyrinki avatar Dec 11 '19 09:12 tjyrinki