#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 17:02
jannauthe thunderbolt controller is the same though#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:58
jannaumain selling point was the integrated 2.5gbps nic#asahi-dev · 2023-02-20 16:54
jannauno, I have dock with 1 thunderbolt downstream port: hp thunderbolt dock g4#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 16:01
jannausigh, this seems to be ok as the enclosure is only a 20gbps / x2 thunderbolt 3 device#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:52
jannausysfs reports that the nvme runs with a PCIe v3 x2 link. so 1.5 GB/s seems to be ok/expected#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:40
jannaussd is slower hwen connected through the dock though, 1 GB/s instead of 1.5 GB/s#asahi-dev · 2023-02-20 15:40
jannaualso hotplug of the dock worked on on the first try#asahi-dev · 2023-02-20 15:39
jannauhotplug on the dock/hub's downstream port appears to be relieable. 10 out of 10 tries#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#asahi-dev · 2023-02-20 15:19
jannauno, for hotplug on the mac port#asahi-dev · 2023-02-20 15:19
sventhe nhi side seems to work rather reliably here#asahi-dev · 2023-02-20 15:19
sventhat's for hotplug at the ports on the usb4 hub, right?#asahi-dev · 2023-02-20 15:18
jannausometimes it doesn't work at all, sometimes it takes a long time and sometimes it get into hotplug hot-unplug loop#asahi-dev · 2023-02-20 15:17
jannauhaven't tried that yet as hotplug is not relieable in general#asahi-dev · 2023-02-20 15:17
svenuh oh.. and now lockdep just complained about a possible deadlock in pciehp 🙃#asahi-dev · 2023-02-20 15:16
svenand sometimes they are delayed by like 10-15 seconds#asahi-dev · 2023-02-20 15:16
svenbecause the ports on mine usually seem to miss the hotplug irq#asahi-dev · 2023-02-20 15:15
svendoes hotplug work on your usb4 hub btw?#asahi-dev · 2023-02-20 15:00
jannauthe intel ssd should be good for 2000 MB/s. so there might be an issue with the enclosure#asahi-dev · 2023-02-20 14:59
sveneven less fun is tracing the NHI messages on the rings becase I've been too lazy to write a proper tracer so far#asahi-dev · 2023-02-20 14:58
sveni guess you could try to trace everything macos does to pcie but that's not much fun#asahi-dev · 2023-02-20 14:58
svenhmmmm#asahi-dev · 2023-02-20 14:58
jannauyes#asahi-dev · 2023-02-20 14:57
svensamsung is the one where the BAR reads as -1?#asahi-dev · 2023-02-20 14:56
jannausamsung ssd is not faster on the intel system but it should be capable of ~3500 MB/s#asahi-dev · 2023-02-20 14:55
svennice :D#asahi-dev · 2023-02-20 14:50
jannausame PCIe bandwidth message#asahi-dev · 2023-02-20 14:50
jannaudd reports just 1.2 GB/s (intel) instead of 1.5 GB/s (mac) with a block size of 8M#asahi-dev · 2023-02-20 14:49
jannauit's faster than on my intel thinkpad with Alpine Ridge tbt controller: 1070 MB/sec#asahi-dev · 2023-02-20 14:43
svenid really like to know if lane bonding and 20gbps/lane just works #asahi-dev · 2023-02-20 14:42
svencan you test it with another host?#asahi-dev · 2023-02-20 14:39
jannauit's faster than the same ssd with a 10 gbps usb3 link though#asahi-dev · 2023-02-20 14:37
jannauerr probably not#asahi-dev · 2023-02-20 14:37
jannaui.e. it's only using PCIe1 x4#asahi-dev · 2023-02-20 14:36
jannauprobably: "pci 0000:03:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:01:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)"