#asahi-dev · 2026-07-10 23:00
mischa85lol#asahi-dev · 2026-07-03 18:39
mischa85sven: yes i realise. but it's something that's going to bite someone sooner or later#asahi-dev · 2026-07-03 18:28
mischa85https://github.com/torvalds/linux/blob/master/drivers/cpufreq/apple-soc-cpufreq.c#L291#asahi-dev · 2026-07-03 18:28
mischa85this expression looks like it's being evaluated in 32-bits. so trouble when a soc tries to boost higher than ~4.2 GHz#asahi-dev · 2026-07-03 15:17
mischa85chaos_princess: i have that exact same question#asahi-dev · 2026-07-03 15:16
mischa85chaos_princess: i wasn't trying to get any code accepted, that's the whole point#asahi-dev · 2026-07-03 15:08
mischa85produce some clean-room documentation. did i already say i went in with a hazmat suit and am tainted? i have strictly talked about it within #asahi-re context. tldr; it's llm slop, not ready for upstream in any way, shape or form.#asahi-dev · 2026-07-03 15:08
mischa85nice, some slander. let me be clear, i did and will not try to bring any of this upstream. this is my own personal repo, and i even tagged one commit as "RE-derived, DO NOT UPSTREAM". this is strictly RE territory. i'll tag the other commits as well with capitals, but at this point i'm also okay with putting the repo on private to prevent anyone from seeing whatever happens on there, and eventually #asahi-dev · 2026-07-02 18:13
mischa85yuka: full smp with the hv wfi-trap brings up all 16 cores. with the trap off + idle=nop it borks at guest-secondary-entry. single-core idle=nop works fine.#asahi-dev · 2026-07-02 17:58
mischa85flokli: i'm not sure. i have WFI nopped in the HV. cannot succesfully boot Linux on baremetal yet#asahi-dev · 2026-07-01 19:54
mischa85got linux running on all 16 cores on t6041 under HV. need to trap WFI/WFIT in HV for it to not bork out. keyboard also works nicely.#asahi-dev · 2026-06-21 20:45
mischa85I tried to get MTP/keyboard working for a bit, but it's really poking a stick in the dark at the moment#asahi-dev · 2026-06-21 19:43
mischa85yuka: t6041 m1n1 linux hv log -> https://paste.debian.net/plainh/0b72e8e8#asahi-dev · 2026-06-21 19:23
mischa85Yep, earlycon is in bootargs#asahi-dev · 2026-06-21 18:56
mischa85I could never get Linux to log anything. It stalled in pmgr bring-up#asahi-dev · 2026-06-21 18:51
mischa85I took all of them, from 8de74933762a162ca3d5a187fff37f8186386abe to HEAD#asahi-dev · 2026-06-21 18:38
mischa85yuka: yes I cherrypicked the relevant commits from the m4-hv branch#asahi-dev · 2026-06-21 18:09
mischa85Well when trying SMP it dies before the framebuffer comes up#asahi-dev · 2026-06-21 17:56
mischa85Let's see what blocks SMP.#asahi-dev · 2026-06-21 17:56
mischa85I spent most of my time today trying to get either XNU (won't work: SPTM) or Linux booting in the HV. So just went for baremetal to get some kind of satisfying result.#asahi-dev · 2026-06-21 17:50
mischa85Derp. You are right. They don't lost their state. Good to know because that was a wrong assumption I had here for a while#asahi-dev · 2026-06-21 17:41
mischa85Reached userspace on a baremetal Linux boot on t6041. No HV. Logging on framebuffer. Needed maxcpus=1 + nohlt + pd_ignore_unused clk_ignore_unused, SME disabled in kernel. M4 loses CPU state on WFE as well as WFI.#asahi-dev · 2026-06-21 03:17
mischa85and I think these are now verified correct: https://github.com/mischa85/m1n1/commit/f4441d92f4d2c3847c2e9ac888e2672226d19c54#asahi-dev · 2026-06-21 03:08
mischa85yuka: ran wfi experiment on t6041. all 16 cores lose state, boot core included.#asahi-dev · 2026-06-21 00:04
mischa85Read 0xf#asahi-dev · 2026-06-21 00:03
mischa85Seems M4 Max on 26.6b2 has SYS_IMP_APL_VM_TMR_FIQ_ENA_EL2 writable#asahi-dev · 2026-06-20 21:24
mischa85Alright then I don't have to keep this second install around anymore#asahi-dev · 2026-06-20 21:23
mischa85t6041 M4 Max#asahi-dev · 2026-06-20 21:23
mischa85It bootlooped if I remember correctly#asahi-dev · 2026-06-20 21:22
mischa85I still kept 15.1 around, I couldn't boot into m1n1 with a newer version before. Not sure if that is fixed in the meantime#asahi-dev · 2026-06-20 21:14
mischa85yuka: thanks, works indeed. I'm diving in, quite some progress to catch up#asahi-dev · 2026-06-20 20:34
mischa85sorry I'm kind of rusty. that changes things indeed#asahi-dev · 2026-06-20 20:14
mischa85But great progress nonetheless. I tried to get VM working a couple on months ago (without pmgr), but couldn't get it to work whatever I tried#asahi-dev · 2026-06-20 20:03
mischa85yuki: yes, but I have only one M-series mac at my disposal which is the target.#asahi-dev · 2026-06-20 19:56
mischa85Gees I detest microsoldering#asahi-dev · 2026-06-20 19:55
mischa85Might try reflowing U1#asahi-dev · 2026-06-20 16:36
mischa85Hi all! I had some spare time today so I was planning to see how far I could get with m1n1/HV/Linux shenanigans on my t6041. But I ended up fighting trying to get the Central Scrutinizer to work that worked fine a couple of months ago. I have not used in the meantime, but is there anything I could do to check the hardware? All I get is P0: Invalid device ID 0000. Is the FUSB302 alive?#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-06 17:36
mischa85m1n1 on disk#asahi-dev · 2025-04-06 11:26
mischa85but how can i poll that timer without causing an interrupt? maybe i'm just unsure here how to implement that#asahi-dev · 2025-04-06 11:21
mischa850x302580000#asahi-dev · 2025-04-06 11:21
mischa85it's defined in the adt tho#asahi-dev · 2025-04-06 11:15
mischa85which was my first approach but the aic timer crashes as it's probably not enabled via pmgr#asahi-dev · 2025-04-06 11:13
mischa85to actually run the timer#asahi-dev · 2025-04-06 11:11
mischa85the timer idea would probably work to fire an interrupt but only with smp working#asahi-dev · 2025-04-06 11:10
mischa85i can only say, the output is consistent#asahi-dev · 2025-04-06 11:10
mischa85sven: yes, i realized. so this is why this experiment will need to be done on another cpu and doesn't work with only the boot cpu#asahi-dev · 2025-04-05 21:21
mischa85but to be honest, i just hardly know what i'm doing#asahi-dev · 2025-04-05 19:58
mischa85even tho the bytes seem a little weird and i could not get the syntax correctly#asahi-dev · 2025-04-05 19:58
mischa85it always returns what goes in via x1