#
✕ nick:sven
#asahi-dev · 2023-02-22 09:05
svenoh, or maybe we need some of those hidden tunables lina found for the gpu for atc and apciec as well
#asahi-dev · 2023-02-22 09:04
svenotherwise I think tracing what macos does to the pcie MMIO and the config space and comparing to linux might uncover another magic bit
#asahi-dev · 2023-02-22 09:03
sveni have some local code that applies the tunables from linux in the correct sequence now but i'm not sure that'll help
#asahi-dev · 2023-02-22 08:12
svenmaybe in like 1 out of 10-15 connections
#asahi-dev · 2023-02-22 08:12
svenjannau: huh, so if I connect my usb4 hub to my half-broken caldigit dock to my working caldigit dock I think I can very rarely reproduce that "entire BAR reads as -1" issue on the xhci controller in the second dock
#asahi-dev · 2023-02-21 16:26
svenI think those might only fix a rescan issue I had though
#asahi-dev · 2023-02-21 16:26
sventhere are also some pcie resource allocation fixes in -next fwiw
#asahi-dev · 2023-02-21 16:25
svenlol :D
#asahi-dev · 2023-02-21 11:38
svengot a link?
#asahi-dev · 2023-02-21 11:38
svenah, I don't look at github for new things usually
#asahi-dev · 2023-02-21 11:38
svendoesn't really matter, but m arcan will pick them up eventually as well
#asahi-dev · 2023-02-21 11:35
sven*seem
#asahi-dev · 2023-02-21 11:35
svenusually most maintainers seems to pick up new drivers between rc1 and rc4 or so
#asahi-dev · 2023-02-21 11:34
svenwhich likely won't happen until the current merge window is closed
#asahi-dev · 2023-02-21 11:33
svenprobably wait for them to pick it up
#asahi-dev · 2023-02-21 11:33
svenfrom the pwn maintainers?
#asahi-dev · 2023-02-21 11:33
sventhat should be enough
#asahi-dev · 2023-02-21 11:30
sveni vaguely recall looking at them
#asahi-dev · 2023-02-21 11:30
svenuh, aren't they already reviewed?
#asahi-dev · 2023-02-20 21:47
svenI also really wouldn’t expect a Ethernet adapter to do anything weird with pcie :/
#asahi-dev · 2023-02-20 21:46
svenhuh.. that sounds pretty broken
#asahi-dev · 2023-02-20 21:04
sventhose are tg3 ethernet, various xhci controllers, that old ohci/ehci controller pair in the tbt display, some intel(?) Ethernet controller and presumably also that old pcie to FireWire Controller but I don’t have anything to test that
#asahi-dev · 2023-02-20 20:58
svenhrm, all of my devices work fine fwiw
#asahi-dev · 2023-02-20 20:37
svenoh well, just flipping the pipehandler mux to the usb3 tunnel phy isn’t enough to make it work
#asahi-dev · 2023-02-20 20:19
svenI think that's expected. it comes from some heuristic somewhere that allocates N bytes of io space when a bridge is marked as hotplug capable
#asahi-dev · 2023-02-20 20:14
sven(ignore the dummy_phy, that name is wrong)
#asahi-dev · 2023-02-20 20:14
sveni'm reasonably sure it's just this here on the dwc3 side: PIPEHANDLER_MUX_CTRL = 0x11 (MUX_MODE=1(DUMMY_PHY), CLK_SELECT=2(DUMMY_PHY))
#asahi-dev · 2023-02-20 20:08
sveni hope it’s the former because I really don’t want to write a nhi tracer
#asahi-dev · 2023-02-20 20:07
sveneither because dwc3 is currently in a messed up state or because more vendor specific nhi stuff is missing
#asahi-dev · 2023-02-20 20:07
svenbut it doesn’t work currently, if you plug in a usb4 devices that Supports tunneling the nhi code will complain that the tunnel couldn’t be activated
#asahi-dev · 2023-02-20 20:06
svenI understand the dwc3 part
#asahi-dev · 2023-02-20 19:12
sveni sure hope this is not another weird vendor specific bit that has to be set somewhere
#asahi-dev · 2023-02-20 19:12
svencan’t find anything special in the usb4 spec about interrupts either
#asahi-dev · 2023-02-20 18:43
svenbut it looks like the hotplug interrupts work when the hub isn’t directly connected to the host :/
#asahi-dev · 2023-02-20 18:42
svenlol, caldigit ts3 to owc hub to Apple Thunderbolt Display doesn’t work because the Linux pci code messes up the resource distribution afaict :D
#asahi-dev · 2023-02-20 17:28
svenjust pushed that reset hack and slightly better error handling
#asahi-dev · 2023-02-20 17:03
svenweird
#asahi-dev · 2023-02-20 16:59
svenit’s just that usb4 hub that has issues
#asahi-dev · 2023-02-20 16:59
svenahhh… okay, the downstream port of my caldigit ts3 also works quite well
#asahi-dev · 2023-02-20 16:49
svenI assume it’s what I guess is the 1-to-3 goshen ridge reference design?
#asahi-dev · 2023-02-20 16:49
sven*hub
#asahi-dev · 2023-02-20 16:49
svenjannau: which usb4 huh do you have?
#asahi-dev · 2023-02-20 16:23
svenstill can’t reproduce that m3 issue despite trying to remove the cable at various times and/or replugging it very quickly
#asahi-dev · 2023-02-20 15:54
svenso it's really just the irq that somehow gets lost
#asahi-dev · 2023-02-20 15:54
svenhrm, if i switch pciehp to polling mode it actually works reliably as well
#asahi-dev · 2023-02-20 15:44
sventhe pcie hotplug driver essentially seems to miss irqs
#asahi-dev · 2023-02-20 15:43
svenhuh, weird. hotplug on the hub's downstream port is very unreliable here
#asahi-dev · 2023-02-20 15:20
sventhat's mostly stable for me fwiw
#asahi-dev · 2023-02-20 15:19
svenah, okay
#asahi-dev · 2023-02-20 15:19
svenit's just that pcie side that seems to not get the hotplug irq

plus ›