#
✕ nick:sven
#asahi · 2021-07-26 14:30
sveni think in the end it will depend on a mailbox anyway. we can try to hide that in a power driver or something but then the power driver will depend on that mailbox
#asahi · 2021-07-26 14:05
svenopenbsd just ignores the coprocessor and the mailbox, doesn't it?
#asahi · 2021-07-26 14:01
svenapple,mbox = <&ans_mbox 32>; ;P
#asahi · 2021-07-26 13:58
svenarnd has a patchset that adds a platform driver backend to nvme. depends on the nvme maintainers though, but i don't expect to see a fake PCI bus
#asahi · 2021-07-26 13:56
svenalso for nvme
#asahi · 2021-07-26 13:56
svenyes
#asahi · 2021-07-26 13:56
sveni wonder if you can just reset the other processors by clearing that bit in the 0x44 register again
#asahi · 2021-07-26 13:54
svenit also has no-shutdown and some other properties in the DT that i think i've only seen for smc (or pmp? dunno) as well
#asahi · 2021-07-26 13:53
svenans seems to be somehow special anyway
#asahi · 2021-07-26 13:53
svenyou mean apple's generic asc driver?
#asahi · 2021-07-26 13:51
svenyeah, that would make sense. and the sep is just a little bit special but you can kinda pretend it only has endpoint zero and then the same mailbox driver would work
#asahi · 2021-07-26 13:50
svenand sepos is not based on rtkit
#asahi · 2021-07-26 13:49
svensyslog/etc is a rtkit thing
#asahi · 2021-07-26 13:49
svennope
#asahi · 2021-07-26 13:49
svenit just has the endpoint in the first register and you alsways write/read 0 from the second one
#asahi · 2021-07-26 13:48
svenyes
#asahi · 2021-07-26 13:47
sventhe sep has iop-sep,ascwrap-v4 and its ipc protocol is different from all those other rtkit-based processors
#asahi · 2021-07-26 13:34
svenif it's on macrumors it must be true!
#asahi · 2021-07-26 13:29
svenall i know for sure is that ANS = name of their nvme / storage co-processor
#asahi · 2021-07-26 13:28
svenbut i've also seen the name IOP for their coprocessors so maybe asc is the name for the protocol?
#asahi · 2021-07-26 13:27
svenor maybe even asc = generic name for all of their coprocessors
#asahi · 2021-07-26 13:27
svenans = nvme / storage coprocessor
#asahi · 2021-07-26 13:26
svenasc = generic name for their mailbox protocol
#asahi · 2021-07-26 11:18
svenit'll be much easier once this gets to a state where it'll be useful for end users
#asahi · 2021-07-26 11:18
svenfor now :)
#asahi · 2021-07-26 10:18
sveni mean, if you care about this issue you can take the trace yourself
#asahi · 2021-07-26 10:15
sveniBoot brings up ANS and we can't see that
#asahi · 2021-07-26 10:15
sven*not
#asahi · 2021-07-26 10:15
svenprobably noy
#asahi · 2021-07-26 10:13
sveni made that thing crash a lot and a simple power cycle was always enough
#asahi · 2021-07-26 10:12
svenstill strange the requires a recovery mode reboot though
#asahi · 2021-07-26 10:10
sveni don't know what the old driver is doing, but if you e.g. send an invalid 0x6.. or 0xb.. to get it to a power state it's already in it will crash
#asahi · 2021-07-26 10:10
svenjust saying ;)
#asahi · 2021-07-26 10:09
sveni wouldn't boot a linux you want to use from that branch. it's allocating persistent memory linux doesnt know about
#asahi · 2021-07-26 09:18
svenbut again: i don't really understand what those do yet so they may have side effects
#asahi · 2021-07-26 09:18
svenfirst two send it to hibernate mode, last one brings it back up again
#asahi · 2021-07-26 09:18
sveni think it was 0x60000000000010, then 0xb0000000000010 and then 0x60000000000020
#asahi · 2021-07-26 09:17
sveni don't fully understand what it's doing yet, need to reverse more of RTKit for that
#asahi · 2021-07-26 09:17
svensomething like that, i wrote it in this channel some weeks ago
#asahi · 2021-07-26 09:05
svenkind of. if you send a magic incantation it will go to hibernate mode and you can redo the init dance
#asahi · 2021-07-26 08:58
sveni'm not sure it even still works
#asahi · 2021-07-26 08:58
svenit kinda worked this way but uhhh... this was more of a workaround because i didn't want to go through u-boot all the time
#asahi · 2021-07-26 08:58
sven"// TODO: reserve this memory region" :-)
#asahi · 2021-07-26 08:56
svenuh.. yeah.. he also said that a few minutes ago in here
#asahi · 2021-07-26 08:55
svenand that here was also in the stash, i assume that some of that will be required https://f.svpe.de/e599ae0ada90eb9730f97a29e3befaceccb7ff1a9a43789e270597580c0613b5_stash.patch
#asahi · 2021-07-26 08:52
svenmarcan: https://f.svpe.de/34b9888d20063eb8f89adbc0ee712c33a0b8e7fa6cd845b4de7abc3f1b447f23_asc.py not sure if that one even still works though
#asahi · 2021-07-26 08:51
svenbut that one's even worse
#asahi · 2021-07-26 08:51
sveni also some python hack, gimme a second :D
#asahi · 2021-07-26 08:49
svenmarcan: https://github.com/AsahiLinux/m1n1/pull/90
#asahi · 2021-07-26 08:45
svenit's barely enough to bring ANS up but maybe you can reuse some helper functions or something

plus ›