#asahi-dev · 2026-05-07 11:11
arrynShouldn't be PAC though because b . does not touch memory, right? I'm not really familiar with those features#asahi-dev · 2026-05-07 11:09
arrynand hardware since armv8.5 has BTI as mandatory#asahi-dev · 2026-05-07 11:08
arrynHmm could it be that I cannot get anything to boot because of BTI or PAC? I just read this: "Within a guarded memory region, when PSTATE.BTYPE != 0b00, all instructions will generate a Branch Target Exception, other than BRK, BTI, HLT, PACIASP, and PACIBSP, which might not. See the individual instructions for more information."#asahi-dev · 2026-05-06 22:36
fl0_idyuka undercoring#asahi-dev · 2026-05-06 20:19
yukanonsensical kernel config#asahi-dev · 2026-05-06 20:18
yuka> Number of cores (10) exceeds configured maximum of 6 - clipping#asahi-dev · 2026-05-06 20:18
yukaAh lol it's my own fault#asahi-dev · 2026-05-06 20:14
yukawhich was never a problem before#asahi-dev · 2026-05-06 20:13
yukaI'm currently fighting my M4 Mac Mini not finding its secondary P-Cores#asahi-dev · 2026-05-06 20:13
yukaone as core 0, one as core 5#asahi-dev · 2026-05-06 20:13
yukanice#asahi-dev · 2026-05-06 20:13
yukaAh it has both p-cores#asahi-dev · 2026-05-06 20:12
yukabut it's unclear if this was the complete output#asahi-dev · 2026-05-06 20:12
yukait did#asahi-dev · 2026-05-06 20:12
chewyeclaire[m]Ah I think my image didn't bridge if you're on irc, sec#asahi-dev · 2026-05-06 20:12
yukagrep for 0x61#asahi-dev · 2026-05-06 20:12
yukachewyeclaire: do you see both p-cores in /proc/cpuinfo?#asahi-dev · 2026-05-06 20:08
yukayayy#asahi-dev · 2026-05-06 20:07
chewyeclaire[m]that was much simpler... thank you :^)#asahi-dev · 2026-05-06 20:07
chewyeclaire[m]uploaded an image: (219KiB) < https://matrix.org/oftc/media/v1/media/download/AfsL1xqqkqr-odVEpoxWuSnCyM0iZrdPqXb7MPYiCCzyV7fsxFLLIpGM46QwJ_NfpzAcwWa6_WIciFIO7WiIgohCeeRwBQ6AAG1hdHJpeC5vcmcvak9Nb2NGbkhWQXNOa3haRE14cGtCWVhB >#asahi-dev · 2026-05-06 20:03
yukaturns out upstreamable is 9000% harder :)#asahi-dev · 2026-05-06 20:02
yukaThis is the entire thing I've been working on: trying to produce upstreamable patches to make this work out of the box (modulo the cpu_do_idle hack)#asahi-dev · 2026-05-06 19:59
yukathis should be all you need for smp#asahi-dev · 2026-05-06 19:59
yukaon the m1n1 side latest main + comment out some things: https://yuyu.yuka.dev/public/m1n1-comment-out-things-for-neo-smp.diff#asahi-dev · 2026-05-06 19:53
yukachewyeclaire: try https://yuyu.yuka.dev/public/0001-HACK-always-save-registers-before-wfi-stub-out-wfit.patch#asahi-dev · 2026-05-06 19:53
yukachewyeclaire: you need nothing close to this complicated to get smp running#asahi-dev · 2026-05-06 19:52
yukathanks#asahi-dev · 2026-05-06 19:52
jannauyuka: fixed#asahi-dev · 2026-05-06 19:47
chewyeclaire[m]posted a file: (161KiB) < https://matrix.org/oftc/media/v1/media/download/AbVxqySnsMeJd0d5XbkvwVPcCbXY2rN2FWj3sQAQp8PSoHv-_gPyVr5V7tsBHwpzFYD-VnLnzFEEAZPwZreG4v1CeeRu3ezgAG1hdHJpeC5vcmcvdGdvc01SaEtJRFdMZ1lad3BXbnhQZHFr >#asahi-dev · 2026-05-06 19:47
chewyeclaire[m]https://github.com/MiyakoYakota/m1n1/commit/ab398ac579e197176b7c44d593253bd0f7925a8f#asahi-dev · 2026-05-06 19:47
chewyeclaire[m]I am now in the falling edge part of the dunning kruger effect in my attempts to learn linux on AS and get it running on j700, please be patient I am new but I *think* I have made some progress on smp. It still crashes about 1s after all secondary. #asahi-dev · 2026-05-06 19:47
chewyeclaire[m]This is completely out of my depth at this point, but if there is anything of use to you guys here based on this it should be in here + small patches to linux I can post (like removing wfi from cpu_do_idle, dart, aic v3 if you guys haven't figured them out already). #asahi-dev · 2026-05-06 19:47
chewyeclaire[m]uploaded an image: (321KiB) < https://matrix.org/oftc/media/v1/media/download/Af2ySYPWELLt-9EtYwbrSCsXtjqQezO2dkdshcdd92Rewa67qjR5ipKLX77uyqaZPwmTpg1arkkGhMcfj2nhiPxCeeRu15TQAG1hdHJpeC5vcmcvc2JkeVBYTXNuZEJtV0pUb29OVFdBWEhW >#asahi-dev · 2026-05-06 19:25
yukajannau: you forgot to check in t6031-dieX.dtsi on asahi-wip?#asahi-dev · 2026-05-06 19:04
yukaI think its purpose was not SErroring on attempting to set the boot cpu rvbar, which is now served by the new check#asahi-dev · 2026-05-06 19:03
yukathe cpu.state == running also felt like a footgun in case the boot cpu rvbar _was_ changed it would silently be skipped#asahi-dev · 2026-05-06 19:02
yukawhatever started m1n1 might have skipped setting the secondary rvbars#asahi-dev · 2026-05-06 19:02
yukaI'm not so sure about the secondary cpu rvbars#asahi-dev · 2026-05-06 18:59
jannauI think that is by definition true (unless some modified it). I think you want to compare against `rvbar` and please keep the `cpu.state == "running"` skip#asahi-dev · 2026-05-06 18:55
yukathis is done by smp.c#asahi-dev · 2026-05-06 18:54
yukaFor chainload.py, I would say this is ok since here the purpose is not to clear the lock bit#asahi-dev · 2026-05-06 18:54
yukawhat do you think about this? https://github.com/AsahiLinux/m1n1/pull/577/changes/4263ab7a661de8ebe578f5bc1f0bfc88e8f322dd#asahi-dev · 2026-05-06 18:54
jannauit is. see `new_base = u.base` at the beginning of the file#asahi-dev · 2026-05-06 18:53
yukaso just make the assumption that the current rvbar should be the currently running m1n1's base#asahi-dev · 2026-05-06 18:53
yukaOhh#asahi-dev · 2026-05-06 18:51
jannauthe code is `for cpu in u.adt["cpus"]` and I guess the print before#asahi-dev · 2026-05-06 18:49
yuka"the code", so you would still do the write?#asahi-dev · 2026-05-06 18:49
jannauno, I would put the code under `if rvbar != u.base:`#asahi-dev · 2026-05-06 18:48
yukawill do#asahi-dev · 2026-05-06 18:48
yukaAh no, replacing it with a check and erroring out