#asahi-dev · 2026-01-23 12:50
yukait is#asahi-dev · 2026-01-23 12:49
yukabut let me run it again to get the full backtrace for you#asahi-dev · 2026-01-23 12:48
yuka> Internal error: Oops - Undefined instruction: 0000000002000000 [#1] SMP#asahi-dev · 2026-01-23 12:48
yukathat was:#asahi-dev · 2026-01-23 12:46
yuka* with the needed drivers#asahi-dev · 2026-01-23 12:45
yukalet's say it works as expected with what I tried ;)#asahi-dev · 2026-01-23 12:45
yukawell, I didn't make the effort to prepare a version with the needed drives & a standalone initramfs yet. Tried some random non-standalone initramfs which ran the /init and complained about not finding the rootfs#asahi-dev · 2026-01-23 12:44
yukanoopwafel: yes, with cpuhp_setup_state() commented out & smp disabled it boots#asahi-dev · 2026-01-23 12:44
yukathe experience with working earlycon is much better. It's almost like I can actually see what's going on :)#asahi-dev · 2026-01-23 12:43
yuka https://termbin.com/az98#asahi-dev · 2026-01-23 12:43
yukaboot log with cpuhp_setup_state() commented out & smp enabled:#asahi-dev · 2026-01-23 12:41
yukahttps://cyberchaos.dev/yuka/linux/-/commit/864d804931e5d9864d9dea55312623bf29db9987#8d44d32e1d90e744a2166a88d974331d06c3fc15_0_22#asahi-dev · 2026-01-23 12:40
yukait is#asahi-dev · 2026-01-23 12:38
yukaat first I assumed earlycon just wasn't set up early enough for this#asahi-dev · 2026-01-23 12:38
yukajust earlycon doesn't work#asahi-dev · 2026-01-23 12:38
yukaYes!#asahi-dev · 2026-01-23 12:37
yuka(without commenting out cpuhp_setup_state())#asahi-dev · 2026-01-23 12:37
yukais the info I'm getting now#asahi-dev · 2026-01-23 12:37
yuka> Internal error: Oops - Undefined instruction: 0000000002000000 [#1] SMP#asahi-dev · 2026-01-23 12:37
yukayes#asahi-dev · 2026-01-23 12:36
yukafl0_id you should also try earlycon=s5l,[addr]#asahi-dev · 2026-01-23 12:36
yukaand now I'm actually getting useful output before the crash is happening!#asahi-dev · 2026-01-23 12:35
yukaadded earlycon=s5l,0x3ad200000 to my bootargs#asahi-dev · 2026-01-23 12:35
yukaOk I just found out how I could've skipped all the hacky debug_putc stuff#asahi-dev · 2026-01-23 12:01
yukabut then placing my print after the __cpuhp_setup_state() call in cpu_setup_state(), it never happens#asahi-dev · 2026-01-23 12:01
yukaplacing my print in the last line (or any line really) of __cpuhp_setup_state(), the print happens multiple times which is confusing#asahi-dev · 2026-01-23 12:00
yukawhich calls __cpuhp_setup_state()#asahi-dev · 2026-01-23 12:00
yukacpuhp_setup_state() is an inlined thing in cpuhotplug.h#asahi-dev · 2026-01-23 11:59
yukamy printline debugging methods are definitely hitting limits#asahi-dev · 2026-01-23 11:59
yukaI'm so confused about cpuhp_setup_state() call in irq-apple-aic.c#asahi-dev · 2026-01-22 09:01
yukait "just works" (at least with chainload.py --raw)#asahi-dev · 2026-01-22 09:00
yukathis includes chainloading a second m1n1 and calling smp_start_secondaries()#asahi-dev · 2026-01-22 09:00
yukaI did not blindly remove or skip the rvbar write, meaning it never mismatched what was already there, or else it would've tried to write it and crashed#asahi-dev · 2026-01-22 08:55
yukawait, no#asahi-dev · 2026-01-22 08:54
yukajannau: chainload.py already starts the cores up with the stage-1 base#asahi-dev · 2026-01-21 22:54
yukatried my luck with smp on t8132. m1n1 works fine (see my PR), but couldn't make linux happy to the point of where earlycon works. it gets stuck in earlier smp init#asahi-dev · 2026-01-21 22:24
yukayes, console=ttySAC0#asahi-dev · 2026-01-21 06:34
yukaok, thx#asahi-dev · 2026-01-21 06:32
yukaAs in when boot cpu is a pcore (cpu6 according to the adt) does that mean I have to use a different numbering in the linux device tree so that cpu0-3 are the pcores?#asahi-dev · 2026-01-21 06:30
yuka"note boot core is always considered cpu0" in device tree terms too?#asahi-dev · 2026-01-21 05:17
yukaFor smp support in Linux, how does Linux know which core it is booted on?#asahi-dev · 2026-01-20 18:26
yukathis is all with cpuhp_setup_state() call in aic init commented out btw, since it hangs there otherwise#asahi-dev · 2026-01-20 18:25
yukaso I guess I should give it a rootfs#asahi-dev · 2026-01-20 18:25
yukait now complains about a missing rootfs#asahi-dev · 2026-01-20 18:20
yukabut possibly some other change I did at the same time was the cause#asahi-dev · 2026-01-20 18:20
yukaasahi-wip, but I was already based on that before#asahi-dev · 2026-01-20 18:15
yukalol, I just rebased it and now the console output from linux itself is working#asahi-dev · 2026-01-20 18:12
yukafl0_id my t8132 debug_putc work is here: https://cyberchaos.dev/yuka/linux/-/commit/8c86bd8c76bbe02dbf20f3e0f8fb0c311be30faf#asahi-dev · 2026-01-20 14:56
yukaOr, well, the debug_putc stops working after that, so I assume it hangs