2026-01-09
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: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: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: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: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:51svenhrm, the entire usb.c code with the i2c vs. spmi and some other model-specific stuff could use some refactoring as well
16:53hdbngr has quit [Ping timeout: 480 seconds]
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:14Lyude has quit [Quit: Bouncer restarting]
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
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: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:11svenShiz: what does it run into without them? illegal instruction because the msr doesn't exist in el1?
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: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: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: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:36chaos_princesssven: recount transition also happens on m1pro
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:38svenat least it had something != EL0 in that recount structure from the thread. it might still be coming from EL0
21:39chaos_princessThat looks like open source xnu, no?
21:43hdbngr has quit [Ping timeout: 480 seconds]
21:45fl0_id__ has joined #asahi-dev
21:52hdbngr has joined #asahi-dev
21:53pb17 has quit [Ping timeout: 480 seconds]
21:56fl0_id__should stuff like pr_notice("Kernel command line: %s\n", saved_command_line); show up in second serial port?
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: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:05hdbngr has joined #asahi-dev
22:12okb has quit [Read error: Connection reset by peer]
22:13hdbngr has quit [Ping timeout: 480 seconds]
22:14hdbngr has joined #asahi-dev
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:46JamesCalligeros[m]no rush
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: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:56fl0_id__chaos_princess, this is the dt I am using https://gist.github.com/IntegralPilot/74d1c364e70382ddcad3ccf6a333e13e
22:56john-cabaj has quit [Ping timeout: 480 seconds]
23:05pb17 has joined #asahi-dev
23:05fatmalama has quit [Ping timeout: 480 seconds]
23:06fatmalama has joined #asahi-dev
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:09hdbngr has quit [Ping timeout: 480 seconds]
23:09chaos_princesscan't apply this immediately since hv_translate does not work yet at that point
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]