#
✕ nick:sven
#asahi-dev · 2022-12-09 06:17
svenhuh, I’ve never seen it survive. maybe I just need to try a few times
#asahi-dev · 2022-12-08 18:15
svenlooks like Bluetooth resume loses connections to all devices
#asahi-dev · 2022-12-08 18:15
svenmarcan: any chance you want to fix the hypervisor so that it survives macOS suspend? :>
#asahi-dev · 2022-12-07 21:17
svenmine was worse and had less features!
#asahi-dev · 2022-12-07 21:16
svenit originally even had another implementation of parse.c because I didn't realize it was the same format
#asahi-dev · 2022-12-07 21:15
sven:D
#asahi-dev · 2022-12-07 21:15
sven🤨
#asahi-dev · 2022-12-07 21:15
svenuh... how did i get dragged into dcp now? :D
#asahi-dev · 2022-12-07 21:14
sven:>
#asahi-dev · 2022-12-07 21:14
svenlol
#asahi-dev · 2022-12-07 19:42
svenam I the only one who actually has less commits every kernel release? :D
#asahi-dev · 2022-12-07 19:33
svenI think it also makes sense to keep new stuff inside -edge or -dev for a while to give it some exposure first
#asahi-dev · 2022-12-06 12:23
svenkarpouzi: ^—
#asahi-dev · 2022-12-06 12:23
svenand thunderbolt itself already is a subsystem that needs to be adapted, no reason for rust there either
#asahi-dev · 2022-12-06 12:22
svenit’s a bunch of MMIO pokes, rust doesn’t give you any particular advantage there
#asahi-dev · 2022-12-06 12:22
svenit makes no sense to write atcphy in rust
#asahi-dev · 2022-12-06 09:53
sventhe chip is called tps6598x or apple cd321x for the apple variant
#asahi-dev · 2022-12-06 09:53
svenyeah, the driver is called tipd for TI Power Delivery
#asahi-dev · 2022-12-06 09:39
svensomeone should add “add support to reset other m1 machines and enable serial to tipd” to the yaks in need of shaving
#asahi-dev · 2022-12-05 21:46
svenmaybe they have a hack in SIO to workaround a race condition in their keyboard that sends packets too early ;p
#asahi-dev · 2022-12-05 21:40
svencould be that e.g. usb3 to usb/DP transitions don’t require a dwc3 reset
#asahi-dev · 2022-12-05 21:39
svenmaybe I’ll have to redo my mode transition tests now with atcphy being stable
#asahi-dev · 2022-12-05 21:39
sventhat’s, uh, surprising :D
#asahi-dev · 2022-12-05 18:46
sventhat sounds broken
#asahi-dev · 2022-12-05 18:45
svenhuh, for some reason configure becomes 0x4 for a moment
#asahi-dev · 2022-12-05 17:43
svenso still lots of fun left!
#asahi-dev · 2022-12-05 17:43
svenit’ll also fail in funny ways when there are two altmodes like tbt and DP at the same time
#asahi-dev · 2022-12-05 17:42
sventhen there’s ucsi which already implemented a fake DisplayPort state machine that I more or less copied :D
#asahi-dev · 2022-12-05 17:42
svenyeah.. it was written for some typec controller called tcpm where Linux has to do everything afaict
#asahi-dev · 2022-12-05 17:35
sven-s
#asahi-dev · 2022-12-05 17:35
svenI think I even added a tracepoints for DP sid changes
#asahi-dev · 2022-12-05 17:32
sventhat typec subsystem is kind meant for the situation where you there's more control over the VDOs actually sent while this tps chip does all that automatically
#asahi-dev · 2022-12-05 17:31
sveneither way i'll probably have to actually implement a better fake dp altmode state machine *sigh*
#asahi-dev · 2022-12-05 17:31
svenbut I suspect that yours either first negotiates 2-lane dp and then changes pin configuration or that yours is just a bit slow and it only looks like it renegotiates the configuration
#asahi-dev · 2022-12-05 17:30
svenjannau: can you log all dp sid changes when you see that warn? i can't reproduce it with my screens here
#asahi-dev · 2022-12-05 10:48
svendon't ask me how that works though :D
#asahi-dev · 2022-12-05 10:48
svenso it uses that svid thing to route the mux_set to the correct mux
#asahi-dev · 2022-12-05 10:47
sventhere's apparently this weird setup where some typec ports have a mux for usb2/3 and another mux for dp-altmode or something
#asahi-dev · 2022-12-05 10:47
svenyup
#asahi-dev · 2022-12-05 10:47
svenif you drop the typec commit it's unused
#asahi-dev · 2022-12-05 10:46
sventhat's for displayport and usb4/thunderbolt
#asahi-dev · 2022-12-05 10:37
svenso it should fix the quick plug/unplug issue and work the same otherwise
#asahi-dev · 2022-12-05 10:37
svenand preparing it for the typec subsytem altmode stuff
#asahi-dev · 2022-12-05 10:37
sventhe changes are really that dwc3 race fix + trickle down crap to atcphy from that
#asahi-dev · 2022-12-05 10:36
svenwithout the typec commit it just needs some smoke testing on everything that's not a t8103
#asahi-dev · 2022-12-05 10:35
svenso, uh, whatever you prefer :)
#asahi-dev · 2022-12-05 10:35
sventhat branch contains the race fix fwiw
#asahi-dev · 2022-12-05 10:35
sven:D
#asahi-dev · 2022-12-05 10:34
sven(except for the top commit, that's the typec mess)
#asahi-dev · 2022-12-05 10:34
svenatcphc-20221130 fwiw, you'll need that one once the dwc3 race fix hits mainline

plus ›