#
✕ nick:sven
#asahi · 2022-07-22 12:33
svenwouldn't surprise me if the rest does something similar
#asahi · 2022-07-22 12:32
svenaws at least presses the button with a small solenoid inside the rack because they kinda need that to restore them to a sane state
#asahi · 2022-07-22 05:10
svenessentially for framebuffers, textures, etc. inside gpu ram
#asahi · 2022-07-22 05:10
svenmaybe even as cacheable
#asahi · 2022-07-22 05:09
sveniirc the drivers map it as normal-nc
#asahi · 2022-07-22 05:02
sveni guess they know sone magic register (which I think is unlikely) and/or are talking about horrible hacks
#asahi · 2022-07-20 20:26
sventimes are changing and people are excited about these machines after all
#asahi · 2022-07-20 20:24
sventhis approach already lead to a fix in emacs and chromium
#asahi · 2022-07-20 20:24
sven🤷🏻‍♂️
#asahi · 2022-07-20 20:19
svenbut right now that’s neither a priority for anyone nor do we want to do that right now because we’d rather have people fix their code to not make assumptions about the page size
#asahi · 2022-07-20 20:18
sveneventually we’ll upstream a patch that allows to boot with 4K pages
#asahi · 2022-07-20 17:48
svenmaybe tracking a bit of state so that sepd can be restarted but dunno if that’s even required
#asahi · 2022-07-20 17:47
svenprobably
#asahi · 2022-07-20 17:46
svenyeah, and a good excuse to learn it ;)
#asahi · 2022-07-20 17:45
sventhat would end up very ugly once you try starting to talk to pam and ssh and gpg and whatever
#asahi · 2022-07-20 17:44
svenI actually think Python would be the wrong tool for sepd :D
#asahi · 2022-07-20 17:43
sven:D
#asahi · 2022-07-20 17:43
sveni can see it being annoying complex if you want to handle all the ransom features they have
#asahi · 2022-07-20 17:42
svenyeah, reading is probably just annoying
#asahi · 2022-07-20 17:42
svenfor production I’d rather parse the apfs structures and then maybe write to the blocks directly
#asahi · 2022-07-20 17:41
svenyeah
#asahi · 2022-07-20 17:37
sventhe file is constant size anyway, there’s crcs and at least on both my machines continuous
#asahi · 2022-07-20 17:36
svenor, well, for sep.py i wanted to just dump the partition and manually find those blocks
#asahi · 2022-07-20 17:36
svenyeah, that’s what I wanted to do for sep.py before i got side tracked by nvme and usb3 :D
#asahi · 2022-07-20 17:35
svenI vaguely remember seeing some strings about that, but dunno
#asahi · 2022-07-20 17:34
svenbut im also not sure
#asahi · 2022-07-20 17:34
svenI just assumed that the xart partition has cow disabled
#asahi · 2022-07-20 17:33
svenit’s just mapped to some /dev file because lol apple
#asahi · 2022-07-20 17:33
svenI think the xART stuff actually goes through the regular apfs driver
#asahi · 2022-07-20 15:31
sveniirc you can boot to a secondary installation once without making it the default
#asahi · 2022-07-20 15:30
svenbut there should be something that allows to do that for a single boot as well
#asahi · 2022-07-20 15:30
svenhm, true
#asahi · 2022-07-20 15:23
sveni bet that format is even documented somewhere
#asahi · 2022-07-20 15:23
svenso then all you probably need is to figure out that nvram format and change that variable
#asahi · 2022-07-20 15:22
sventhis is not arm, this is apple
#asahi · 2022-07-20 15:21
svenso it's probably not that much work. just a bit scary maybe because you're writing to that flash which is kinda critical for booting
#asahi · 2022-07-20 15:20
svenand I think the NOR flash already has a driver that just needs to be attached to the SPI bus
#asahi · 2022-07-20 15:19
svenyup, there's "boot-volume" in nvram
#asahi · 2022-07-20 15:15
svenit's probably just a nvram variable
#asahi · 2022-07-19 21:24
svenwhy would you even want to do that?
#asahi · 2022-07-19 17:47
svenyou don’t need that PR, I just double checked
#asahi · 2022-07-19 17:44
sven🤷🏻‍♂️
#asahi · 2022-07-19 17:43
svenif it still doesn’t work some commit in mainline broke something :/
#asahi · 2022-07-19 17:43
svenbut that should only break one port
#asahi · 2022-07-19 17:42
svenbut that should only affect one of the two ports
#asahi · 2022-07-19 17:42
svenin line 1072 the ENOENT needs a - in front of it
#asahi · 2022-07-19 17:42
svenah, I remember
#asahi · 2022-07-19 17:41
svenAnd I assume both ports dont work?
#asahi · 2022-07-19 17:40
svenwhich chip is this? Normal m1?
#asahi · 2022-07-19 17:39
svenas I said, I dont remember if I already pushed the new tunables format to that branch

plus ›