#
…

2026-01-09

00:08fl0_idjannau yeah that did it. thanks
00:10icanc has quit [Remote host closed the connection]
00:11icanc has joined #asahi-dev
00:14mixi has quit [Ping timeout: 480 seconds]
00:19icanc has quit [Ping timeout: 480 seconds]
00:22icanc has joined #asahi-dev
00:24mixi has joined #asahi-dev
00:38icanc has quit [Ping timeout: 480 seconds]
00:39cremfuelled has joined #asahi-dev
00:40cremfuelled has quit []
01:03hdbngr has quit [Ping timeout: 480 seconds]
01:10hdbngr has joined #asahi-dev
01:19hdbngr has quit [Ping timeout: 480 seconds]
01:26hdbngr has joined #asahi-dev
01:31icanc has joined #asahi-dev
01:35hdbngr has quit [Ping timeout: 480 seconds]
01:39icanc has quit [Ping timeout: 480 seconds]
01:44hdbngr has joined #asahi-dev
01:52hdbngr has quit [Ping timeout: 480 seconds]
02:01hdbngr has joined #asahi-dev
02:09hdbngr has quit [Ping timeout: 480 seconds]
02:17hdbngr has joined #asahi-dev
02:25hdbngr has quit [Ping timeout: 480 seconds]
02:32icanc has joined #asahi-dev
02:33hdbngr has joined #asahi-dev
02:40icanc has quit [Ping timeout: 480 seconds]
02:42hdbngr has quit [Ping timeout: 480 seconds]
02:43hdbngr has joined #asahi-dev
02:51hdbngr has quit [Ping timeout: 480 seconds]
02:59hdbngr has joined #asahi-dev
03:00integralpilot has joined #asahi-dev
03:07hdbngr has quit [Ping timeout: 480 seconds]
03:15icanc has joined #asahi-dev
03:15chadmed has quit [Read error: Connection reset by peer]
03:15chadmed has joined #asahi-dev
03:16hdbngr has joined #asahi-dev
03:23hexdump01 has joined #asahi-dev
03:24hdbngr has quit [Ping timeout: 480 seconds]
03:25hexdump0815 has quit [Ping timeout: 480 seconds]
03:28icanc has quit [Ping timeout: 480 seconds]
03:32hdbngr has joined #asahi-dev
03:37tobhe has joined #asahi-dev
03:39icanc has joined #asahi-dev
03:40hdbngr has quit [Ping timeout: 480 seconds]
03:44tobhe_ has quit [Ping timeout: 480 seconds]
03:48icanc has quit [Ping timeout: 480 seconds]
03:49hdbngr has joined #asahi-dev
03:57hdbngr has quit [Ping timeout: 480 seconds]
04:00icanc has joined #asahi-dev
04:05hdbngr has joined #asahi-dev
04:09icanc has quit [Ping timeout: 480 seconds]
04:13hdbngr has quit [Ping timeout: 480 seconds]
04:19icanc has joined #asahi-dev
04:20hdbngr has joined #asahi-dev
04:28nora has joined #asahi-dev
04:29hdbngr has quit [Ping timeout: 480 seconds]
04:29nora_ has quit [Ping timeout: 480 seconds]
04:39hdbngr has joined #asahi-dev
04:47hdbngr has quit [Ping timeout: 480 seconds]
04:56hdbngr has joined #asahi-dev
05:05hdbngr has quit [Ping timeout: 480 seconds]
05:10rosalyntg has quit [Ping timeout: 480 seconds]
05:10rosalyntg has joined #asahi-dev
05:12hdbngr has joined #asahi-dev
05:15cremfuelled has joined #asahi-dev
05:21hdbngr has quit [Ping timeout: 480 seconds]
05:25Yushi has joined #asahi-dev
05:29hdbngr has joined #asahi-dev
05:38hdbngr has quit [Ping timeout: 480 seconds]
05:46hdbngr has joined #asahi-dev
05:48cremfuelled has quit [Quit: cremfuelled]
05:54hdbngr has quit [Ping timeout: 480 seconds]
06:00hdbngr has joined #asahi-dev
06:04integralpilot has quit [Ping timeout: 480 seconds]
06:08hdbngr has quit [Ping timeout: 480 seconds]
06:13chadmed has quit [Read error: Connection reset by peer]
06:13chadmed has joined #asahi-dev
06:17hdbngr has joined #asahi-dev
06:25hdbngr has quit [Ping timeout: 480 seconds]
06:34chadmed has quit [Remote host closed the connection]
06:34chadmed has joined #asahi-dev
06:35hdbngr has joined #asahi-dev
06:47hdbngr has quit [Ping timeout: 480 seconds]
06:55hdbngr has joined #asahi-dev
07:03aditya has joined #asahi-dev
07:03hdbngr has quit [Ping timeout: 480 seconds]
07:07integralpilot has joined #asahi-dev
07:11hdbngr has joined #asahi-dev
07:19hdbngr has quit [Ping timeout: 480 seconds]
07:27hdbngr has joined #asahi-dev
07:35hdbngr has quit [Ping timeout: 480 seconds]
07:45hdbngr has joined #asahi-dev
07:54hdbngr has quit [Ping timeout: 480 seconds]
08:02hdbngr has joined #asahi-dev
08:06chadmed has quit [Read error: Connection reset by peer]
08:06chadmed has joined #asahi-dev
08:11hdbngr has quit [Ping timeout: 480 seconds]
08:19hdbngr has joined #asahi-dev
08:28hdbngr has quit [Ping timeout: 480 seconds]
08:31chadmed has quit [Quit: Konversation terminated!]
08:31chadmed has joined #asahi-dev
08:32chadmed has quit []
08:33chadmed has joined #asahi-dev
08:35hdbngr has joined #asahi-dev
08:43chadmed has quit [Ping timeout: 480 seconds]
08:45chadmed has joined #asahi-dev
08:48hdbngr has quit [Ping timeout: 480 seconds]
08:55hdbngr has joined #asahi-dev
09:02HerbY_NL has joined #asahi-dev
09:03hdbngr has quit [Ping timeout: 480 seconds]
09:06nickchanI hate dwc2 with a passion
09:07nickchanI still don't have a dwc2 stack in m1n1 that doesn't break after a few transactions 🙃
09:08nickchanso for a lot of stuff i still use the uart but the signal integrity at baudrate 1500000 is not good
09:11hdbngr has joined #asahi-dev
09:12aditya has quit [Quit: Connection closed for inactivity]
09:19hdbngr has quit [Ping timeout: 480 seconds]
09:26hdbngr has joined #asahi-dev
09:35hdbngr has quit [Ping timeout: 480 seconds]
09:41hdbngr has joined #asahi-dev
09:50hdbngr has quit [Ping timeout: 480 seconds]
09:58hdbngr has joined #asahi-dev
10:06hdbngr has quit [Ping timeout: 480 seconds]
10:09integralpilot has quit [Ping timeout: 480 seconds]
10:15hdbngr has joined #asahi-dev
10:19chadmed has quit [Read error: No route to host]
10:19chadmed has joined #asahi-dev
10:23___nick___ has joined #asahi-dev
10:23hdbngr has quit [Ping timeout: 480 seconds]
10:23ravikant_ has joined #asahi-dev
10:26nickchanon a10x there's a 0x5533300a at 0x20c30c120 though - have not managed to bring that one up
10:26HerbY_NL has quit [Ping timeout: 480 seconds]
10:31hdbngr has joined #asahi-dev
10:39hdbngr has quit [Ping timeout: 480 seconds]
10:42hdbngr has joined #asahi-dev
10:58nnym_ has quit [Quit: quitting out | tjmnkrajyej@gmail.com]
10:58nnym has joined #asahi-dev
11:02chadmed has quit [Read error: Connection reset by peer]
11:02chadmed has joined #asahi-dev
11:06HerbY_NL has joined #asahi-dev
11:06nimprod3l has joined #asahi-dev
11:25___nick___ has quit [Read error: Connection reset by peer]
11:28integralpilot has joined #asahi-dev
11:48chadmed has quit [Quit: Konversation terminated!]
11:49chadmed has joined #asahi-dev
11:50HerbY_NL has quit [Quit: Leaving]
11:50flokli has quit [Quit: WeeChat 4.8.1]
11:52flokli has joined #asahi-dev
11:58okb has joined #asahi-dev
12:21hdbngr has quit [Ping timeout: 480 seconds]
12:21hdbngr has joined #asahi-dev
12:22chadmed has quit [Quit: Konversation terminated!]
12:22chadmed has joined #asahi-dev
12:26amilie has joined #asahi-dev
12:28integralpilot has quit [Quit: integralpilot]
12:32hdbngr has quit [Ping timeout: 480 seconds]
12:38HerbY_NL has joined #asahi-dev
12:39hdbngr has joined #asahi-dev
12:50pb17 has quit [Ping timeout: 480 seconds]
12:51pb17 has joined #asahi-dev
13:01nimprod3l has quit [Read error: Connection reset by peer]
13:01hdbngr has quit [Ping timeout: 480 seconds]
13:03okb has quit [Remote host closed the connection]
13:03okb has joined #asahi-dev
13:08hdbngr has joined #asahi-dev
13:13HerbY_NL has quit [Quit: Leaving]
13:18__nick__ has joined #asahi-dev
13:23hdbngr has quit [Ping timeout: 480 seconds]
13:32hdbngr has joined #asahi-dev
13:41hdbngr has quit [Ping timeout: 480 seconds]
13:42hdbngr has joined #asahi-dev
13:43ravikant_ has quit [Ping timeout: 480 seconds]
13:51hdbngr has quit [Ping timeout: 480 seconds]
13:59hdbngr has joined #asahi-dev
14:02pb17 has quit [Ping timeout: 480 seconds]
14:05pb17 has joined #asahi-dev
14:07hdbngr has quit [Ping timeout: 480 seconds]
14:08jannau"23 files changed, 2245 insertions(+)" usb type-c device tree changes sent
14:12fl0_idhey. does anybody have a good link about early boot kernel debugging? reading kernel code and blog posts etc that I could find were ok. but still not sure if I'm doing things right
14:14fl0_idf.e. I put some printk(KERNEL_EMERG "Some text") into start_kernel() and I assume these should come through on the second serial port. (they don't) The do seem to do something, just not sure what. (it seemed to crash/reboot earlier than ususal, but then that also happened 2-3 times with the same setup as before (exception somewhere on starting cpu 3 or 4)
14:14hdbngr has joined #asahi-dev
14:15fl0_idI did also try to put some assembly in head.S, which had the intended result of rebooting, also when starting cpu 3 or 4, but not as that output is from m1n1, not sure if that is strictly related.
14:18chaos_princessare you running linux at el1 or el2?
14:20fl0_idthis is through EL1, when running run_guest_kernel.sh, as integralpilot said debugging/output would be better/easier than when just running with linux.py directly
14:23hdbngr has quit [Ping timeout: 480 seconds]
14:24chaos_princessso, idea - sprinkle hvc instructions into the function you are debugging
14:30hdbngr has joined #asahi-dev
14:36fl0_idchaos_princess you mean hypervisor calls, not hvc tty driver, right?
14:36chaos_princessyes. just inline asm with a hypervisor call
14:38fl0_idright. ok. looking at that right. I'm not interested in a particular function atm, just trying to figure out where it reaches before exception/crashing
14:38fl0_id*right now
14:39hdbngr has quit [Ping timeout: 480 seconds]
14:39chaos_princessso, binary search with hvc
14:40chaos_princessor multiple hvcs and use m1n1 to release it after each one
14:40duckworld has quit [Ping timeout: 480 seconds]
14:43hdbngr has joined #asahi-dev
14:51ravikant_ has joined #asahi-dev
14:51duckworld has joined #asahi-dev
15:00__nick__ has quit []
15:03john-cabaj has joined #asahi-dev
15:05___nick___ has joined #asahi-dev
15:13nimprod3l has joined #asahi-dev
15:13hdbngr has quit [Ping timeout: 480 seconds]
15:16amilie has quit [Quit: WeeChat 4.5.2]
15:21hdbngr has joined #asahi-dev
15:30hdbngr has quit [Ping timeout: 480 seconds]
15:32hdbngr has joined #asahi-dev
15:34aditya has joined #asahi-dev
15:37ravikant_ has quit [Ping timeout: 480 seconds]
15:40hdbngr has quit [Ping timeout: 480 seconds]
15:48MikeM64 has quit [Read error: Connection reset by peer]
15:50hdbngr has joined #asahi-dev
15:51MikeM64 has joined #asahi-dev
15:52okb has quit [Ping timeout: 480 seconds]
15:59hdbngr has quit [Ping timeout: 480 seconds]
16:04hdbngr has joined #asahi-dev
16:17hamr8 has quit [Ping timeout: 480 seconds]
16:17cremfuelled has joined #asahi-dev
16:19hamr8 has joined #asahi-dev
16:21hdbngr has quit [Ping timeout: 480 seconds]
16:28hdbngr has joined #asahi-dev
16:34okb has joined #asahi-dev
16:37hdbngr has quit [Ping timeout: 480 seconds]
16:44hdbngr has joined #asahi-dev
16:45svennice, usb dts changes on the mailing list :)
16:51svenhrm, the entire usb.c code with the i2c vs. spmi and some other model-specific stuff could use some refactoring as well
16:51sven(trying to improve usb2 phy init in m1n1 right now)
16:53hdbngr has quit [Ping timeout: 480 seconds]
16:54jannaukettenis: unmodified u-boot v2026.01 boots for me on a m2 mac mini
17:00hdbngr has joined #asahi-dev
17:09hdbngr has quit [Ping timeout: 480 seconds]
17:17hdbngr has joined #asahi-dev
17:22___nick___ has quit [Remote host closed the connection]
17:26hdbngr has quit [Ping timeout: 480 seconds]
17:33hdbngr has joined #asahi-dev
17:35okb has quit [Ping timeout: 480 seconds]
17:42hdbngr has quit [Ping timeout: 480 seconds]
17:44aditya has quit [Quit: Connection closed for inactivity]
17:45hdbngr has joined #asahi-dev
17:54hdbngr has quit [Ping timeout: 480 seconds]
18:03hdbngr has joined #asahi-dev
18:12hdbngr has quit [Ping timeout: 480 seconds]
18:19nimprod3l has quit [Quit: Leaving]
18:20hdbngr has joined #asahi-dev
18:26vimproved has quit [Remote host closed the connection]
18:27vimproved has joined #asahi-dev
18:29okb has joined #asahi-dev
18:53okb has quit [Ping timeout: 480 seconds]
19:09Shizjannau: we're trying to boot your t8122 m1n1 branch on noopwafel's m3, but it seems to be stuck in a bootloop -- any ideas?
19:09Shiz(trying to get serial working in the meantime)
19:14Lyude has quit [Quit: Bouncer restarting]
19:22Shizupstream m1n1 does work
19:23Shizchainloading also works
19:30alxdrl has joined #asahi-dev
19:36okb has joined #asahi-dev
19:40Lyude has joined #asahi-dev
19:40jannauShiz: I didn't test after rebasing and changing things so it's very possible that it is just broken
19:43Shizah, gotcha
19:44Shizwell, at least it does work as chainloaded payload
19:49noopwafeltime to play bisect
20:06Shizokay, it mysteriously worked now and we're very confused
20:21Shizokay, so booting xnu under the m3 now gets us to roughly the same point as with the m3 pro
20:31pb17 has quit [Ping timeout: 480 seconds]
20:40fl0_idchaos_princess hvc bisect looks promising btw, at least now I know it reache init_el in head.S. haven't had time to bisect further yet
20:44pb17 has joined #asahi-dev
20:44jannauasahi-6.18.4-1 tagged and pushed. test USB devices
20:48svenand ideally debug any usb device that breaks and directly submit a patch with the fix to atcphy or dwc3 :P
20:54icanc has quit [Read error: Connection reset by peer]
20:54icanc has joined #asahi-dev
20:57icanc has quit [Remote host closed the connection]
20:58icanc has joined #asahi-dev
21:02jannaufairydust is rebased onto asahi-6.18.4-1
21:06Shizsven: looks like all 3 patches are atm actually needed :p
21:11svenShiz: what does it run into without them? illegal instruction because the msr doesn't exist in el1?
21:11Shizdabort_lower without the two msr patches
21:12Shizand without the _recount_transition one it hangs in... _recount_transition :p
21:12Shizwhich is a branch patch, not an msr patch
21:12svenso it does a dabort at the msr instruction?
21:13Shiznot sure, it seems a bunch of memory gets stomped over
21:13sventhat sounds very weird
21:13Shizso by the time we have the dabort it's hard to debug
21:14svenokay, wait, so the msr insn executes but then it runs into a dabort later on?
21:14sventhat sounds cursed
21:15Shiz`recount_assert_level(thread, from);` is the assertion that fails withot the _recount_transition patch
21:19svenokay, that's in open source xnu (at least partially) and seems to be related to timing or something
21:20svenand with m3 there was some change to the cycle counter which got switched to 1 GHz or something like that so maybe that's related?
21:20svenblind guess though
21:20noopwafelit is about user/kernel transition
21:20noopwafelfailing with beautiful nested panics
21:20svenlovely
21:23leiocan we nerdsnipe jann_au into that vfio thing for AVD next? *g
21:24svenit's some performance accounting for threads i think, but the code is rather confusing
21:26svenuh, i wonder if we're patching a symptom of some corruption already. that assert seems to be triggered on unexpected ELn->ELm transitions i think
21:27hdbngr has quit [Ping timeout: 480 seconds]
21:28Shizit's basically fleh_dispatch64 (first-level exc handler) -> bl EXT(recount_leave_user) -> recount_transition -> assert
21:30noopwafelit thinks we are in el0.
21:31svenmaybe i'm reading the code wrong, but doesn't it check if the EL in the thread context (or whatever) is equal to the expected EL (EL0 here)?
21:34Shizso when it's transition from user to kernel, whether current thread is user, and when it's transitioning from kernel to user, wheether current thread is kernel
21:34Shizif I understand correctly
21:34hdbngr has joined #asahi-dev
21:35svenyeah, and then it updates the level just after the assert in that performance accounting structure attached to the thread
21:35noopwafel(x23 contains SPSR_EL1)
21:36chaos_princesssven: recount transition also happens on m1pro
21:36svenyeah, i'm looking at the xnu code that runs everywhere
21:36svenosfmk/kern/recount.c
21:36chaos_princessAlso, does anyone remember what was the apcie xnu boot arg for?
21:37noopwafelour reading is that it expects to be coming from el0 but actually it was in el1. based on the xnu code.
21:37sveni assume recent macos (like 26) still works under the hv on m1?
21:38Shizit might be that the old kernel is borken
21:38svenat least it had something != EL0 in that recount structure from the thread. it might still be coming from EL0
21:38Shizthey changed the check between xnu-14.8.3 and current
21:38Shizxnu-10063:
21:38Shiz tst x23, PSR64_MODE_EL_KERNEL // If interrupting this kernel, skip
21:38Shiz b.ne 1f // precise time update.
21:39svenplease keep re stuff to #asahi-re :)
21:39Shiz tst x23, PSR64_MODE_EL_KERNEL // If interrupting this kernel, skip
21:39Shiz b.ne 1f // precise time update.oops, sorry
21:39Shizoops, sorry *
21:39chaos_princessThat looks like open source xnu, no?
21:39Shiz(this wasn't re fwiw)
21:39noopwafelyes this is all open source xnu
21:39Shiz(it's assembly from oss xnu)
21:39svenah, nvm then
21:40Shizxnu-12377.1.9:
21:40Shiz cmp x23, #PSR64_MODE_EL0 // If interrupting this kernel, skip
21:40Shiz b.gt 1f // precise time update.
21:41Shizgonna patch that in and see what happens
21:43hdbngr has quit [Ping timeout: 480 seconds]
21:45fl0_id__ has joined #asahi-dev
21:49Shizmore success with better patch
21:52hdbngr has joined #asahi-dev
21:52Shizwe got halfway a progress bar \o/
21:53pb17 has quit [Ping timeout: 480 seconds]
21:53noopwafelnow actually getting all the delightful random failures that integralpilot documented
21:54svenhave you figured out why el1_call was broken btw?
21:54fl0_id__so at least I am in start_kernel
21:55noopwafelsven: sorry I will push PR for that over the weekend..
21:56svennice, i'm mostly curious what the reason was
21:56fl0_id__should stuff like pr_notice("Kernel command line: %s\n", saved_command_line); show up in second serial port?
21:57svendepends on which log level you enabled for the console output
21:57svenneeds to be above notice for that to show up
22:00Shiz"ApplePMGR: UInt32 ApplePMGR::getReMapSize(RegMap):5198 " "Invalid map 319795688\n" @ApplePMGR.cpp:5198 :D
22:00opticron has quit [Read error: Connection reset by peer]
22:00Shizpmgr my behated
22:00hdbngr has quit [Ping timeout: 480 seconds]
22:00opticron has joined #asahi-dev
22:04fl0_id__sven I set it to the highest on purpose now, but even before KERNEL_EMERG was not showing. It just seems like all output is only from m1n1
22:05svendo you have earlycon enabled?
22:05hdbngr has joined #asahi-dev
22:07fl0_id__FDT: bootargs = 'earlycon rootwait loglevel=8'
22:12fl0_id__it seems to stop at mm_core_init(); in start_kernel
22:12okb has quit [Read error: Connection reset by peer]
22:13fl0_id__https://www.pastery.net/dfwdsx/ ddff is before that. ddcc is after that
22:13fl0_id__i'll try to pin it down more though
22:13hdbngr has quit [Ping timeout: 480 seconds]
22:14hdbngr has joined #asahi-dev
22:18kettenisjannau: weird
22:19ketteniswhat stage2 version of m1n1 are you using?
22:21fatmalama has joined #asahi-dev
22:41fl0_id__ has quit [Remote host closed the connection]
22:41fl0_id__ has joined #asahi-dev
22:42icanc has quit [Ping timeout: 480 seconds]
22:44hdbngr has quit [Ping timeout: 480 seconds]
22:45jannaukettenis: current main fa822be
22:45jannauchadmed: I'll look tomorrow at the installer PR
22:48hdbngr has joined #asahi-dev
22:50fl0_id__currently fails somewhere in vm_total_pages = nr_free_zone_pages(gfp_zone(GFP_HIGHUSER_MOVABLE));
22:50fl0_id__assuming this is mostly synchronous i guess
22:52sventhat.. sounds very weird
22:54fl0_id__yeah. ofc could always be that I missed/messed sth up. I cont' the hv, and then it didn't reach the next hvc
22:54chaos_princessincorrect memory map?
22:55Shizpushed some misc stuff here, reducing the patches hopefully and some bringup notes
22:56john-cabaj has quit [Ping timeout: 480 seconds]
23:03sven"in shell, quickly ^D and ^C, and then:" :D
23:03svenwhat do you need to wait for before you can apply the patches?
23:04Shizuh, it gives sync exceptions :D
23:05Shizsadly the laptop i was testing with just left me (noopwafel went to catch the bus)
23:05svenno, i mean, why can't you apply the patches at the start?
23:05Shizbecause then i immediately get sync exceptions
23:05pb17 has joined #asahi-dev
23:05fatmalama has quit [Ping timeout: 480 seconds]
23:06Shizsadly the backtrace has left my screen too bleh
23:06fatmalama has joined #asahi-dev
23:07Shizbut yes, lot of 'dangerous writes' in PMGR logs too
23:07Shizso suspect the issue is there
23:07fl0_id__Shiz, those I get too
23:07fl0_id__but I'm ignoring them for now
23:08sventhat's normal on m1/m2 as well
23:08fl0_id__mmh, sadly putting extra stuff in gfp.h has to compile a whole bunch of stuff
23:08sveni think if it prints that it made sure the write won't go through
23:09yukawith the 6.18 kernel the apple_dcp.show_notch=1 parameter stopped working, is this expected or is there some replacement parameter?
23:09svenor at least fixed the write to not break something
23:09hdbngr has quit [Ping timeout: 480 seconds]
23:09svenyuka: apple_dcp is appledrm now
23:09fl0_id__which makes sense i guess
23:09chaos_princesscan't apply this immediately since hv_translate does not work yet at that point
23:10Shizright, that's what i was thinking
23:10Shizjust couldn't doublecheck with the laptop gone :p
23:16icanc has joined #asahi-dev
23:18hdbngr has joined #asahi-dev
23:19cremfuelled has quit [Quit: cremfuelled]
23:20fatmalama has quit [Quit: Konversation terminated!]
23:20fatmalama has joined #asahi-dev
23:28cremfuelled has joined #asahi-dev
23:36alicela1n has joined #asahi-dev
23:40fl0_id__ has quit [Ping timeout: 480 seconds]
23:44hdbngr has quit [Ping timeout: 480 seconds]
23:53hdbngr has joined #asahi-dev
23:59MikeM64 has quit [Ping timeout: 480 seconds]
…