[Bug 208891] Thunderbolt hotplug fails on HP x360 13t-aw000/86FA with HP Thunderbolt 3 Dock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--- Comment #32 from Mika Westerberg (mika.westerberg@xxxxxxxxxxxxxxx) ---
Thanks for the logs. I think I know what is going on. From the failure log:

Registers get saved:
[   80.292442] pci 0000:2d:00.0: saving config space at offset 0x1c (reading
0x101)
[   80.292446] pci 0000:2d:00.0: saving config space at offset 0x20 (reading
0x0)
[   80.292450] pci 0000:2d:00.0: saving config space at offset 0x24 (reading
0x10001)
[   80.292454] pci 0000:2d:00.0: saving config space at offset 0x28 (reading
0x0)
[   80.292458] pci 0000:2d:00.0: saving config space at offset 0x2c (reading
0x0)

Resources are assigned:
[   80.293725] pci 0000:2d:00.0: BAR 8: assigned [mem 0x68000000-0x680fffff]
[   80.293727] pci 0000:2d:00.0: BAR 9: assigned [mem 0x6000000000-0x60000fffff
64bit pref]
[   80.293752] pci 0000:2d:00.0: BAR 7: assigned [io  0x5000-0x5fff]
...
[   80.293803] pci 0000:2d:00.0: PCI bridge to [bus 2e]
[   80.293807] pci 0000:2d:00.0:   bridge window [io  0x5000-0x5fff]
[   80.293816] pci 0000:2d:00.0:   bridge window [mem 0x68000000-0x680fffff]
[   80.293823] pci 0000:2d:00.0:   bridge window [mem 0x6000000000-0x60000fffff
64bit pref]

Note that there is no save happening here. Then shortly after there is register
restore:

[   80.294748] pcieport 0000:2d:00.0: runtime IRQ mapping not provided by arch
[   80.294830] pcieport 0000:2d:00.0: restoring config space at offset 0x2c
(was 0x60, writing 0x0)
[   80.294835] pcieport 0000:2d:00.0: restoring config space at offset 0x28
(was 0x60, writing 0x0)
[   80.294839] pcieport 0000:2d:00.0: restoring config space at offset 0x24
(was 0x10001, writing 0x10001)
[   80.294844] pcieport 0000:2d:00.0: restoring config space at offset 0x20
(was 0x68006800, writing 0x0)
                                                                               
 ^^^^^^^^^^          ^^^
[   80.294848] pcieport 0000:2d:00.0: restoring config space at offset 0x1c
(was 0x5151, writing 0x101)

This ends up clearing the bridge window registers of 2d:00.0 downstream port. I
guess this does not happen always because it is dependent on timing.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux