2026-06-21
00:15gargantua has quit [Ping timeout: 480 seconds]
00:19gargantua has joined #asahi-dev
00:23nela has quit [Quit: Ping timeout (120 seconds)]
00:24nela has joined #asahi-dev
01:07chadmed has quit [Quit: Konversation terminated!]
01:20chadmed has joined #asahi-dev
01:24chadmed has quit [Remote host closed the connection]
01:27chadmed has joined #asahi-dev
01:32chadmed has quit [Remote host closed the connection]
01:32cow123 has joined #asahi-dev
01:36chadmed has joined #asahi-dev
02:00yurix has quit [Remote host closed the connection]
02:00yurix has joined #asahi-dev
02:00ciara has quit [Remote host closed the connection]
02:09chadmed has quit [Remote host closed the connection]
02:13ciara has joined #asahi-dev
02:28tobhe has joined #asahi-dev
02:35tobhe_ has quit [Ping timeout: 480 seconds]
02:44hdbngr has joined #asahi-dev
02:52hdbngr has quit [Ping timeout: 480 seconds]
02:55chadmed has joined #asahi-dev
02:59ddxtanx has quit [Remote host closed the connection]
03:01ddxtanx has joined #asahi-dev
03:01ddxtanx has quit [Remote host closed the connection]
03:02chadmed has quit [Remote host closed the connection]
03:03ddxtanx has joined #asahi-dev
03:07gargantua has quit [Ping timeout: 480 seconds]
03:17mischa85and I think these are now verified correct: https://github.com/mischa85/m1n1/commit/f4441d92f4d2c3847c2e9ac888e2672226d19c54
03:20mischa85 has quit [Quit: Lost terminal]
03:57marvin24 has joined #asahi-dev
04:00paulwalker has quit [Remote host closed the connection]
04:02paulwalker has joined #asahi-dev
04:16hdbngr has joined #asahi-dev
04:24hdbngr has quit [Ping timeout: 480 seconds]
04:26hdbngr has joined #asahi-dev
04:31pb17 has quit [Ping timeout: 480 seconds]
04:34hdbngr has quit [Ping timeout: 480 seconds]
04:35pb17 has joined #asahi-dev
04:36gargantua has joined #asahi-dev
04:37hdbngr has joined #asahi-dev
04:46hdbngr has quit [Ping timeout: 480 seconds]
05:09chadmed has joined #asahi-dev
05:10chadmedfixed the iova faults by saving and restoring dart state at runtime pm. im still not convinced this is the way forward.
05:10chadmednow we're not getting the vpdone interrupt though, and ffmpeg wont see the thing as a v4l2m2m device
05:36chadmed has quit [Remote host closed the connection]
06:24gargantua has quit [Ping timeout: 480 seconds]
06:25hdbngr has joined #asahi-dev
06:34hdbngr has quit [Ping timeout: 480 seconds]
06:43hdbngr has joined #asahi-dev
06:50chadmed has joined #asahi-dev
06:52hdbngr has quit [Ping timeout: 480 seconds]
06:54hdbngr has joined #asahi-dev
07:03hdbngr has quit [Ping timeout: 480 seconds]
07:04zkrx has quit []
07:04sofus has joined #asahi-dev
07:06zkrx has joined #asahi-dev
07:08chadmedyeah sure, they were PMD not set for 0xc000000 and another address that looked like a buffer. fixed by saving/restoring dart in the runtime pm functions
07:08sofusits not really a v4l2m2m device, ffmpeg only supports it with patches. I was pretty supprised to see gentoo had those patches applied. Run with -hwaccel v4l2request
07:09hdbngr has joined #asahi-dev
07:11chadmed has quit [Remote host closed the connection]
07:12JamesCalligeros[m]oh fun :p
07:12JamesCalligeros[m]I’ll try with gstreamer soon
07:25hdbngr has quit [Ping timeout: 480 seconds]
07:32JamesCalligeros[m]this is a dart error anyway
07:33JamesCalligeros[m]but clearly some pagetable or another is getting blown away on suspend and with the current design we need to save and restore dart state at runtime pm
07:33JamesCalligeros[m]im more concerned about the mailbox seemingly never having anything other than 0x4 in it
07:34JamesCalligeros[m]i did consider adding logging to the firmware but thats a big job for a sunday afternoon
07:35sofusi had that in the start but its not really usefull anymore. This is just a documentation problem on my part sorry.
07:36JamesCalligeros[m]interesting, my test video is a bog standard nv12 main 4.2 h264 thing
07:41sofuswould you mind testing https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/AVCv1/AUD_MW_E.zip
07:41JamesCalligeros[m]yeah sure
07:46JamesCalligeros[m]sigh do i need to add v4l2h264dec to the gst-plugins-bad ebuild
07:51JamesCalligeros[m]oh well in that case no, same issue
07:54pb17 has quit [Ping timeout: 480 seconds]
07:55JamesCalligeros[m]possible v3t2? :p
07:57JamesCalligeros[m]do we need a trace from this machine then?
07:59pb17 has joined #asahi-dev
08:02sofusthe reset handler is not actually needed, i just found that the device does not power down unless dart also does
08:14hdbngr has joined #asahi-dev
08:17JamesCalligeros[m]jannau: yep, should be fine to apply minus the graph.dot patches
08:17JamesCalligeros[m]And the trivial M3 patch in the draft PR
08:23hdbngr has quit [Ping timeout: 480 seconds]
08:24sofusJamesCalligeros[m]: in avd-inst.h force it to take the else path in push_rvra and push_address
08:27hdbngr has joined #asahi-dev
08:29JamesCalligeros[m]status now has 0x104 in it which is good, but if i fix the dart errors it goes back to 0x4...
08:35hdbngr has quit [Ping timeout: 480 seconds]
08:40JamesCalligeros[m]sofus: no change from changing the push functions: https://paste.debian.net/hidden/1e6e8213
08:40JamesCalligeros[m]in better news, t6021 works just fine
08:40JamesCalligeros[m]with the cleanup branch too :P
08:43sofusin hw.c t8112_configure_stream AVD_V4_VP_INSN_FIFO_IOVA_LO change addr & 0xffffffff into addr >> 8
08:48JamesCalligeros[m]progress, it does.... something and then explodes
08:49___nick___ has joined #asahi-dev
08:49JamesCalligeros[m]mmm we still get translation faults occasionally and then interrupt storms, and the frames are all garbled
08:49JamesCalligeros[m]one sec
08:49integralpilot has joined #asahi-dev
08:55JamesCalligeros[m]vpdone and ppdone both come in for some frames, then other frames time out
08:55JamesCalligeros[m]dart is getting thousands
08:55JamesCalligeros[m][ 37.217508] apple_dart_t8110_irq: 10394 callbacks suppressed
08:56JamesCalligeros[m]we're hitting addresses with no pte
08:57sofusyeah, im thinking its timing out for some reason, ffmpeg frees the buffers and then on the next frame it tries to decode those deallocated buffers
09:07JamesCalligeros[m]I’ll sort out the v4l2 decoder and try that later then
09:11hdbngr has joined #asahi-dev
09:19hdbngr has quit [Ping timeout: 480 seconds]
09:21pb17 has quit [Ping timeout: 480 seconds]
09:24pb17 has joined #asahi-dev
09:32ehiggs[m] has joined #asahi-dev
09:37integralpilothi everyone, long time no see, hope everything's been well! i've been really busy unfortunently but its school holidays now so i've got a bit of free time. any problems i could help with?
09:38integralpiloti think i remember before i was working on MTP/DockChannel upstreaming, if that's still needed (i think we needed to rewrite dockchannel as a mailbox?) happy to help with that :)
09:40JamesCalligeros[m]yuka was just talking about this earlier today
09:42JamesCalligeros[m]How do you want to incinerate two weeks? Having fun or doing housekeeping :p
09:44JamesCalligeros[m]jannau: i dont think new-audio has the required devicetree changes. I will sort those when i get home and push those out
09:45JamesCalligeros[m]This was the last major thing blocking upstreaming that isnt shared gpio so i will probably do some cleanup and push to the list for 7.4 or 7.5 all being well
09:46jannauwelcome back integralpilot, do I remember correctly that you have a base M3 device? if so it would be nice if you can test if cpu core 4 is much slower than the other 3 perf cores for you as well.
09:47JamesCalligeros[m]nickchan: you can unwrap the compressed kernel image from the PE right
09:48jannau40% in coremark, you'll need m1n1 t8122 cpufreq from https://github.com/AsahiLinux/m1n1/pull/605
09:50jannauI think most linux distros build with EFI_ZBOOT as that's the only way of having a self-decompressinf kernel
09:57nickchanu-boot only works with 4k paging though i have modified it to make 64k paging work pre-m1
09:58nickchanuboot has no concept of any pagesize other than 4k so it was a bit annoying but im past that
09:59nickchani think u-boot can work if i can specify in memory where the kernel and initramfs is when creating the payload that is appended to m1n1
10:02integralpilotjannau: thanks! yes, i do, i will check now
10:02integralpilot has quit [Remote host closed the connection]
10:04nickchanif i use u-boot then I have to make linux.py's uboot bootcmd generation in C and add a new payload type that's the u-boot + kernel + initramfs blob
10:14nickchanthen I can use the same bootflow as on m1 and the m1n1 sent over usb can just be some generic one that chainloads off disk
10:20sofus has quit [Ping timeout: 480 seconds]
10:27JamesCalligeros[m]sofus: gstreamer doesnt even show a frame :(
10:28JamesCalligeros[m]problem for next weekend now
10:28sofus has joined #asahi-dev
10:28hdbngr has joined #asahi-dev
10:30JamesCalligeros[m]at least we made progress
10:30JamesCalligeros[m]firmware works and we get a green vomit mess but its something
10:31chadmed has joined #asahi-dev
10:32sofuswhenever you get a chance, in avd-h264.c add a >> 4 to the two hdr_21{8,c}_width_align pushes
10:33chadmed has quit []
10:34chadmed has joined #asahi-dev
10:36chadmeddma mask can stay as 41 btw, so it's pmuch just this and the push_rvra/push_address changes
10:37hdbngr has quit [Ping timeout: 480 seconds]
10:39chadmedanyway new problem with hevc just dropped but it's just a null pointer deref so hopefully an easy fix
10:40sofushevc support is likeley gonna take a bit longer, its a lot of magic numbers and calculations right now
10:46chaos_princessthrow it on t8122/t603x
10:48chaos_princesscan only do t6031, and it is in use rn, but sure
10:51chaos_princessi can check the t6000 too if you want, with the same caveat of "a bit later"
10:53chadmed has quit [Quit: Konversation terminated!]
10:55chadmed has joined #asahi-dev
10:57hdbngr has joined #asahi-dev
11:05___nick___ has quit [Remote host closed the connection]
11:06hdbngr has quit [Ping timeout: 480 seconds]
11:09___nick___ has joined #asahi-dev
11:15qyliss has quit [Quit: bye]
11:17devadri has quit [Ping timeout: 480 seconds]
11:17qyliss has joined #asahi-dev
11:18ddxtanx_ has joined #asahi-dev
11:19ddxtanx has quit [Read error: Connection reset by peer]
11:26chadmedjannau: please see new-audio and audio-dts. i dropped the graph.dot commits out and fixed macaudio to use the dt prop that ended up being merged (not what was there earlier)
11:29hdbngr has joined #asahi-dev
11:38hdbngr has quit [Ping timeout: 480 seconds]
11:38mattia013 has joined #asahi-dev
11:41chadmedhttps://lore.kernel.org/asahi/20250518-mca-fixes-v1-0-ee1015a695f6@gmail.com/ did these commits just never actually get applied lmfao
11:51sofus has quit [Ping timeout: 480 seconds]
11:55hdbngr has joined #asahi-dev
12:07hdbngr has quit [Ping timeout: 480 seconds]
12:14amarioguy has quit [Ping timeout: 480 seconds]
12:16hdbngr has joined #asahi-dev
12:17gargantua has joined #asahi-dev
12:24hdbngr has quit [Ping timeout: 480 seconds]
12:26hdbngr has joined #asahi-dev
12:35gargantu1 has joined #asahi-dev
12:39hdbngr has quit [Ping timeout: 480 seconds]
12:39gargantua has quit [Ping timeout: 480 seconds]
12:40hdbngr has joined #asahi-dev
12:43gargantu1 has quit [Ping timeout: 480 seconds]
12:47ralim8 has quit [Quit: The Lounge - https://thelounge.chat]
12:48ralim8 has joined #asahi-dev
12:52gargantua has joined #asahi-dev
13:03chadmedfeel free to test https://github.com/chadmed/linux/tree/avd-test with https://github.com/chadmed/avd-fw/tree/cleanup if youd like
13:05gargantu1 has joined #asahi-dev
13:08chadmedimo the firmware should abstract away a few more of these stupid little differences between socs otherwise the driver is going to become painful to maintai
13:09gargantua has quit [Ping timeout: 480 seconds]
13:09chadmed"the addressing is identical except on this one machine where it has to be shifted right by 4 bits" is the kind of thing the driver should not have to care about given we control the firmware
13:17mischa85 has joined #asahi-dev
13:19hdbngr has quit [Ping timeout: 480 seconds]
13:23hdbngr has joined #asahi-dev
13:38amarioguy has joined #asahi-dev
13:40hdbngr has quit [Ping timeout: 480 seconds]
13:56chadmed has quit [Quit: Konversation terminated!]
13:56chadmed has joined #asahi-dev
14:01hdbngr has joined #asahi-dev
14:10hdbngr has quit [Ping timeout: 480 seconds]
14:12enverbalalic has joined #asahi-dev
14:32hdbngr has joined #asahi-dev
14:40chaos_princessffmpeg times out, how do i operate gstreamer correctly?
14:41hdbngr has quit [Ping timeout: 480 seconds]
14:41enverbalalic has quit [Remote host closed the connection]
14:45sofus has joined #asahi-dev
14:48enverbalalic has joined #asahi-dev
14:51chaos_princesst6000, yes, i think
14:52chaos_princessframe processing timerd out vp 4
14:53chaos_princessavd 286000000.avd: Frame processing timed out! Vp: 4 (00)
14:53chaos_princessusing AUD_MW_E.264
14:54sofusgst-launch-1.0 filesrc location= AUD_MW_E.264 ! h264parse ! v4l2slh264dec ! videoconvert ! autovideosink
14:56chaos_princessffmpeg -v verbose -hwaccel v4l2request -i AUD_MW_E.264 whatever.mkv -was doing this for ffmpeg
14:59myriadoes anyone have a minimal asahi config I can use? The one in arch/arm64/configs is too small for nixos.
14:59chaos_princesssofus: the ones under if (avd->variant->revision == 3) ?
15:02chaos_princessmyria: start with distro config and enable everything that has "apple" or "asahi" in the name. that will get you close
15:02chaos_princesssofus: same result
15:04chaos_princessusing chadmed's cleanup branch for firmware if that matters
15:07myriachaos_princess: I was already doing that with the nixos kernel, but this was pulling in so much that it took an hour to build. Just trying to get something smaller
15:08chaos_princessi can send you mine that builds in sub 10-ish mins on a m1pro
15:09chaos_princessbut it is not minimal and is opinionated in places
15:09myriaFair. if you could that'd be great. I'm currently stealing one from a random github user so what have I got to lose
15:14Dementor[m] has joined #asahi-dev
15:19chaos_princessno dart errors. (non zero chance that they are just suppressed)
15:21enverbalalic has quit [Ping timeout: 480 seconds]
15:22ninelore has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:23gargantu1 has quit [Ping timeout: 480 seconds]
15:25enverbalalic has joined #asahi-dev
15:30sofusokay, t6000 needs the same fixes as t8112, but the lack of dart faults indicates something else is also wron
15:33hdbngr has joined #asahi-dev
15:35chaos_princesswhiic are the t8112 fixes?
15:40enverbalalic has quit [Ping timeout: 480 seconds]
15:42BlueMatt has quit []
15:42BlueMatt has joined #asahi-dev
15:43hdbngr has quit [Ping timeout: 480 seconds]
15:47enverbalalic has joined #asahi-dev
15:49croissant` has quit []
15:49croissant has joined #asahi-dev
15:54chaos_princessstill timeout
15:56enverbalalic has quit [Ping timeout: 480 seconds]
15:58sofusthats very weird! please add the avd_status(avd, 4) somewhere also, that would (maybe) tell me if anything at all is happening
16:01enverbalalic has joined #asahi-dev
16:13enverbalalic has quit [Ping timeout: 480 seconds]
16:14enverbalalic has joined #asahi-dev
16:21pb17 has quit [Ping timeout: 480 seconds]
16:22chaos_princessfailed to cherry-pick everything
16:22chaos_princessor missing a config flag
16:23chaos_princessoh, your thing probably does not expect a dart built as module
16:25myriaYeah, it is a module. Okay, thanks, might have to get back to it tomorrow as it's getting late. Thanks for all the help everyone!
16:34hdbngr has joined #asahi-dev
16:39pb17 has joined #asahi-dev
16:41gargantua has joined #asahi-dev
16:42enverbalalic has quit [Ping timeout: 480 seconds]
16:43hdbngr has quit [Ping timeout: 480 seconds]
16:46XeR has quit [Remote host closed the connection]
16:46XeR has joined #asahi-dev
16:50enverbalalic has joined #asahi-dev
17:00Guest11500 has quit [Quit: Bridge terminating on SIGTERM]
17:00rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
17:02XeR has quit [Remote host closed the connection]
17:03XeR has joined #asahi-dev
17:05rhysmdnz has joined #asahi-dev
17:06Guest11708 has joined #asahi-dev
17:23ddxtanx_ has quit [Quit: Konversation terminated!]
17:25ddxtanx_ has joined #asahi-dev
17:35hdbngr has joined #asahi-dev
17:41mischa85Reached 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.
17:43___nick___ has quit []
17:44hdbngr has quit [Ping timeout: 480 seconds]
17:45hdbngr has joined #asahi-dev
17:45___nick___ has joined #asahi-dev
17:45ddxtanx_ has quit [Quit: Konversation terminated!]
17:45___nick___ has quit []
17:46ddxtanx_ has joined #asahi-dev
17:46ddxtanx_ has quit []
17:47ddxtanx_ has joined #asahi-dev
17:47___nick___ has joined #asahi-dev
17:50mischa85Derp. You are right. They don't lost their state. Good to know because that was a wrong assumption I had here for a while
17:54hdbngr has quit [Ping timeout: 480 seconds]
17:54svennohlt is probably fine for now, long-term we need whatever yuka comes up with that's accepted upstream to place wfi with nop or yield or whatever and that psci-via-efi thingy to actually get to reasonable power consumption
17:56mattia013 has quit [Ping timeout: 480 seconds]
17:56mischa85I 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.
17:59flokli has quit [Quit: WeeChat 4.9.0]
18:00flokli has joined #asahi-dev
18:07ddxtanx_ has quit [Quit: Konversation terminated!]
18:07ddxtanx_ has joined #asahi-dev
18:07hdbngr has joined #asahi-dev
18:08gargantua has quit [Ping timeout: 480 seconds]
18:16hdbngr has quit [Ping timeout: 480 seconds]
18:22ddxtanx_ has quit [Quit: Konversation terminated!]
18:22ddxtanx_ has joined #asahi-dev
18:27ddxtanx_ has quit [Quit: Konversation terminated!]
18:28ddxtanx_ has joined #asahi-dev
18:36hdbngr has joined #asahi-dev
18:38ddxtanx_ has quit [Quit: Konversation terminated!]
18:38ddxtanx_ has joined #asahi-dev
18:41enverbalalic has quit [Remote host closed the connection]
18:42enverbalalic has joined #asahi-dev
18:44pb17 has quit [Ping timeout: 480 seconds]
18:45hdbngr has quit [Ping timeout: 480 seconds]
18:46pb17 has joined #asahi-dev
18:48ddxtanx_ has quit [Quit: Konversation terminated!]
18:48ddxtanx_ has joined #asahi-dev
18:49enverbalalic has quit [Remote host closed the connection]
18:56Z750 has quit [Quit: bye]
18:58ddxtanx_ has quit [Quit: Konversation terminated!]
18:59ddxtanx_ has joined #asahi-dev
18:59ddxtanx_ has quit []
18:59ddxtanx_ has joined #asahi-dev
19:03enverbalalic has joined #asahi-dev
19:05Z750 has joined #asahi-dev
19:09ddxtanx_ has quit [Quit: Konversation terminated!]
19:10hdbngr has joined #asahi-dev
19:10yuyichao has quit [Quit: Konversation terminated!]
19:10ddxtanx_ has joined #asahi-dev
19:11yuyichao has joined #asahi-dev
19:11gargantua has joined #asahi-dev
19:13enverbalalic has quit [Ping timeout: 480 seconds]
19:18hdbngr has quit [Ping timeout: 480 seconds]
19:26ddxtanx_ has quit [Quit: Konversation terminated!]
19:26yuyichao has quit [Quit: Konversation terminated!]
19:26yuyichao has joined #asahi-dev
19:26ddxtanx_ has joined #asahi-dev
19:26ddxtanx_ has quit []
19:28ddxtanx_ has joined #asahi-dev
19:33ddxtanx_ has quit [Quit: Konversation terminated!]
19:33ddxtanx_ has joined #asahi-dev
19:37hdbngr has joined #asahi-dev
19:43ddxtanx_ has quit [Quit: Konversation terminated!]
19:43ddxtanx_ has joined #asahi-dev
19:43ddxtanx_ has quit []
19:44ddxtanx_ has joined #asahi-dev
19:44ddxtanx_ has quit []
19:44ddxtanx_ has joined #asahi-dev
19:48sofus has quit [Ping timeout: 480 seconds]
19:54ddxtanx_ has quit [Quit: Konversation terminated!]
19:55ddxtanx_ has joined #asahi-dev
19:55ddxtanx_ has quit []
19:55ddxtanx_ has joined #asahi-dev
19:55ddxtanx_ has quit []
19:56ddxtanx_ has joined #asahi-dev
20:06___nick___ has quit [Remote host closed the connection]
20:11ddxtanx_ has quit [Quit: Konversation terminated!]
20:11ddxtanx_ has joined #asahi-dev
20:32sofus_ has joined #asahi-dev
20:35EpicMan has joined #asahi-dev
20:36EpicManwondering if anyone knows what 3_4_C15_C10_3 does and/or what its reset value is/should be
20:36ddxtanx_ has quit [Quit: Konversation terminated!]
20:36ddxtanx_ has joined #asahi-dev
20:37cyrinux949075 has quit []
20:45mischa85I tried to get MTP/keyboard working for a bit, but it's really poking a stick in the dark at the moment
20:49svenEpicMan: what are you trying to do? looks like we don't know what that reg does, otherwise it would usually be in there https://github.com/AsahiLinux/m1n1/blob/04bad8c9908e734dbe9d0389f594447520232a94/proxyclient/m1n1/apple_regs.json#L165
20:51enverbalalic has joined #asahi-dev
20:54enverbalalic has quit [Remote host closed the connection]
20:54enverbalalic has joined #asahi-dev
20:56ddxtanx_ has quit [Quit: Konversation terminated!]
20:56ddxtanx_ has joined #asahi-dev
20:56enverbalalic has quit []
20:57enverbalalic has joined #asahi-dev
21:01sofus_ has quit [Quit: Lost terminal]
21:04mischa85 has quit [Quit: Lost terminal]
21:26hdbngr has quit [Ping timeout: 480 seconds]
21:40enverbalalic has quit [Quit: enverbalalic]
21:42enverbalalic has joined #asahi-dev
21:42EpicMan has quit [Quit: Leaving]
23:04gargantua has quit []
23:08gargantua has joined #asahi-dev
23:20hdbngr has joined #asahi-dev
23:28hdbngr has quit [Ping timeout: 480 seconds]