#
✕ nick:marcan
#asahi · 2021-02-09 01:09
marcanyeah, that's the plan :)
#asahi · 2021-02-09 01:05
marcancool, count on one :)
#asahi · 2021-02-09 01:01
marcananyway, I'll send you a proper serial adapter too, once those are built, if you want
#asahi · 2021-02-09 01:00
marcanI automated the whole reboot-enter 1TR-pull up termina-type command thing when I first brought this up, using a keyboard emulator and the reboot USB-PD command
#asahi · 2021-02-09 01:00
marcanyeah, but you still need to type curl :)
#asahi · 2021-02-09 00:59
marcanah, I see
#asahi · 2021-02-09 00:59
marcantyping out the 1TR commands by hand too? :)
#asahi · 2021-02-09 00:59
marcandamn, the testing cycle must suck
#asahi · 2021-02-09 00:58
marcanremind me again, do you have a serial interface?
#asahi · 2021-02-09 00:58
marcanI'll allocate some time this week to bringing up the pcie stuff in m1n1, and try it out (and also dwc3).
#asahi · 2021-02-09 00:56
marcancool!
#asahi · 2021-02-09 00:54
marcanpresumably one of those 1G windows is the IO space?
#asahi · 2021-02-09 00:52
marcanthe TB ones also have more features (piodma?)
#asahi · 2021-02-09 00:52
marcanwhich does kind of make sense given the usage
#asahi · 2021-02-09 00:51
marcanthe ranges are different - 512M + 1G for the "normal" PCIe controller, and 2G + 1G + 1G for the TB4 ones
#asahi · 2021-02-09 00:51
marcan4G for the TB4 ones
#asahi · 2021-02-09 00:08
marcanwhich is as you'd expect (PCIe)
#asahi · 2021-02-09 00:08
marcan0x6a0000000 - 0x6ffffffff
#asahi · 2021-02-09 00:08
marcan0x580000000 - 0x67fffffff
#asahi · 2021-02-09 00:08
marcan0x400000000 - 0x4ffffffff
#asahi · 2021-02-09 00:08
marcanjust replying to the mailing list about this, but the valid ranges are
#asahi · 2021-02-09 00:08
marcananyway, the L2C status registers neatly tell you where nGnRE is allowed and where not
#asahi · 2021-02-09 00:07
marcannever_released: probably because they have bugs that write to bad MMIO or stuff like that :p
#asahi · 2021-02-08 23:40
marcannew discovery: nGnRE writes to MMIO are not silently blackholed. They raise a SError. The only reason we didn't know that before is because at the time I ran into that first, obviously the UART was breaking and SErrors would've never showed up anywhere - and then corellium's dumb not-a-real-chicken-bit poke to mask those SErrors was hiding this all.
#asahi · 2021-02-08 16:39
marcanoff to sleep now; I'll let the series simmer a bit more tomorrow while I take care of some other things, then pick back up wednesday (unless I get sniped into looking at it tomorrow...). oh yeah and start working on that serial board :)
#asahi · 2021-02-08 16:39
marcangreat :D
#asahi · 2021-02-08 16:38
marcanhah!
#asahi · 2021-02-08 16:38
marcannice :)
#asahi · 2021-02-08 16:36
marcanI should also test KASLR on M1 at some point; iBoot already randomizes us in physmem (and m1n1 just adds a constant to that, but then rounds to 2MB), but it would be good to see that proper full KASLR isn't broken on M1 either
#asahi · 2021-02-08 16:34
marcanI do not envy that series; just saw the mails, that thing touches so many corner cases :)
#asahi · 2021-02-08 16:20
marcanthanks for all the reviews so far!
#asahi · 2021-02-08 16:20
marcanmaz: I'm really curious about your take on the options for the nGnRnE issue, so I can throw something together for v2 :)
#asahi · 2021-02-07 18:36
marcanjust some protocol Apple cooked up (Apple Wireless Direct Link?)
#asahi · 2021-02-07 18:26
marcanI mean of course it's over the WiFi physical layer
#asahi · 2021-02-07 18:26
marcan(AWDL)
#asahi · 2021-02-07 18:26
marcanmodwizcode: it's proprietary
#asahi · 2021-02-07 18:21
marcanit's fullmac, and also custom stuff (it'll have proprietary stuff for AirDrop I bet...)
#asahi · 2021-02-07 18:21
marcandebug output from the broadcom firmware I presume
#asahi · 2021-02-07 18:21
marcanprobably literally what it says on the tin...
#asahi · 2021-02-07 18:19
marcanmodwizcode: https://github.com/AsahiLinux/docs/wiki/HW:SMP-spin-up and also started https://github.com/AsahiLinux/docs/wiki/HW:Memory%20map
#asahi · 2021-02-07 17:41
marcanalso feel free to rewrite/reformat whatever
#asahi · 2021-02-07 17:41
marcanwhat I know about SMP is trivial so far, let me infodump on wiki real quick
#asahi · 2021-02-07 17:40
marcaneventually ideally we should have fairly comprehensive SoC docs
#asahi · 2021-02-07 17:40
marcanjust need to allocate time to it
#asahi · 2021-02-07 17:40
marcanI want to write docs for everything, and anyone is welcome to poke me to write docs about any specific thing they need because that'll encourage me to do so
#asahi · 2021-02-07 17:40
marcanyeah
#asahi · 2021-02-07 17:39
marcani.e. I broke it down and figured out what i needed and what I didn't
#asahi · 2021-02-07 17:39
marcanthe what reg does what is, well, corellium code, which I treated as vendor code
#asahi · 2021-02-07 17:39
marcanthe reg addresses come from the adt
#asahi · 2021-02-07 17:38
marcanthe other quirks probably don't affect an emulator

plus ›