#
#asahi-re · 2021-12-14 14:57
marcan uVar1 = uVar1 >> 8 & 1;
#asahi-re · 2021-12-14 14:57
marcan "CS42L84_HPOUT_DACA_PATH_VOL_LSB",0x3004,"val",uVar2);
#asahi-re · 2021-12-14 14:57
marcan _writeRegInternal(this,"virtual IOReturn AppleCS42L84Hw::setOutputVolume(SInt16)",0x288,
#asahi-re · 2021-12-06 16:46
svenhrm, don’t think it’s that flag but it’s something in the data section unless I just messed up
#asahi-re · 2021-12-05 22:20
sven(and unless there's something like KTRR this also gives trivial code exec on all coprocs where we can write to the data section by overwriting the stuff it stores in that section during hibernate)
#asahi-re · 2021-12-05 22:18
sveni'll check tomorrow if i can revive any of the coprocs where we can access that flag
#asahi-re · 2021-12-05 22:17
sven*for ANS
#asahi-re · 2021-12-05 22:17
svenerm
#asahi-re · 2021-12-05 22:17
svenhrm, i think it's actually that flag in the data section which we can't access for DCP :(
#asahi-re · 2021-12-05 20:17
svendid you send the nmi after it got a crashlog buffer?
#asahi-re · 2021-12-05 20:17
marcanI haven't seen it try to send a crashlog
#asahi-re · 2021-12-05 20:16
marcanheh
#asahi-re · 2021-12-05 20:16
svenit'll try to send a crashlog and then spin forever
#asahi-re · 2021-12-05 20:16
svenor, well
#asahi-re · 2021-12-05 20:15
sven*nmi
#asahi-re · 2021-12-05 20:15
sventhe mmi is another while(1); loop in the firmware I think
#asahi-re · 2021-12-05 20:14
marcanbut I was also playing with sending NMIs; not sure if that's required to cause that to happen (and it's not consistent anyway)
#asahi-re · 2021-12-05 20:14
marcansven: it's weird that sometimes I got it to start the rtkit init and fail later
#asahi-re · 2021-12-05 12:59
svenbut i guess that might also be reset to its original value if the PMGR reset is a true hard reset
#asahi-re · 2021-12-05 12:53
svenhrm, or maybe not. it changes VBAR at some point
#asahi-re · 2021-12-05 10:56
svenstill need to confirm this though, the code is a bit annoying to follow
#asahi-re · 2021-12-05 10:56
svenand then a reset will work
#asahi-re · 2021-12-05 10:56
svenand i think if you send that powerdown message it'll overwrite that value to something else
#asahi-re · 2021-12-05 10:55
svenmarcan: so here's something that may be going on: the rtkit reset vector checks some kind of resume flag and if has an unexpected value (0xbaadf1ac) it'll go to a while(1); loop. and i think it'll always have the unexpected value once rtkit is up and running
#asahi-re · 2021-12-02 10:52
marcanat least that's how I parse it
#asahi-re · 2021-12-02 10:52
marcan_jannau_: you see, it's PCIE_RC > PCIE_DSP > PF0 > PTM_RES_CAP > PTM_RES_CAP_HDR_OFF > PTM_RES_EXT_CAP_ID > UMASK
#asahi-re · 2021-12-02 10:03
_jannau_PTM_RES_CAP seems so important that it has to be repeated
#asahi-re · 2021-12-02 09:57
Mary77 chars... who thought that was a good idea gosh
#asahi-re · 2021-12-02 04:44
marcanI'm so glad we *don't* have access to Apple's documentation, so nobody is tempted to use the official register names
#asahi-re · 2021-12-02 04:43
marcanPCIE_RC_PCIE_DSP_PF0_PTM_RES_CAP_PTM_RES_CAP_HDR_OFF_PTM_RES_EXT_CAP_ID_UMASK
#asahi-re · 2021-11-23 15:42
marcan:)
#asahi-re · 2021-11-23 15:42
svenlet's move back to -dev i guess :D
#asahi-re · 2021-11-23 15:41
marcanafter I catch up on pmgr/DT stuff, and maybe rewrite that cpufreq thing, next up I want to take care of SMC and WiFi
#asahi-re · 2021-11-23 15:41
marcanawesome :D
#asahi-re · 2021-11-23 15:41
svennow that i know how this nvme controller actually works that's next on my TODO list to get this entire driver into a shape that can be submitted :)
#asahi-re · 2021-11-23 15:40
marcaninteresting
#asahi-re · 2021-11-23 15:40
sven0xb has a string along the lines of "invalid AP power state: %x"
#asahi-re · 2021-11-23 15:40
marcanyeah 0x6 is definitely the final shutdown/initial powerup command
#asahi-re · 2021-11-23 15:40
sven0x6 does a lot of stuff and very much looks like it's for the co-proc
#asahi-re · 2021-11-23 15:39
marcanheh
#asahi-re · 2021-11-23 15:39
svenif you follow the command handler in any RTKit firmware both of them end up in functions with power related strings
#asahi-re · 2021-11-22 21:42
jerdnADoes anyone here know about counting events with PMCs. The best source I found is Dougall Johnson's github but some stuff there does not match results I am getting.
#asahi-re · 2021-11-18 22:48
radnicI apologise.
#asahi-re · 2021-11-18 22:48
radnicCrrrap, I wantet to post this in offtopic.
#asahi-re · 2021-11-18 22:35
radnicIt's _really _ interesting what Apple did with these things.
#asahi-re · 2021-11-18 22:35
radnicAnd I am stumped how there is NOT that big of a performance distance between 5950x and M1Pro for example.
#asahi-re · 2021-11-18 22:35
radnicThe die size is huuuuge on M1 Max compared to Pro.
#asahi-re · 2021-11-18 22:34
radnicIt's... interesting, I mean, it breaks all sorts of assumptions one might have.
#asahi-re · 2021-11-18 22:34
radnicI was checking geekbench performance and I am... _very surprised that M1 Pro seem to have better performance. It
#asahi-re · 2021-11-10 20:24
mkf727who

plus ›