Skip to content

Conversation

@crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Sep 4, 2025

Sync changes from CB:75286 and CB:76584.

Need to test on:

  • bonw15-b (Barlow Ridge)
  • addw3, bonw15, oryp12, or serw13 (Maple Ridge)

@crawfxrd crawfxrd requested review from a team and jackpot51 September 4, 2025 17:37
@crawfxrd crawfxrd force-pushed the dtbt-sync branch 2 times, most recently from 04a63cd to eb87d4a Compare September 4, 2025 18:03
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to break Thunderbolt on the oryp12 (Maple Ridge). On currently released firmware, an HP dock works with both USB and Ethernet devices plugged into the dock. On this branch, the system still detects the dock as a Thunderbolt device, but the downstream USB and Ethernet devices don't show up.

@jacobgkau
Copy link
Member

Confirmed Thunderbolt works on master firmware (with coreboot 6982eaf), so the regression is specific to this PR. Here's dmesg after plugging in the dock with the working and non-working firmware:

dock-working-6982eaf.txt
dock-not-working-eb87d4a.txt

@crawfxrd
Copy link
Member Author

It's only allocating a single downstream bus for the TBT device itself, and failing to allocate any memory resources.

Does the dock work if the it's connected before booting?

@jacobgkau
Copy link
Member

jacobgkau commented Oct 14, 2025

Does the dock work if the it's connected before booting?

Yes, just tried rebooting while it was plugged in, and it started working on the next boot. Seems to then work if I unplug and re-plug on the same boot, too.

@crawfxrd
Copy link
Member Author

Can you get the output from cbmem -c as well with/without dock attached before boot?

@jacobgkau
Copy link
Member

Here you go:
booted-without-afterplug.txt
booted-with.txt

(I collected output both before and after plugging the dock in on the non-plugged boot, but they were identical.)

@crawfxrd
Copy link
Member Author

Re-added the devicetree entries, which should hopefully fix hotplug.

@crawfxrd crawfxrd requested a review from jacobgkau October 15, 2025 15:05
@jacobgkau
Copy link
Member

Just built & flashed with 876b0e1, and it's still not seeing the downstream devices on hotplug, only after rebooting.

@crawfxrd
Copy link
Member Author

crawfxrd commented Oct 17, 2025

Can you provide cbmem output again?

Nevermind, I see it. TR_4C_BRG is duplicated in pci_device_ids. One of them should be TR_DD_BRG, which happens to be the device on the oryp12.

@crawfxrd
Copy link
Member Author

crawfxrd commented Oct 17, 2025

Removed the explicit pci devicetree entries again and added TR_DD_BRG to pci_device_ids.

Check cbmem -c output to see if downstream port is scanned again ("subordinate bus PCI Express" for device 8086/15ef).

Also: What the hell? Why is it a TBT3 bridge ID?

Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got around to testing this again. Still no hotplug on oryp12 with 232dfae.

Here's the cbmem -c output after hotplugging the dock: oryp12-232dfae.txt

@jacobgkau
Copy link
Member

It also looks like the oryp12 hangs with its fans spun up if I try to shut down with the dock plugged in after hotplugging.

Sync changes from CB:75286 and CB:76584.

Change-Id: I0544ecb26869fa137f5bf59f0b510280611deaa1
Link: https://review.coreboot.org/c/coreboot/+/75286
Link: https://review.coreboot.org/c/coreboot/+/76584
Signed-off-by: Tim Crawford <[email protected]>
Change-Id: I2ce092ee8344034fd6e6a3493d3be17ac4c471f3
Signed-off-by: Tim Crawford <[email protected]>
@crawfxrd
Copy link
Member Author

crawfxrd commented Oct 24, 2025

Looks like the explicit PCI device is required in devicetree then.

And if it still doesn't work, then...I don't know.

@jacobgkau
Copy link
Member

Still not working after hotplug on a363ff7.

dmesg after hotplug: oryp12-dmesg-a363ff7.txt
cbmem -c after hotplug: oryp12-cbmem-a363ff7.txt

Also still hanging on shutdown with the dock hotplugged.

Let me know if any other output would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants