#
#asahi · 2022-12-27 17:55
marcanasahi tagged releases
#asahi · 2022-12-27 17:55
icanflyitI have a question - what branch is the linux-asahi-edge kernel built from?
#asahi · 2022-12-27 17:54
sventpw_rules: i was only tricked into adding dcpext support to DCP, jannau does all the other DCP stuff :)
#asahi · 2022-12-27 17:54
marcanI should test that...
#asahi · 2022-12-27 17:54
marcanthat would be a fun bug to file
#asahi · 2022-12-27 17:54
marcanbut then we should be able to cause epic filesystem corruption on macOS too
#asahi · 2022-12-27 17:54
marcanif we can't make it work with downstream hubs it's a lost cause anyway
#asahi · 2022-12-27 17:54
svenI’d rather not :D
#asahi · 2022-12-27 17:54
svenyeah, we can probably detect it with some tipd hacking but ugh
#asahi · 2022-12-27 17:53
svenurgh
#asahi · 2022-12-27 17:53
marcanI'm going to sleeep.
#asahi · 2022-12-27 17:53
marcanI hate USB.
#asahi · 2022-12-27 17:53
marcanand I'm not even sure if it can be made to work with ports chained off of hubs, because if you reset everything wouldn't that lose the disconnect state on DFPs?
#asahi · 2022-12-27 17:52
tpw_rulessven: is dcp startup still known to be racy? i'm getting hangs on boot and "apple-dcp 38bc00000.dcp: wait for power timed out". i have more logs and info if helpful, but i thought it was a semi-known problem
#asahi · 2022-12-27 17:52
marcanthat means even *more* cursed abstraction breaking bullshit in linux
#asahi · 2022-12-27 17:52
marcansven: the only safe way to make it work with a full reset is if we can detect a disconnect during sleep, which is probably possible with tipd irq flags or something, but
#asahi · 2022-12-27 17:50
marcanas I said, Synopsys
#asahi · 2022-12-27 17:50
karolherbstheh
#asahi · 2022-12-27 17:50
marcanbecause those use an xHCI controller not made by Synopsys
#asahi · 2022-12-27 17:50
marcanit also works on the Type A ports on M1s
#asahi · 2022-12-27 17:50
marcanyes it does
#asahi · 2022-12-27 17:50
karolherbstsure, but.. does it even work on x86?
#asahi · 2022-12-27 17:50
marcanI'm going to be very sad if 2) is the state of affairs on macOS
#asahi · 2022-12-27 17:50
marcankarolherbst: no, that is cursed because it means either 1) your USB storage devices fall off the bus on suspend and your filesystems crash, or 2) you enable the stupid cheat mode that works around that, then someone unplugs a USB driver and plugs in a different but identical drive during sleep and on resume their filesystem gets corrupted to hell and back
#asahi · 2022-12-27 17:49
svenI could also restore those ports with a suspend cycle under macOS
#asahi · 2022-12-27 17:49
sventhe thing that worked in Linux because I did that additional hard reset
#asahi · 2022-12-27 17:49
svenohhhh… i think macOS might do a full reset. Remember that thing where I broke the ports when disconnecting the cable at just the right time in macOS?
#asahi · 2022-12-27 17:49
karolherbstmarcan: mhh.. just do a full reset on resume and move on or something?
#asahi · 2022-12-27 17:48
marcanChaosPrincess: Synopsys.
#asahi · 2022-12-27 17:48
marcanI need to log what macOS does to figure out whether ports breaking in suspend mode is expected (maybe macOS does full resets, that'd be cursed...) or whether there's a magic incantation to make it not explode
#asahi · 2022-12-27 17:48
ChaosPrincessCause wtf, how do you even break it that badly
#asahi · 2022-12-27 17:47
ChaosPrincessmarcan: wtb story about dwc2 brokenness.
#asahi · 2022-12-27 17:47
karolherbstwell.. as long as I can trash my x86 laptop in a year I don't mind if it takes a bit longer 🙃
#asahi · 2022-12-27 17:47
marcanno, dwc2 is usb2
#asahi · 2022-12-27 17:47
tpw_rulesbut dwc2 is still usb3?
#asahi · 2022-12-27 17:47
corionProgress!
#asahi · 2022-12-27 17:46
marcanso dwc2 was *really* bad, dwc3 is just mostly bad
#asahi · 2022-12-27 17:46
karolherbstahh
#asahi · 2022-12-27 17:46
marcanM1s use dwc3
#asahi · 2022-12-27 17:46
svenyeah, this thing is quite broken
#asahi · 2022-12-27 17:46
marcanthose use dwc2
#asahi · 2022-12-27 17:46
marcanthis is why USB sucks on the raspberry pi
#asahi · 2022-12-27 17:46
karolherbstwait what?
#asahi · 2022-12-27 17:46
marcanat least it's not dwc2 broken, where you need CPU low latency assist to even make the USB ports work and perform properly
#asahi · 2022-12-27 17:46
svenwe also need to reset the entire usb controller and phy every time a new device is connected
#asahi · 2022-12-27 17:46
marcanso broken is the default state
#asahi · 2022-12-27 17:45
marcanI mean, it's a Synopsys core
#asahi · 2022-12-27 17:45
karolherbsthuh
#asahi · 2022-12-27 17:45
marcanI need to do deeper testing, but from what I saw simply putting ports into suspend and then trying to take them out doesn't work
#asahi · 2022-12-27 17:45
tpw_ruless/ on these machines//

plus ›