2026-06-17
00:03hdbngr has quit [Read error: No route to host]
00:23anon has joined #asahi-dev
00:34freetolga has quit [Quit: Connection closed for inactivity]
01:00pb17 has quit [Ping timeout: 480 seconds]
01:02pb17 has joined #asahi-dev
01:30amarioguy has quit [Read error: Connection reset by peer]
01:59nnym has quit [Remote host closed the connection]
02:00yurix has quit [Remote host closed the connection]
02:00yurix has joined #asahi-dev
02:00nnym has joined #asahi-dev
02:25kaleryeblueberryoboe has joined #asahi-dev
02:33tobhe has joined #asahi-dev
02:39tobhe_ has quit [Ping timeout: 480 seconds]
03:02tjemke775 has joined #asahi-dev
03:02XeR has quit [Remote host closed the connection]
03:04XeR has joined #asahi-dev
03:05XeR has quit [Remote host closed the connection]
03:06XeR has joined #asahi-dev
03:07tjemke77 has quit [Ping timeout: 480 seconds]
03:07tjemke775 is now known as tjemke77
03:12turboretor has joined #asahi-dev
03:59kaleryeblueberryoboe has quit [Ping timeout: 480 seconds]
04:01marvin24 has quit [Ping timeout: 480 seconds]
04:08kaleryeblueberryoboe has joined #asahi-dev
04:15ocaml_ has joined #asahi-dev
04:17ocaml_ has left #asahi-dev [#asahi-dev]
04:21arunava has joined #asahi-dev
04:22pb17 has quit [Ping timeout: 480 seconds]
04:28arunava has quit [Remote host closed the connection]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:34arunava has joined #asahi-dev
04:41pb17 has joined #asahi-dev
04:47arunava has quit [Ping timeout: 480 seconds]
04:53kaleryeblueberryoboe has quit [Remote host closed the connection]
04:54kaleryeblueberryoboe has joined #asahi-dev
05:11kaleryeblueberryoboe has quit [Ping timeout: 480 seconds]
05:16jvoisin has quit [Ping timeout: 480 seconds]
05:32mattia013 has joined #asahi-dev
06:07jvoisin has joined #asahi-dev
06:24Calandracas__ has quit [Ping timeout: 480 seconds]
06:37sofus has joined #asahi-dev
07:14mattia013 has quit [Remote host closed the connection]
07:19mripard has joined #asahi-dev
07:37sofusanyone with an m1/m2 willing to test my avd driver? Fair warning: it might cause a system freeze
07:38sofusyou can get the firmware here https://github.com/sofus13/avd-fw.git run make (use VERSION=2 for M1) and copy to the vendor/apple firmware path
07:45chadmeda shim is something that sits between two other things but doesnt really do much by itself. the term comes from thin sheets of metal that are used to space things out a precise amount but in software refers to small bits of software that basically just shuttle messages between two other bigger pieces of software
07:53chadmednot sure i like the trace replays in avd_hw.c. do we understand what any of that does? iirc some of it was setting up interrupts and tunables but not all of it
07:59sofusi found https://github.com/ArcaneNibble/m1n1/blob/avd/proxyclient/m1n1/hw/avd.py which has names for most of the registers on m2
08:01chaos_princessbtw, have you ran h264 conformance on it?
08:02chadmedyou can probably make that a bit less ambiguous by defining some of those things we know about
08:03chaos_princesshttps://pastebin.com/LcMSyfUU - this is my pre-sorted conformance test dir from when i was poking at it. ns-vt means 'macos does not support it, do not bother', and ns-ffmpeg is 'ffmpeg does not support it'
08:07svenkettenis: yeah, I just don’t remember who it was but it seems quite reasonable and simple to implement so far
08:08sofusthe driver is not smart about resets, so if an error happens while multiple things are decoding they all fail
08:12gargantua has joined #asahi-dev
08:31cy8aer has quit [Remote host closed the connection]
08:32Calandracas has joined #asahi-dev
08:38chaos_princessstrange, as we know that m3 grew on av1 support
08:39chaos_princessvp9, and even in m3 the system is still tsundere about it and only allows safari to use it
08:40chaos_princessundocumented
08:41chaos_princessrip it out of the kdk
08:41chaos_princessit is baked into the kext
08:41Sobek[m]chaos_princess: The system as in macOS, right ? Asahi might be able to use it ? Or is this a dangerous patent license minefield ?
08:41chaos_princessif you throw the kext into ghidra
08:42chadmedianal but my understanding is that apple has paid whatever licence fees as the "implementor" being that the implementation of the codec is in hardware
08:42chaos_princessSobek[m]: macos only supports vp9 reluctantly, and only for playing youtube in safari. But the hw is there.
08:42chaos_princessvvc is a joke
08:43chadmedunless the streamers really put their feet down i suspect itll still end up a "standard" anyway
08:43cy8aer has joined #asahi-dev
08:44chaos_princessi don't expect it to be used outside of dvb/atsc/similar.
09:37arunava has joined #asahi-dev
09:38arunavahi, i got a spare mac m1, a linux machine, and plenty of free time (holidays ye :), i've prev ctfs and programming exp in c/py etc. anything good first issue for me to poke into (can be anything)..? thanks.
10:00arunava has quit [Read error: Connection reset by peer]
10:05arunava has joined #asahi-dev
10:15arunava has quit [Read error: Connection reset by peer]
10:16arunava has joined #asahi-dev
10:29arunava has quit [Read error: Connection reset by peer]
10:39enick_227111 has quit [Quit: Bridge terminating on SIGTERM]
10:39rhysmdnz1111 has quit [Quit: Bridge terminating on SIGTERM]
10:45arunava has joined #asahi-dev
10:46paulwalker has joined #asahi-dev
10:48rhysmdnz has joined #asahi-dev
10:49Jamie has joined #asahi-dev
10:49Jamie is now known as Guest11490
10:59midou has quit [Ping timeout: 480 seconds]
11:04kitlith has quit [Read error: Connection reset by peer]
11:04kitlith has joined #asahi-dev
11:05arunava has quit [Remote host closed the connection]
11:56XeR has quit [Remote host closed the connection]
11:56XeR has joined #asahi-dev
11:57midou has joined #asahi-dev
12:07picnoir has quit [Ping timeout: 480 seconds]
12:17pb17 has quit [Ping timeout: 480 seconds]
12:18gargantua has quit [Ping timeout: 480 seconds]
12:19kaleryeblueberryoboe has joined #asahi-dev
12:21picnoir has joined #asahi-dev
12:31pb17 has joined #asahi-dev
12:32kaleryeblueberryoboe has quit [Ping timeout: 480 seconds]
12:45yurix has quit [Remote host closed the connection]
12:46yurix has joined #asahi-dev
13:59jvoisin` has joined #asahi-dev
14:03jvoisin has quit [Ping timeout: 480 seconds]
14:13minecrell has quit [Quit: :/]
14:31mattia013 has joined #asahi-dev
14:31jvoisin` has quit []
14:31jvoisin has joined #asahi-dev
14:33fl0_id_afk has quit [Quit: ZNC - https://znc.in]
14:33fl0id_oftc has quit [Quit: ZNC - https://znc.in]
14:35fl0id_oftc has joined #asahi-dev
14:35step21 has joined #asahi-dev
14:39amarioguy has joined #asahi-dev
15:16hardy94 has joined #asahi-dev
15:26hardy94 has quit [Quit: hardy94]
15:26hardy94 has joined #asahi-dev
15:46svenhrm... thinking about that one again. we know that the core loads a value from the stack for LR that should've been overwritten and we're in the middle of mmu enabling code
15:47svenis there any way that old value somehow made it into some cache that's now enabled and we read the stale value instead of the correct that should've been propagated to DRAM? i don't quite see how that could happen though
15:48pb17 has quit [Remote host closed the connection]
15:48pb17 has joined #asahi-dev
15:54chaos_princessspam every single cache flush thingy around it?
16:19sofus has quit [Quit: leaving]
16:22svenhrm, so i guess the stack is still mapped cachable by the other cores and they might speculatively read it for some reason? maybe? so core 1 writes stale value X to stack, core 0 decides to speculate and read it so that we now have a cacheline with value X, core 1 writes value Y to stack (and directly to DRAM bypassing all caches), core 1 enables
16:22svendunno if that makes sense or if there's any reason for the first core to speculatively read that value
16:30jmax[m]A shot in the dark, Can we use percpu stacks and globals? Or is that already the case but we have instances where cores share pointers to date in their own stacks? Or do we not even do that and we suspect cores are snooping each other's caches through speculation?
16:30jmax[m]Thinking if it's only related to code layout/vars/stack use and not timing, you could just change the MMU mappings for all regions to be Device to disable speculation and see if the issue goes away (as an experiment)
16:30jmax[m]Is the sensitivity (crashing vs not) mostly related to code layout/memory addresses? Or is it related to latencies? (I.e. if you only change a loop counter in some delay function, does the issue go away)?
16:31sveneach core already has their own stack which is why i'm not sure this can even happen. it would have to be core 0 deciding to speculatively fetch core 1's stack for some weird reason at just the wrong time
16:32sveni don't know what it's related to, putting barriers at the right/wrong places makes it disappear. putting udelay or printf somewhere also makes it disappear
16:46rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:46Guest11490 has quit [Quit: Bridge terminating on SIGTERM]
16:50rhysmdnz has joined #asahi-dev
16:51Guest11500 has joined #asahi-dev
17:02Ardu0us_ has joined #asahi-dev
17:07Ardu0us has quit [Ping timeout: 480 seconds]
17:27marvin24 has joined #asahi-dev
17:37pb17 has quit [Ping timeout: 480 seconds]
17:38gargantua has joined #asahi-dev
17:46jmax[m]I remember you running into this a long while ago. Was it happening on the same SoC you're hitting it on now or is it still the same SoC as before?
17:46jmax[m]Maybe it's one of these messy things related to multiple layers of caches? Like a core speculating and bringing the data into its own _cluster's_ L2 then another core in the same cluster reading the stale value?
17:46jmax[m]Yeah I think the best first step would be to create the absolutely smallest repro (a super localized diff, for example a single byte change in a single instruction, which may affect it), since it seems to be super sensitive to any kind of change to code structure or data access patterns. But yeah I'd imagine things going into weird states as cores race to enable the MMU and their caches.
17:49pb17 has joined #asahi-dev
17:50svenjmax[m]: i haven't been able to build a simple reproduction case yet unfortunately :D same soc fwiw
17:51yukaI wonder if it is because I have so few drivers enabled that none of them is using delay() :D
17:51sveni think the only two wfis that matter are the idle loop and that __delay function when wfit is available
17:51yukaexactly, and I haven't found out yet if nohlt would prevent the wfit in the delay function from being used
17:54mazit's going to be interesting in a guest, we'll have to make sure that we never WFI there at all.
17:56mazyes, but we tend to leave the vcpu to WFI in the guest if it is alone in the run queue. this optimisation will have to go.
17:57mazalthough it is more useful for WFE than WFI on this HW, since we don't have any direct injection of interrupts.
18:04hardy94@sven does it makes sense to write an qemu based emulator to trace the upper working Code from Apple ?
18:05gargantu1 has joined #asahi-dev
18:06hardy94i am trying to run the Apple binary which is quite esseantial if we wanna run our (m1n1) binaries
18:07chaos_princessand how does that help with running m1n1?
18:08gargantua has quit [Ping timeout: 480 seconds]
18:08hardy94it is quite simple ... if we have an working emulator we know how the device runs. The deployment time of the m1n1 takes approx 2 Minutes and thats a huge time in my humble
18:09chaos_princess> if we have an working emulator
18:09chaos_princessthat's a very load-bearing if
18:09chaos_princessespecially since it would require you to already know how the hw works
18:09chaos_princesselaborate?
18:10chaos_princessi'd say necessary, but not sufficient, proceed
18:10chaos_princessgive what a try
18:11chaos_princesshardy94: we do not do that here
18:11chaos_princessdo that somewhere else
18:12chaos_princessalso, "binarys" = copyright-tainted, so just no
18:13fr4gm3nt3dm3m0r1e5[m]I wish it was legal to make closed so open
18:13chaos_princessdoesn't matter, if you fed disasm into a llm, this is automatically a "just stop"
18:13svenno need to have this discussion here, we have a policy against using gen ai so if you want to contribute please follow that. if you want to start a separate project that somehow uses claude to port linux or m1n1 or whatever to these machines, sure, go ahead, but please leave us alone
18:48hardy94 has quit [Quit: hardy94]
18:50yukanohlt does not seem to be enough for t8132 not to lose state. it's happens less often (I get further in the boot process and see other crashes) but not fixed.
18:51hardy94 has joined #asahi-dev
18:56steinsgate has joined #asahi-dev
19:05svenif we use nohlt we can't even idle with psci or anything else. that's not gonna be fun long term
19:07sventhough maybe wfe isn't a subset for wfi i guess. don't really feel like reading the reference manual to figure out the difference right now
19:23minecrell has joined #asahi-dev
19:28jannauyuka: the boot cpu on m4 never loses state in wfi? Doesn't that suggests that it is still somehow configurable?
19:30yukaall the way back, the "default" state was that the boot cpu does not lose state, but other cores do (on some older cpus, the first p-core also doesn't lose state, but the first e-core on M4 / A18 Pro does lose state)
19:35yukajannau: but it's still possible that switch_boot_cpu. the idle loop won't run before the patching.
19:35sven__delay because the cpufeature detection also only happens after early_param stuff and just before the alternative patching afaict
19:37svencould it be that we have some irqs unmasked or something that constantly reach the first core?
19:39flokliI installed 26.6 beta 2 (mBoot-18000.160.14.501.1) and msr((3, 5, 15, 1, 3), mrs((3, 5, 15, 1, 3))) does throw an exception. t6040
19:49yukaI'm still unsure why the M4 / M4 Pro are still (regularly) crashing in boot with smp with the wfi/wfit patched out, while I have not seen a single such crash on A18 Pro
19:59kaleryeblueberryoboe has joined #asahi-dev
20:14kaleryeblueberryoboe has quit [Ping timeout: 480 seconds]
20:27pb17 has quit [Ping timeout: 480 seconds]
20:27hardy94 has quit [Quit: hardy94]
20:28kaleryeblueberryoboe has joined #asahi-dev
20:39pb17 has joined #asahi-dev
20:41linuxgemini has quit [Quit: getting (hopefully fresh) air o/]
20:50kaleryeblueberryoboe has quit [Remote host closed the connection]
20:53hardy94 has joined #asahi-dev
20:53hardy94 has quit []
20:55mattia013 has quit [Remote host closed the connection]
21:11gargantu1 has quit [Ping timeout: 480 seconds]
21:19Yushi has quit [Remote host closed the connection]
21:20Yushi has joined #asahi-dev
21:26lederstr- has joined #asahi-dev
21:33lederstrumpf has quit [Ping timeout: 480 seconds]
21:34chaos_princessthe dcp when left in boot mode does not appreciate pmgr misc turning the dcs/fabric clocks down.
21:34chaos_princessso, that will have to wait until dcp driver i think
21:43chaos_princessdcp or misc?
21:43chaos_princesswith misc removed and everything else left as-is, it survives a sleep cycle
21:45chaos_princess-m to run_guest
21:46JamesCalligeros[m]Oh no is that not documented in the user guide
21:46chaos_princessdoesn't loook like those have min-state
21:49JamesCalligeros[m]yuka: ill fix that later today
21:50JamesCalligeros[m]Bit of a silly oversight :p
21:55chaos_princessty, will re-test pmgr misc in a bit
22:22chaos_princessyea, whatever happened makes it even worse, now it kills the display on boot
22:26chaos_princesswith changes in -wip
22:37pb17 has quit [Ping timeout: 480 seconds]
22:44Extern has joined #asahi-dev
22:47pb17 has joined #asahi-dev
23:14Deewiant has quit [Remote host closed the connection]
23:17Deewiant has joined #asahi-dev