#asahi-dev · 2025-04-13 19:54
svensee /msg#asahi-dev · 2025-04-13 19:47
jannaucan you upload the m1n1+payload?#asahi-dev · 2025-04-13 19:44
sventhe last few times it does the weird jump somewhere in mmu_secondary_setup but before reaching smp_secondary_entry again#asahi-dev · 2025-04-13 19:44
sventhis smells like weird memory corruption or something like that to me but i can't figure out what causes it#asahi-dev · 2025-04-13 19:43
sventried to track down that weird exception some more, it seems to somehow jump to a weird PC sometime after reaching smp_secondary_entry#asahi-dev · 2025-04-13 17:13
LarstiQ1-based indexing? What is this, matlab? ;)#asahi-dev · 2025-04-13 17:07
svennope, looks like gP01 is correct#asahi-dev · 2025-04-13 17:02
svenugh, wait, did i break the binary search for the first gpio key? shouldn't that be gP00?#asahi-dev · 2025-04-13 16:56
sven[ 0.358617] macsmc-gpio macsmc-gpio: First GPIO key: gP01 (0x67503031)#asahi-dev · 2025-04-13 16:56
sven[ 0.356430] mfd-macsmc 23e400000.smc: Initialized (922 keys #KEY (0x234b4559) .. zETM (0x7a45544d))#asahi-dev · 2025-04-13 16:56
sven[ 0.354555] mfd-macsmc 23e400000.smc: RTKit: Initializing (protocol version 12)#asahi-dev · 2025-04-13 16:56
svenstill no idea what causes that exception above except that it's something in the host m1n1, but smc finally works again#asahi-dev · 2025-04-13 15:34
svenah, no, i just messed up and forgot to chainload#asahi-dev · 2025-04-13 15:31
sven*hv_start_secondary actually#asahi-dev · 2025-04-13 15:31
svenokay, wtf, adding more prints and iodev_console_flush to hv_enter_secondary seems to fix it#asahi-dev · 2025-04-13 13:37
svenbisect isn't very helpful either it seems. that resulted in two different commits that made no sense and where reverting also didn't fix anything#asahi-dev · 2025-04-13 13:27
svenweird#asahi-dev · 2025-04-13 13:27
svenraw payload also triggers a similar exception#asahi-dev · 2025-04-13 13:18
jannauI'm using raw m1n1 payloads though#asahi-dev · 2025-04-13 13:18
jannausven: no issues on linux but I have seen proxy communication issues during exception handling#asahi-dev · 2025-04-13 12:50
svenhuh, is the current m1n1 main hv on m1 broken for anyone else? https://gist.github.com/svenpeter42/f290098342f96c6c9d9ca35eaa6b6f02#asahi-dev · 2025-04-13 12:25
svenlet's see if i can also get smc in shape now#asahi-dev · 2025-04-13 12:24
svenhttps://github.com/AsahiLinux/linux/commits/b4/pasemi-fixes/ v2 of the pasemi fixes i'll send out tomorrow#asahi-dev · 2025-04-13 11:03
nickchancan probably try mapping physical memory to el0 from bridgeOS on t2 too to find out but i think it's better to hack on xnu vbar first#asahi-dev · 2025-04-13 11:02
nickchant2 is unknown because accessing both the i2c and related pmgr pwrstate regs in whatever state iboot puts the kernel in results in serror#asahi-dev · 2025-04-13 11:00
nickchani2c hwrev (0x28) is 6 since a12 and 3 on a11... not like the a12 part has any practical sigificance anyways#asahi-dev · 2025-04-13 10:49
sventhe second one has to be merged through the arm64 (or whatever the correct subsystem is) tree first before i can pick up the dts changes#asahi-dev · 2025-04-13 10:48
svenalright, applied the first one#asahi-dev · 2025-04-13 10:46
nickchanthere's also https://lore.kernel.org/asahi/20250407-apple-cpmu-v6-0-ae8c2f225c1f@gmail.com/T which comes with some dts patches but nothing from the arm64 side so it continues to sit there#asahi-dev · 2025-04-13 10:42
nickchansven: https://lore.kernel.org/asahi/20250220-caches-v1-0-2c7011097768@gmail.com/T#asahi-dev · 2025-04-13 10:16
chadmed.as_mut() on the Result doesnt work because it contains a reference which is immutable#asahi-dev · 2025-04-13 10:16
chadmedaaa ive written myself into a corner with the adt rust stuff. i need a mutable reference to a property to implement setprop but everything is immutable :p #asahi-dev · 2025-04-13 10:01
svennickchan: got a link to that series that i haven't picked up yet? can't seem to find it :/#asahi-dev · 2025-04-13 09:42
mazalyssa: the PCIe series is 6.16 material, I expect. I'll ping Bjorn around -rc4 to make sure it hasn't got off his radar.#asahi-dev · 2025-04-13 05:35
nickchanhad some success hacking iboot's data abort handler hopefully i could do it for xnu soon#asahi-dev · 2025-04-12 20:41
alyssaIIRC it was fully reviewed#asahi-dev · 2025-04-12 20:41
alyssa(Merge windows, I guess?)#asahi-dev · 2025-04-12 20:41
alyssamaz: Is the pcie series pending on something?#asahi-dev · 2025-04-12 19:06
mischa85sven: about smp_start_secondaries: i don't see anything on the serial line other than Starting CPU 0 (0:0:0)... Failed! for example, M1N1 base right now is at 0x10005c68000 and cpu_impl_reg of cpu0 is 0x10010005c68001#asahi-dev · 2025-04-12 18:26
fl0_idjannau oh ok, sorry#asahi-dev · 2025-04-12 18:25
jannaufl0_id: do not interact with that person. they were banned for repeated code of conduct violations#asahi-dev · 2025-04-12 18:23
fl0_idklausklaus is lina/marcan the same person or why did you mention them both?#asahi-dev · 2025-04-12 05:44
nickchanusually the older the version the more hardcoding needed#asahi-dev · 2025-04-12 05:43
nickchanspeaking of ios 7 it is still broken for other reasons in adt just fixing one by one#asahi-dev · 2025-04-12 05:27
nickchangiven the complexity this incurs#asahi-dev · 2025-04-12 05:27
nickchanshould split get iorvbar into its own functions too#asahi-dev · 2025-04-12 05:23
nickchani guess the fallback then becomes cpu-impl-reg -> reg-private -> /arm-io/ranges#asahi-dev · 2025-04-12 05:23
nickchanreg-private doesn't exist on ios 7 adt#asahi-dev · 2025-04-12 05:23
nickchanoh how fun#asahi-dev · 2025-04-12 05:21
nickchanshould probably use /cpus/cpu<n> reg-private as fallback...