#asahi-dev · 2022-03-04 17:26
svenill give it a shot later#asahi-dev · 2022-03-04 17:26
svenhmmm… maybe it doesn’t pick up the admin queue for some reason #asahi-dev · 2022-03-04 17:23
sventhe command just doesn’t complete?#asahi-dev · 2022-03-04 17:23
svenhow does identify fail? #asahi-dev · 2022-03-04 17:23
svenwifi #asahi-dev · 2022-03-04 17:22
svenI’ve never even used that one before :D#asahi-dev · 2022-03-04 17:01
svenah, fair#asahi-dev · 2022-03-04 16:59
svenjust didn’t think it was important I guess :/#asahi-dev · 2022-03-04 16:58
svenhttps://github.com/AsahiLinux/linux/blob/asahi/drivers/nvme/host/apple.c#L1046 lol, I guess I actually noticed that at some point#asahi-dev · 2022-03-04 16:56
svenouch#asahi-dev · 2022-03-04 16:06
svenprobably not :D#asahi-dev · 2022-03-04 16:01
svenhm.... trying to device on my weekend project: continue hacking on atcphy, preparing sart/rtkit/nvme for submission or continue working on that 4k pagesize thing#asahi-dev · 2022-03-04 11:49
svenoh... that makes sense#asahi-dev · 2022-03-04 10:42
svenmarcan: btw. any idea how stuff like https://lore.kernel.org/lkml/202203031806.f1pqGvO7-lkp@intel.com/ can happen? #asahi-dev · 2022-03-03 18:18
svenyay, my atcphy hack is not rebooting my machine anymore. It also doesn’t work though :(#asahi-dev · 2022-03-03 13:37
sveni think it should just work at least in text mode#asahi-dev · 2022-03-03 13:36
svenprobably easier to get a vmapple kernel running in kvm which doesn't require sprr/gxf. but then there's still the issue that macos requires a gpu to work#asahi-dev · 2022-03-02 22:01
svenand then do even more low level hardware init we can’t easily observe that the two iboot stages otherwise do for us!#asahi-dev · 2022-03-02 22:01
svenand then use some fancy ion beams or micro needles or something to replace it!#asahi-dev · 2022-03-02 22:00
sven:-)#asahi-dev · 2022-03-02 21:59
sventhe rom is inside the SoC #asahi-dev · 2022-03-02 21:58
svenbut either way, we can’t replace any of the stages before what we currently replace#asahi-dev · 2022-03-02 21:58
svenah.. yes. So im confused, possibly behause it’s late here ;)#asahi-dev · 2022-03-02 21:57
svenand the second stage is in the NOR#asahi-dev · 2022-03-02 21:57
svenerm… now I just confused myself. The first stage iboot is the secureROM#asahi-dev · 2022-03-02 21:56
sventhere’s SecureROM which is inside the SoC followed by the first stage iboot in NOR#asahi-dev · 2022-03-02 21:56
svenwe’re literally putting m1n1 and uboot to the earliest point we can#asahi-dev · 2022-03-02 21:55
svenwith those they can sign new iboot stage 1 versions and flash those to the nor#asahi-dev · 2022-03-02 21:55
svenbecause apple has the iboot encryption key and the private signature key #asahi-dev · 2022-03-02 21:53
svenuh, on the m1?#asahi-dev · 2022-03-02 21:51
svenflash rom?#asahi-dev · 2022-03-02 17:21
svenapple calls the register with that reset bit something like “AON_GEN” but that could just be a coincidence #asahi-dev · 2022-03-02 16:47
sven"drd_regs_unk3" is what apple calls "pipehandler"#asahi-dev · 2022-03-02 16:46
svenhttps://github.com/AsahiLinux/m1n1/blob/main/src/usb.c#L130 that's the correct one#asahi-dev · 2022-03-02 16:46
svener... wrong line#asahi-dev · 2022-03-02 16:46
sven(whatever that is, but xnu always flips it together with the reset)#asahi-dev · 2022-03-02 16:46
svenand BIT(4) is FORCE_CLAMP_EN#asahi-dev · 2022-03-02 16:46
svenhttps://github.com/AsahiLinux/m1n1/blob/main/src/usb.c#L125 that's the one that makes all regs read back as 0. i have BIT(0) as DWC3_RESET_N#asahi-dev · 2022-03-02 16:43
svenor maybe I’m misremembering things #asahi-dev · 2022-03-02 16:43
sventhough I guess some part stuck because the dwc3 regs serror before that one iirc#asahi-dev · 2022-03-02 16:42
sventhere’s a chance we also need to redo the usb2 phy init sequence m1n1 does fwiw#asahi-dev · 2022-03-02 16:41
svensounds good#asahi-dev · 2022-03-02 16:41
svenand then it should do the right thing#asahi-dev · 2022-03-02 16:40
svenor, well, it exposes a reset line we need to hook up to dwc3#asahi-dev · 2022-03-02 16:40
svenyeah, with the phy driver I’m working on…#asahi-dev · 2022-03-02 16:40
svenhah. yeah#asahi-dev · 2022-03-02 16:39
svensome bit in registers apple calls “pipehandler”#asahi-dev · 2022-03-02 16:39
svenyeah, that’s weird