#asahi-re · 2022-07-17 16:28
marcanjust hypervisor log it?#asahi-re · 2022-07-17 16:26
rqou_marcan: after some more poking, i think the thing is a "axi2af" block, with a bunch of tunables. unfortunately i can't seem to actually get the tunable data from the PMGR kext, because every tool i've tried chokes on what i assume is the macho chained fixup data (but might be a different problem)#asahi-re · 2022-07-17 16:04
marcanentirely possible that the first half is just pmgr stuff shoved into that driver for no good reason#asahi-re · 2022-07-17 16:03
marcanpmgr directly maps some device ranges, and some devices directly map pmgr ranges#asahi-re · 2022-07-17 16:03
marcanrqou_: pmgr is a kitchen sink of nonsense and the ADT reg ranges are a huge mess#asahi-re · 2022-07-17 10:40
Jamie[m]or maybe you will have reproduced all my work by that point :)#asahi-re · 2022-07-17 10:38
Jamie[m]sorry didn’t get chance to assemble my notes, gotta sleep now, will find them tomorrow#asahi-re · 2022-07-17 10:37
Jamie[m]oh yeah idk what’s up with the first half of it#asahi-re · 2022-07-17 09:03
rqou_the first half of avd overlaps pmgr[51] (on m1 max)#asahi-re · 2022-07-17 09:01
rqou_i'm taking a look at avd, half of its regs overlap something mapped in pmgr for some reason, and i cannot for the life of me figure out where any of these registers are being written from#asahi-re · 2022-07-17 09:01
rqou_is there a way to get m1n1 to break into the shell (and disassemble code) when a mmio register is written?#asahi-re · 2022-07-17 08:55
chadmedyeah i turned off SKS and its fast enough to interact with the sensor and macos is happy with it so thats cool#asahi-re · 2022-07-17 08:46
svenyou probably want to disable SKS at least and there’s even a allowlist for endpoints already#asahi-re · 2022-07-17 08:45
svenbut it’s still pretty verbose#asahi-re · 2022-07-17 08:45
svenand the tracer isn’t nearly as bad as the GPU one#asahi-re · 2022-07-17 08:45
sventhe endpoint should be SBIO#asahi-re · 2022-07-17 08:38
chadmedthere was no SEP traffic coinciding with the polling stuff over SIO#asahi-re · 2022-07-17 08:36
chadmedeither way i had a poke earlier and there were some messages on the sbio endpoint of SEP but _only_ immediately after taking your finger off the sensor and they had no data so there's still something missing somewhere#asahi-re · 2022-07-17 08:33
chadmedhuh... maybe it really just was that SKS endpoint #asahi-re · 2022-07-17 08:33
chadmedactual?#asahi-re · 2022-07-17 08:33
marcanI don't think it's upstream yet?#asahi-re · 2022-07-17 08:32
chadmedyeah tracing SIO doesnt grind the kb and trackpad down anymore which is lovely#asahi-re · 2022-07-17 08:32
marcanI should poke her to push that#asahi-re · 2022-07-17 08:32
marcanthere's also that thing lina did to speed up the whole m1n1 USB comms 3x (?)#asahi-re · 2022-07-17 08:30
marcanor that, yeah, just filter it#asahi-re · 2022-07-17 08:30
marcanmight be doing something silly with trace modes...#asahi-re · 2022-07-17 08:30
chadmedif you disable the SKS EP its nowhere near as bad to be fair #asahi-re · 2022-07-17 08:30
marcan*tracer#asahi-re · 2022-07-17 08:30
marcanmaybe I should take a look at that tracerr?#asahi-re · 2022-07-17 08:29
marcaneven if there's a lot of traffic, just logging buffers back and forth has to be faster#asahi-re · 2022-07-17 08:29
marcanSEP can't possibly be quite as bad as lina's logs... she's logging *every single memory access from CPU to GPU-mapped memory*#asahi-re · 2022-07-17 06:30
nicolas17I'll go back to my userland comfort zone :p#asahi-re · 2022-07-17 06:29
chadmedi would hazard a guess that it is 0x18 since some XNU logs relating to AppleMesaSEPDriver appear just before EP 0x18 is announced as being enabled but that doesnt necessarily mean anything#asahi-re · 2022-07-17 06:29
chadmedi still dont know which EP it is :) #asahi-re · 2022-07-17 06:29
chadmedi was still trying to figure out which EP is even mesa's so there was no point logging a bunch of undocumented garbage data#asahi-re · 2022-07-17 06:28
nicolas17oh, tracer enabled but throwing the traced data away?#asahi-re · 2022-07-17 06:28
chadmedi didnt even bother logging with the SEP tracer enabled, the volume of output is about on par with lina's gpu logs, probably worse#asahi-re · 2022-07-17 06:27
chadmedmacos just gives up waiting for the data and doesnt validate the fingerprint#asahi-re · 2022-07-17 06:27
nicolas17producing how many gigabytes of log until login screen? :D#asahi-re · 2022-07-17 06:27
chadmedthen you have the problem of getting into system settings to the touchid module and trying to get it to enrol a fingerprint #asahi-re · 2022-07-17 06:26
chadmedthe system takes about 15 or 20 minutes to get to a login screen then an equal amount of time to settle down after logging in until you can click anything #asahi-re · 2022-07-17 06:26
chadmedbecause the SEP is involved in basically everything and tracing it at all results in everything just slowing to an absolute crawl#asahi-re · 2022-07-17 06:25
nicolas17bleh how is it so timing sensitive?#asahi-re · 2022-07-17 06:25
nicolas17oh I missed that#asahi-re · 2022-07-17 06:23
chadmedlike i said, tracing the sep at all results in it not working properly so yes i cannot see the data on the SEP <-> AP leg#asahi-re · 2022-07-17 06:21
nicolas17so yeah I think if you're not seeing encrypted data coming from mesa and then immediately the *same* encrypted data going to the SEP, then the SEP trace is incomplete :)#asahi-re · 2022-07-17 06:20
chadmedAppleMesaSEPDriver#asahi-re · 2022-07-17 06:19
chadmedyeah there is some sort of negotiation sequence but ofc its encrypted. xnu seems to only load the sep shim driver too#asahi-re · 2022-07-17 06:10
chadmedlet me look at the logs i dumped #asahi-re · 2022-07-17 06:10
chadmedyeah