#asahi · 2021-09-23 12:26
marcanthe thing is, the ti chip has some kind of "protection" crap; I've seen it cancel modes for me when I drew too much current and such#asahi · 2021-09-23 12:25
marcanthat's total wack#asahi · 2021-09-23 12:25
marcanhowever, if I then disconnect CC and reconnect it, the pullup never comes back#asahi · 2021-09-23 12:25
marcanhere's the thing: when I disconnect the data side, one of the lines goes up as expected (gadget pullup)#asahi · 2021-09-23 12:24
marcanwe'll know for sure with the teardown#asahi · 2021-09-23 12:24
marcansven: I have a theory that this isn't dwc3/the phy's fault, it's tipd's fault#asahi · 2021-09-23 12:24
marcanit works differently because vbus matters in gadget mode but not in host mode#asahi · 2021-09-23 12:24
marcanbut yes#asahi · 2021-09-23 12:23
marcanno, that's host mode, not gadget mode#asahi · 2021-09-23 12:19
marcanso there's a race, which explains the repeatability problem#asahi · 2021-09-23 12:19
marcanbut if I disconnect D+/D-, then CC, then reconnect CC, then D+/D-, it's dead#asahi · 2021-09-23 12:19
marcanif I disconnect CC, then D+/D-, then reconnect D+/D-, then reconnect CC, it works fine as expected (since once CC drops it'll detach the data pins from the PHY, so how could it do anything?)#asahi · 2021-09-23 12:18
marcanif I disconnect CC, it works fine#asahi · 2021-09-23 12:18
marcanif I disconnect D+/D-, it works fine#asahi · 2021-09-23 12:18
marcansven: no but I found something interesting#asahi · 2021-09-23 11:44
marcan(but once it dies it dies)#asahi · 2021-09-23 11:44
marcanit's inconsistent#asahi · 2021-09-23 11:44
marcanand then it died#asahi · 2021-09-23 11:44
marcansvenpeter[m]: I just got it to work like 4 times in a row#asahi · 2021-09-23 11:40
marcanoh, it just worked again#asahi · 2021-09-23 11:39
marcanI can't repro#asahi · 2021-09-23 11:39
marcanit worked once, once#asahi · 2021-09-23 11:34
marcanhotplugging just worked for me once, I swear#asahi · 2021-09-23 11:33
marcanwait hold on#asahi · 2021-09-23 11:22
marcan:p#asahi · 2021-09-23 11:22
marcanis it possible the *SMC* reacts to the hotplug and actively screws something up?#asahi · 2021-09-23 11:21
marcansven: stupid idea... what about the SMC I2C?#asahi · 2021-09-23 11:20
marcanlike does the tipd glitch the phy or something?#asahi · 2021-09-23 11:20
marcanit stinks of hardware bug so much, but I just don't understand how it's even possible#asahi · 2021-09-23 11:17
marcan(e.g. under m1n1)#asahi · 2021-09-23 11:17
marcanis there some tipd poking necessary anyway?#asahi · 2021-09-23 11:17
marcanI'm going to do a quick check on the usb pins with a scope externally on my normal M1, see what happens there#asahi · 2021-09-23 11:16
marcanand this gets fixed with a phy/dwc3 reset?#asahi · 2021-09-23 11:16
marcanand in gadget mode leaving VBUS on works for me#asahi · 2021-09-23 11:15
marcanbut it works on the other side, right?#asahi · 2021-09-23 11:14
marcansven: can you describe the phy/xhci fail in a bit more detail? just want to have the info before I bring out the scope#asahi · 2021-09-23 11:13
marcan:)#asahi · 2021-09-23 11:11
marcanmight see about writing the cpufreq thing tonight if I have nothing else to do, seeing as the hardware hacking stream was foiled by Apple's screws#asahi · 2021-09-23 11:11
marcanthere's a whole pile of drivers on the review pipeline already, I should send pmgr soon too#asahi · 2021-09-23 11:10
marcanso they got lots of things to work, but lots of it in crazy ways that needed to be redone#asahi · 2021-09-23 11:10
marcanthe main problem with the corellium port is that it was a PoC port made with no intention of upstreaming, they just wanted a validation guest for their proprietary hypervisor#asahi · 2021-09-23 11:09
marcanthey added wifi later#asahi · 2021-09-23 11:08
marcanand general cleanup/rewrites :p#asahi · 2021-09-23 11:08
marcanthe same chip is used in some Intel macs fwiw, so this isn't even M1 specific#asahi · 2021-09-23 11:07
marcanas for the firmware, I'll probably make the installer grab it from the running OS and put it somewhere for the installed OS to use#asahi · 2021-09-23 11:06
marcancorellium already did that ages ago, someone just needs to go through and clean up the mess and submit it#asahi · 2021-09-23 11:06
marcanit just needs some patches due to some custom apple silliness and slight silicon differences#asahi · 2021-09-23 11:06
marcanit's a standard broadcom fmac chip#asahi · 2021-09-23 11:06
marcannskl: it's not a new driver#asahi · 2021-09-23 10:29
marcanworst case, monday (busy weekend)