2026-05-06
00:04voidah has joined #asahi-dev
00:10nela has quit [Ping timeout: 480 seconds]
00:21nela has joined #asahi-dev
00:39voidah has quit [Ping timeout: 480 seconds]
00:48voidah has joined #asahi-dev
00:56voidah has quit [Ping timeout: 480 seconds]
01:09pb17 has quit [Ping timeout: 480 seconds]
01:12pb17 has joined #asahi-dev
01:16NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
01:22NSA_RECON_BOT has joined #asahi-dev
01:30kakeli has joined #asahi-dev
01:31kakeli has left #asahi-dev [#asahi-dev]
01:31gargantua has joined #asahi-dev
01:54voidah has joined #asahi-dev
02:04voidah has quit [Ping timeout: 480 seconds]
02:15tobhe_ has joined #asahi-dev
02:22tobhe has quit [Ping timeout: 480 seconds]
02:34damas has joined #asahi-dev
02:40raquentin has joined #asahi-dev
02:49damas has quit [Ping timeout: 480 seconds]
03:02hexdump02 has joined #asahi-dev
03:02tjemke72 has joined #asahi-dev
03:04hexdump01 has quit [Ping timeout: 480 seconds]
03:08tjemke7 has quit [Ping timeout: 480 seconds]
03:08tjemke72 is now known as tjemke7
03:15NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
03:23NSA_RECON_BOT has joined #asahi-dev
03:31NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
03:39NSA_RECON_BOT has joined #asahi-dev
03:45nukelet13 has quit []
03:47nukelet13 has joined #asahi-dev
03:47dataviruset has joined #asahi-dev
03:50NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
03:52damas has joined #asahi-dev
03:53nora_ has joined #asahi-dev
03:55nora has quit [Ping timeout: 480 seconds]
03:56NSA_RECON_BOT has joined #asahi-dev
04:00damas has quit [Ping timeout: 480 seconds]
04:07NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
04:11gargantua has quit [Ping timeout: 480 seconds]
04:16NSA_RECON_BOT has joined #asahi-dev
04:17raquentin has quit [Remote host closed the connection]
04:25NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:32NSA_RECON_BOT has joined #asahi-dev
05:17damas has joined #asahi-dev
05:25damas has quit [Ping timeout: 480 seconds]
05:25voidah has joined #asahi-dev
05:42NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
05:42voidah has quit [Ping timeout: 480 seconds]
05:50NSA_RECON_BOT has joined #asahi-dev
05:55dataviruset has quit [Remote host closed the connection]
05:57NSA_RECON_BOT has quit [Remote host closed the connection]
05:57NSA_RECON_BOT has joined #asahi-dev
06:20integralpilot has joined #asahi-dev
06:24integralpilot has quit []
06:24NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
06:27voidah has joined #asahi-dev
06:32NSA_RECON_BOT has joined #asahi-dev
06:34pb17 has quit [Ping timeout: 480 seconds]
06:35voidah has quit [Ping timeout: 480 seconds]
06:36pb17 has joined #asahi-dev
06:38damas has joined #asahi-dev
06:42NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
06:47damas has quit [Ping timeout: 480 seconds]
06:50NSA_RECON_BOT has joined #asahi-dev
06:51Z750 has quit [Quit: bye]
06:52Z750 has joined #asahi-dev
07:07kaazoo has quit [Ping timeout: 480 seconds]
07:07r0ni has quit [Ping timeout: 480 seconds]
07:17dataviruset has joined #asahi-dev
07:28damas has joined #asahi-dev
07:36voidah has joined #asahi-dev
07:36damas has quit [Ping timeout: 480 seconds]
07:45voidah has quit [Ping timeout: 480 seconds]
08:00NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
08:07NSA_RECON_BOT has joined #asahi-dev
08:07dataviruset has quit [Ping timeout: 480 seconds]
08:53damas has joined #asahi-dev
09:01damas has quit [Ping timeout: 480 seconds]
10:57NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
11:02ncopa has quit [Quit: Alpine Linux, the security-oriented, lightweight Linux distribution]
11:03NSA_RECON_BOT has joined #asahi-dev
11:05ncopa has joined #asahi-dev
11:08floklimmh, anyone got some m1n1 booted so far on t6040? maybe it's another instance of iboot being broken or something.
11:10voidah has joined #asahi-dev
11:20voidah has quit [Ping timeout: 480 seconds]
11:28NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
11:32NSA_RECON_BOT has joined #asahi-dev
11:35arrynflokli: whats your issue with it exactly? yesterday I tried booting with 26.4.1 on M5 pro and I can't get it to work either. I even tried my own payload that is only vbar and an endless loop and it just keeps rebooting after the chime and then lava lands me in recovery after a few times
11:36flokliarryn: 26.4.1, I hear the boot chime, then it shows the support.apple.com/macsetup slideshow
11:39flokliI will try with another rebased m1n1 tree plus https://github.com/AsahiLinux/m1n1/pull/568 on top. But probably not before tomorrow, lots of travels today
11:43NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
11:44jannauflokli: how quickly does it arrive at the macsetup? if it is within a few seconds it sounds more like there is an issue with the boot object
11:48floklijannau: yeah, a few seconds. it's a bit hard to time, as I'm using some 'portable screen' that receives power and signal from the mac mini and that whole chain take a bit to wake up
12:08ChickenKitten has joined #asahi-dev
12:25yukaSmall question: On M4 and A18 Pro, m1n1 can currently never recover since the exception handler itself throws another SError while clearing SYS_IMP_APL_L2C_ERR_STS.
12:25yukaI usually just comment out the respective lines, but I would like to fix this more properly.
12:25yukaThe question is: Based on which cpu feature I should decide whether to clear SYS_IMP_APL_L2C_ERR_STS? cyc_ovrd? or introduce a new one
12:44voidah has joined #asahi-dev
13:00NSA_RECON_BOT has joined #asahi-dev
13:04jannauflokli: m4 pro mac mini works here (using 26.5 RC), you might need to disable usb_init(), that was throwing exceptions
13:09NSA_RECON_BOT has quit [Ping timeout: 480 seconds]
13:12NSA_RECON_BOT has joined #asahi-dev
13:15NSA_RECON_BOT was kicked from #asahi-dev by ChanServ ["fix your connection and use less annoying name"]
13:16picnoir has joined #asahi-dev
13:33voidah has quit [Read error: Connection reset by peer]
13:33voidah has joined #asahi-dev
13:45mripard has quit [Read error: Connection reset by peer]
13:49hardy94 has joined #asahi-dev
13:52voidah has quit [Remote host closed the connection]
13:52voidah has joined #asahi-dev
14:00voidah has quit [Read error: Connection reset by peer]
14:02voidah has joined #asahi-dev
14:13rany has quit [Remote host closed the connection]
14:15rany has joined #asahi-dev
14:18voidah has quit [Remote host closed the connection]
14:19voidah has joined #asahi-dev
14:39dataviruset has joined #asahi-dev
14:46dataviruset has quit [Quit: dataviruset]
14:48voidah has quit [Read error: Connection reset by peer]
14:48voidah has joined #asahi-dev
14:52voidah has quit [Remote host closed the connection]
14:52voidah has joined #asahi-dev
14:56voidah has quit [Remote host closed the connection]
14:56voidah has joined #asahi-dev
15:06voidah has quit [Remote host closed the connection]
15:06voidah has joined #asahi-dev
15:14voidah has quit [Read error: Connection reset by peer]
15:14voidah has joined #asahi-dev
15:22madmatt06 has quit [Ping timeout: 480 seconds]
16:01damas has joined #asahi-dev
16:09damas has quit [Ping timeout: 480 seconds]
16:24beastd has quit [Ping timeout: 480 seconds]
16:25beastd has joined #asahi-dev
16:37c10l has joined #asahi-dev
16:40c10l has quit []
16:49c10l has joined #asahi-dev
16:57r0ni has joined #asahi-dev
16:58c10l has quit [Read error: Connection reset by peer]
16:58c10l has joined #asahi-dev
17:04hardy94 has quit [Remote host closed the connection]
17:05pb17 has quit [Ping timeout: 480 seconds]
17:21pb17 has joined #asahi-dev
17:35jannauI don't think the HV change can ever be correct when RVBAR is locked. guest entry will differ by definition from rvbar
17:38yukathis is very well possible, but then it will at least error out on the proxyclient side instead of producing SErrors
17:54yukaMy original approach (https://github.com/AsahiLinux/m1n1/commit/a7d0ac281bebeef8bb0cbb440273f03713fc7393) didn't use that bit
17:54yukabut would skip clearing it if the rest was correct, since we wouldn't know if clearing it would result in an serror
18:01yukaIf we can't, we need to rely on cpu_features since there is no other way to distinguish an m3 secondary cpu (which says it's locked, but we can actually write/clear) from an m4 secondary cpu (which will serror on attempting to write/clear)
18:02yukaif we can just leave the locked bit, I would just do that in all cases where the rest (addr part) of the rvbar is already the intended value
18:02jannauWhat exactly? we currently need BIT(0) cleared for HV because HV needs to set RVBAR to guest entry
18:04jannauI suspect it's not only M2 but M1 and M2 as well, we just haven't noticed before because we cleared the bit before the secondaries were running
18:16jannauas suspected, BIT(0) is set on boot on all cores but clearing it is possible as long as the core is not running
18:23yuka1. the lock bit means we can not write the rvbar (-> wrong, we can clear it, depending on whether this core is already running and what platform we are on)
18:24yuka2. the purpose of setting the cpu_impl_reg[0] is setting rvbar to the correct value (-> also wrong, the purpose is also to clear the lock bit so that the rvbar can be set again later once the core is started)
18:28yukaI was going to ask: can you merge the smp.c bits from #563 after reverting #536? Then we have less rebase/merge pains later
18:39yukaFor chainload.py, is there any case where we are actually setting rvbar to something different?
18:40jannauyes, the t8132 CPU start offset is not wrong. I was wondering whether keeping it causes troubles
18:42yukaAlthough I would assume anyone working on that right now can also just comment out the smp_start_secondaries call in linux.py / chainload.py
18:47jannaufor chainload.py you could skip setting rvbar if `rvbar == u.base`. it should not not differ unless someone plays with the entry point or changes how m1n1.macho is linked. In both cases it's fine if said person keeps the broken pieces
18:53yukaso just make the assumption that the current rvbar should be the currently running m1n1's base
18:54yukawhat do you think about this? https://github.com/AsahiLinux/m1n1/pull/577/changes/4263ab7a661de8ebe578f5bc1f0bfc88e8f322dd
18:54yukaFor chainload.py, I would say this is ok since here the purpose is not to clear the lock bit
18:59jannauI 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
19:03yukathe cpu.state == running also felt like a footgun in case the boot cpu rvbar _was_ changed it would silently be skipped
19:04yukaI think its purpose was not SErroring on attempting to set the boot cpu rvbar, which is now served by the new check
19:06nst has quit [Quit: WeeChat 4.7.2]
19:11nst has joined #asahi-dev
19:24fugi5 has quit [Quit: bye]
19:24fugi5 has joined #asahi-dev
19:31ansg191_ has joined #asahi-dev
19:35ansg191 has quit [Remote host closed the connection]
19:35ansg191_ is now known as ansg191
19:47* chewyeclaire[m]uploaded an image: (321KiB) < https://matrix.org/oftc/media/v1/media/download/Af2ySYPWELLt-9EtYwbrSCsXtjqQezO2dkdshcdd92Rewa67qjR5ipKLX77uyqaZPwmTpg1arkkGhMcfj2nhiPxCeeRu15TQAG1hdHJpeC5vcmcvc2JkeVBYTXNuZEJtV0pUb29OVFdBWEhW >
19:47chewyeclaire[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).
19:47chewyeclaire[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.
19:47chewyeclaire[m]https://github.com/MiyakoYakota/m1n1/commit/ab398ac579e197176b7c44d593253bd0f7925a8f
19:47* chewyeclaire[m]posted a file: (161KiB) < https://matrix.org/oftc/media/v1/media/download/AbVxqySnsMeJd0d5XbkvwVPcCbXY2rN2FWj3sQAQp8PSoHv-_gPyVr5V7tsBHwpzFYD-VnLnzFEEAZPwZreG4v1CeeRu3ezgAG1hdHJpeC5vcmcvdGdvc01SaEtJRFdMZ1lad3BXbnhQZHFr >
19:53yukachewyeclaire: try https://yuyu.yuka.dev/public/0001-HACK-always-save-registers-before-wfi-stub-out-wfit.patch
19:59yukaon the m1n1 side latest main + comment out some things: https://yuyu.yuka.dev/public/m1n1-comment-out-things-for-neo-smp.diff
20:02yukaThis 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)
20:05damas has joined #asahi-dev
20:07* chewyeclaire[m]uploaded an image: (219KiB) < https://matrix.org/oftc/media/v1/media/download/AfsL1xqqkqr-odVEpoxWuSnCyM0iZrdPqXb7MPYiCCzyV7fsxFLLIpGM46QwJ_NfpzAcwWa6_WIciFIO7WiIgohCeeRwBQ6AAG1hdHJpeC5vcmcvak9Nb2NGbkhWQXNOa3haRE14cGtCWVhB >
20:07chewyeclaire[m]that was much simpler... thank you :^)
20:12chewyeclaire[m]Ah I think my image didn't bridge if you're on irc, sec
20:13damas has quit [Ping timeout: 480 seconds]
20:53buran has joined #asahi-dev
21:18StanfordAppliedCyber[m] has joined #asahi-dev
21:31damas has joined #asahi-dev
21:40damas has quit [Ping timeout: 480 seconds]
22:12voidah has quit [Ping timeout: 480 seconds]
22:20voidah has joined #asahi-dev
22:43c10l has quit [Quit: Ping timeout (120 seconds)]
22:44c10l has joined #asahi-dev
23:34voidah has quit [Ping timeout: 480 seconds]
23:37chadmed has quit [Read error: Connection reset by peer]
23:37chadmed has joined #asahi-dev
23:42voidah has joined #asahi-dev