#asahi · 2021-10-13 16:15
svenand apparently the co-processors have something like KTRR anyway#asahi · 2021-10-13 16:14
sventhe firmware is somehow mapped with this DAPF thing, but that has a different lock bit#asahi · 2021-10-13 16:14
svenwe first suspected it was meant to protect the DCP firmware but I don't think so anymore#asahi · 2021-10-13 16:14
svenit's a bit in some register, the dart driver even checks for that and refuses to probe#asahi · 2021-10-13 16:14
svenyes#asahi · 2021-10-13 16:13
svenyup#asahi · 2021-10-13 16:12
svenbut yes, we control the full pagetable#asahi · 2021-10-13 16:12
svenwhat do you mean with "write to memory at that locked pointer"#asahi · 2021-10-13 16:02
svenmacos just reuses the pre-configured pagetable and that's what we will have to do as well#asahi · 2021-10-13 16:02
svenno idea why iboot locks that dart#asahi · 2021-10-13 14:43
sven:D#asahi · 2021-10-13 14:42
svenlikes problems that solve themselves!#asahi · 2021-10-13 14:39
sven^--#asahi · 2021-10-13 14:39
sven16:10:17 <sven> and then *finally* back to nvme :)#asahi · 2021-10-13 14:39
sven16:10:10 <sven> and i guess i should start to work on sane device tree commits as well for that stuff#asahi · 2021-10-13 14:39
sven16:09:41 <sven> next up: horrible dwc3 quirk and a minimal atc phy driver #asahi · 2021-10-13 14:30
sveni don't even have a screen connected to my development machine :D#asahi · 2021-10-13 14:30
sven*shrug*#asahi · 2021-10-13 14:28
sven:>#asahi · 2021-10-13 14:25
svenah, locked darts *sigh*#asahi · 2021-10-13 14:10
svenand then *finally* back to nvme :)#asahi · 2021-10-13 14:10
svenand i guess i should start to work on sane device tree commits as well for that stuff#asahi · 2021-10-13 14:09
svennext up: horrible dwc3 quirk and a minimal atc phy driver #asahi · 2021-10-13 07:21
svenyup, will ack that later :)#asahi · 2021-10-13 07:07
svendid apple ever create a good ecosystem for the touchbar? it felt pretty useless on my old work-mbp#asahi · 2021-10-11 15:44
svendidn't the rasparry pi one even require some horrible hack that had to be run like >9000 times per second?#asahi · 2021-10-11 15:22
svenusb. not even once.#asahi · 2021-10-11 15:19
svenso i guess atc-phy will also be a reset-controller now and dwc3 gets a "fun" quirk to reset_control_assert and then reset_control_deassert whenever a device is disconnected#asahi · 2021-10-11 15:16
svenand then i put it to sleep, wait a few seconds, wake it up again and it also works there again :D#asahi · 2021-10-11 15:16
svenyuup. this seems to work. now only sometimes the port on my macbook air breaks when it decides to be a device again once linux is up :D#asahi · 2021-10-11 15:10
svenand sometimes my macbook air ends up as the device and then the same happens on that side #asahi · 2021-10-11 15:10
svenit'll still WARN_ON, then i trigger that reset and then the port works again#asahi · 2021-10-11 15:09
sventhe port broke completely for her afterwards#asahi · 2021-10-11 15:09
sventhat's the warn_on alyssa ran into#asahi · 2021-10-11 15:09
svennope#asahi · 2021-10-11 15:08
svenneeds a PHY reset afterwards and a complete reinitialization but oh well#asahi · 2021-10-11 15:08
svenyup#asahi · 2021-10-11 15:08
svenuntil you hard reset the entire thing#asahi · 2021-10-11 15:08
svenso i guess if you disconnect the cable at just the wrong time when two M1s are connected and one of them is in device mode the dwc3 controller on one of them just trips over and stops working#asahi · 2021-10-11 15:05
svenresets all state#asahi · 2021-10-11 15:05
svenyup#asahi · 2021-10-11 15:03
svenyeah, let me check if it also loses all state. but i'd expect that#asahi · 2021-10-11 15:03
sventhis seems to be some kind of hard reset i guess#asahi · 2021-10-11 15:03
svenso if that bit is set all dwc3 registers read as 0#asahi · 2021-10-11 15:01
sveni guess#asahi · 2021-10-11 14:58
svenstill trying to figure out the details#asahi · 2021-10-11 14:58
sveni think it resets whatever DWC3_GCTL_CORESOFTRESET resets + some more things #asahi · 2021-10-11 14:57
sveni noticed that i can also fix the port in macos when it goes to sleep. and it looks like macos sets that bit just before it disables power to dwc3#asahi · 2021-10-11 14:56
svenremember how i was looking for a smaller hammer to fix this usb hotplugging issues? looks like i ended up with a bigger hammer instead to fix the "usb port breaks completely" problem that even macOS suffers from: there's a bit in the PHY registers which apple calls DRD_SW_VCC_RESET#asahi · 2021-10-10 19:00
svenj_ey: i can test ethernet and usb a if you give me a patch tomorrow