#
…

2025-03-23

00:04mischa8524D60 kernel stops at 0x21a7eb0/0x6e3c000
00:04zumi_ has joined #asahi-dev
00:04zumi has quit [Remote host closed the connection]
00:09zumi_ is now known as zumi
00:09nesnas has quit [Ping timeout: 480 seconds]
00:10mischa85m1n1 is not responding anymore fwiw
00:15mischa85could this be related to mmc?
00:18nesnas has joined #asahi-dev
00:21fl0_idmischa85 btw, didn't think about it at the time, but does the adt change between firmware versions? as the one I sent you was still for sonoma as I'm stlll using that. Not sure if I mentioned that at the time...
00:22mischa85fl0_id: not really. it's mainly useful to see where m3max and m4max are similar and give me some hints
00:22fl0_idmischa85 ok good
00:22fl0_idjust wanted to make sure I didn't accidentally sabotage you
00:23mischa85t6041 seems more similar to t6031 than to t8132 in many ways
00:23mischa85no problem, it's fine
00:25fl0_idmischa85 yeah based on the code numbers that makes sense I guess. Like also on m3, m3 has an 8x number, pro and max have a 6x. and the pro and max always need extra things
00:26mischa85i still have a tz_regs section which i'm unsure about in mcc. should be translatable from region-id-2 and region-id-4 but nobody told anyone *how* they translate
00:26nesnas has quit [Ping timeout: 480 seconds]
00:27mischa85so i might very well have those wrong
00:28mischa85fl0_id: yeah it's going to be a bit of a mix here and there. i have a branch from yu-re-ka which got some info on t8132, now with t6031 i'm trying to fill in the gaps for t6041
00:29mischa85at least enough to get hv running which might supply some missing values and chickens
00:29fl0_idmischa85 ah yeah btw their nick on irc is yuka probably
00:30fl0_id(or so I assume)
00:30mischa85yeah i noticed on my irc searches
00:30fl0_idyeah makes sense
00:30fl0_idah ok :)
00:33mischa85So dberlin wrote this: Note: For unhandled machines, the TZ regions can be found (on m1, m2, m3) by looking at region-id-2 and region-id-4 on a booted macos, in the /chosen/carveout-memory-map DT node. This can be used along with dumping the mcc reg space to find the correct start/end/enable above.
00:33mischa85but this still doesn't explain how two big hex values translate to tz.count/stride/start/end/enable
00:36nesnas has joined #asahi-dev
00:39mischa85anyway, disabling mmc_init() doesn't make a difference
00:39mischa85so worries for later i guess
00:47nesnas has quit [Ping timeout: 480 seconds]
00:50nesnas has joined #asahi-dev
00:57pb17 has quit [Ping timeout: 480 seconds]
01:00nesnas has quit [Ping timeout: 480 seconds]
01:05pb17 has joined #asahi-dev
01:07nesnas has joined #asahi-dev
01:14dylantaylor has joined #asahi-dev
01:16nesnas has quit [Ping timeout: 480 seconds]
01:18greguu has joined #asahi-dev
01:26nesnas has joined #asahi-dev
01:30dylantaylor has quit [Quit: Konversation terminated!]
01:41rrendec has quit [Ping timeout: 480 seconds]
02:23pb17 has quit [Ping timeout: 480 seconds]
02:23ipatch has quit [Read error: Connection reset by peer]
02:26ipatch has joined #asahi-dev
02:49pb17 has joined #asahi-dev
03:39nesnas has quit [Ping timeout: 480 seconds]
03:40Extern has joined #asahi-dev
03:45tobhe_ has joined #asahi-dev
03:46nesnas has joined #asahi-dev
03:51tobhe has quit [Ping timeout: 480 seconds]
03:57nesnas has quit [Ping timeout: 480 seconds]
04:06nesnas has joined #asahi-dev
04:08mischa85 has quit [Ping timeout: 480 seconds]
04:14nora_ has joined #asahi-dev
04:15nesnas has quit [Ping timeout: 480 seconds]
04:16nora has quit [Ping timeout: 480 seconds]
04:16pb17 has quit [Ping timeout: 480 seconds]
04:19Extern has quit [Quit: WeeChat 4.1.1]
04:23nesnas has joined #asahi-dev
04:25chadmedlesgoo figured out the silly alsa client thing
04:26pb17 has joined #asahi-dev
04:31mischa85 has joined #asahi-dev
04:34nesnas has quit [Ping timeout: 480 seconds]
04:39mischa85 has quit [Ping timeout: 480 seconds]
04:42nesnas has joined #asahi-dev
04:47mischa85 has joined #asahi-dev
04:53nesnas has quit [Remote host closed the connection]
04:53nesnas has joined #asahi-dev
04:56mischa85 has quit [Ping timeout: 480 seconds]
05:03nesnas has quit [Ping timeout: 480 seconds]
05:13zerozerozero has joined #asahi-dev
05:13mischa85 has joined #asahi-dev
05:13nesnas has joined #asahi-dev
05:16MountainRose has quit [Remote host closed the connection]
05:21mischa85 has quit [Ping timeout: 480 seconds]
05:23nesnas has quit [Ping timeout: 480 seconds]
05:31nesnas has joined #asahi-dev
05:32JayBeeFOSS has quit [Ping timeout: 480 seconds]
05:33JayBeeFOSS has joined #asahi-dev
05:44nesnas has quit [Ping timeout: 480 seconds]
05:45pb17 has quit [Ping timeout: 480 seconds]
05:45mischa85 has joined #asahi-dev
05:53nesnas has joined #asahi-dev
05:54mischa85 has quit [Ping timeout: 480 seconds]
06:00pb17 has joined #asahi-dev
06:03nesnas has quit [Ping timeout: 480 seconds]
06:03mischa85 has joined #asahi-dev
06:05zumi_ has joined #asahi-dev
06:05zumi has quit [Remote host closed the connection]
06:10zumi_ is now known as zumi
06:11mischa85 has quit [Ping timeout: 480 seconds]
06:12nesnas has joined #asahi-dev
06:22nesnas has quit [Ping timeout: 480 seconds]
06:30nesnas has joined #asahi-dev
06:45mischa85 has joined #asahi-dev
06:53mischa85 has quit [Ping timeout: 480 seconds]
07:03mischa85 has joined #asahi-dev
07:12mischa85 has quit [Ping timeout: 480 seconds]
07:27pb17 has quit [Ping timeout: 480 seconds]
07:37nimprod3l has joined #asahi-dev
07:37johey has quit [Read error: Connection reset by peer]
07:37johey has joined #asahi-dev
07:55nickchanrebased my a7-a11 pmu series above the feat_pmuv3 support, will send when the merge window closes
07:56pb17 has joined #asahi-dev
08:29mischa85 has joined #asahi-dev
08:51nimprod3l has quit [Ping timeout: 480 seconds]
08:51nimprod3l has joined #asahi-dev
09:01nesnas has quit [Ping timeout: 480 seconds]
09:03svendoes that one also require changes to the dt? if yes please directly add those to the series
09:04nesnas has joined #asahi-dev
09:11nickchansven: I will for that version, thanks for the heads up!
09:12nickchannext version
09:12svenmakes testing and picking them up easier :)
09:26aditya has joined #asahi-dev
09:29pb17 has quit [Ping timeout: 480 seconds]
09:33nesnas has quit [Ping timeout: 480 seconds]
09:36mischa85 has quit [Ping timeout: 480 seconds]
09:41nesnas has joined #asahi-dev
09:44mischa85 has joined #asahi-dev
09:46nesnas has quit [Remote host closed the connection]
09:46nesnas has joined #asahi-dev
09:53mischa85 has quit [Ping timeout: 480 seconds]
09:56nesnas has quit [Ping timeout: 480 seconds]
09:57nesnas has joined #asahi-dev
10:04pb17 has joined #asahi-dev
10:17nesnas has quit [Ping timeout: 480 seconds]
10:17nesnas has joined #asahi-dev
10:43mischa85 has joined #asahi-dev
10:56nesnas has quit [Ping timeout: 480 seconds]
10:59nesnas has joined #asahi-dev
11:08nesnas has quit [Ping timeout: 480 seconds]
11:10mischa85alright, i now tried with a way smaller release kernel. it stops at 0x5d2360/0x3ed4000, does show the dots this time. but throws another serialexception
11:11mischa85this time in total early bringup m1n1 mode at 115200 baud
11:13pb17 has quit [Ping timeout: 480 seconds]
11:15sveniirc there are some control chars that will be caught by the cs software. have you tried disabling them?
11:16mischa85i was thinking the same thing, but 0x1f doesn't seem to be involved. but going to disable them anyway just to be sure
11:17nesnas has joined #asahi-dev
11:17svenit's pretty likely 0x1f will be somewhere in the xnu binary and mess things up
11:20mischa85yes but the character gets passed, it requires a combination with another specific char to do anything
11:20mischa85but lemme try without any handling at all
11:29nesnas has quit [Ping timeout: 480 seconds]
11:30mischa85you might have been right. steady supply of dots now.......
11:30LarstiQchadmed: what was the silly alsa client thing?
11:31mischa85i'm not going to touch anything and make myself coffee
11:31LarstiQmischa85: smakelijk :)
11:32svennice :)
11:33mischa85stuff is happening
11:33mischa85LarstiQ: :-)
11:36mischa85woah it almost booted. the python script tried setting some cpu rvbars which of course SError'd. lemme remove those too
11:38nesnas has joined #asahi-dev
11:40mischa85it seems the ecores are actually powered on, the pcores cause SErrors
11:42mischa85i'll just disable cpustart_wh in the script for now
11:46sveniirc the chickens are some of the very first things xnu does anyway
11:47LarstiQsven: the way you phrased that makes me think xnu plays Stardew Valley ;)
11:49pb17 has joined #asahi-dev
12:06zumi_ has joined #asahi-dev
12:06zumi has quit [Remote host closed the connection]
12:11zumi_ is now known as zumi
12:12Mary has quit [Quit: .]
12:15Mary has joined #asahi-dev
12:25fl0_idmaybe it does. needs to get its protein in
12:41chadmedLarstiQ: wireplumber persisted the hidden alsa node as the default because the filter chain was not of a higher session priority
12:42chadmedthats why folks were getting "quiet" audio in alsa clients like audacity, and also why we had to vendor the dsp script for a little while
12:42chadmedive fixed this in main and will tag releases tomorrow
13:07aditya has quit [Quit: Connection closed for inactivity]
13:31nickchanmischa85: have you tried turning on the cpu power domains?
13:31pb17 has quit [Ping timeout: 480 seconds]
13:31nickchanthey are on at iboot -> kernel handoff on previous chips
13:41Extern has joined #asahi-dev
13:56pb17 has joined #asahi-dev
14:00mischa85nickchan: i cannot do that without knowing the ps-regs right?
14:12mischa85[cpu4] Guest exception: EXCEPTION_LOWER/SYNC
14:13mischa85right after jumping to the entrypoint
14:39mischa85SPSR = 0x200003c5 (N=0, Z=0, C=1, V=0, TCO=0, DIT=0, UAO=0, PAN=0, SS=0, IL=0, SSBS=0, BTYPE=0, D=1, A=1, I=1, F=1, M=0x5(EL1h))
14:41chaos_princessesr and elr would be more interesting
14:41mischa85ELR = 0x200 (0x200)
14:41mischa85ESR = 0x82000006 (ISS2=0x0, EC=0x20(IABORT_LOWER), IL=1, ISS=0x6)
14:45chaos_princesssomething went wrong with mmu, but idk what
14:46rrendec has joined #asahi-dev
14:46mischa85ok, lemme try disabling mmu totally again. which means i have to upload the kernel at 115200 baud
15:28svenbroken MMU can happen with incorrect chicken bits unfortunately
15:30mischa85yeah, with a bit of luck this is going to supply us with the correct chicken bits, so we can enable mmu and be back at 1.5 mbaud again for further development
15:31mischa85i'm trying with the release kernel at the moment as it's way smaller than the development kernel
15:47mischa85i had to take out page tables update, now it crashes after jumping to entrypoint. nothing from guest, SYNC exception. ESR: 0x96000035 (data abort (current))
15:48mischa85Right after: Jumping to entrypoint at 0x100199f8000
15:49chaos_princesswhat is the instruction at elr?
15:49mischa85that only gets printed at guest exception
15:50mischa85wait i'll paste the whole thing
15:50mischa85TTY> Exception: SYNC
15:50mischa85TTY> Exception taken from EL2h
15:50mischa85TTY> MPIDR: 0x80010100
15:50mischa85TTY> Running in EL2
15:50mischa85TTY> Registers: (@0x1000470b9d0)
15:50mischa85TTY> x0-x3: 00000100046d2000 0000000000000000 0000000000000000 0000000000000000
15:50mischa85TTY> x4-x7: 00000100199f8000 0000000000000000 0000000000000005 0000000000000004
15:50mischa85TTY> x8-x11: 0000000000000010 00000100046d8208 0000000000000000 00000000ffffffff
15:50mischa85TTY> x12-x15: 00000100046d8204 0000000000000000 0000010004d94000 0000000000000000
15:50mischa85TTY> x16-x19: 00000100046600c5 0000000000000000 00000000fffffffe 000001000470bbf0
15:50mischa85TTY> x20-x23: 0000000000000020 00000100199f8000 000001000470bf40 00000100046d8208
15:50mischa85TTY> x24-x27: 00000100046d13e0 0000000000aa55ff 00000100046ddb94 000001000470bf28
15:50mischa85TTY> x28-x30: 00000000addedbad 000001000470bbd0 000001000463c954
15:51mischa85TTY> PC: 0x1000463ca38 (rel: 0x10a38)
15:51mischa85TTY> SP: 0x1000470bad0
15:51mischa85TTY> SPSR: 0x600002c9
15:51mischa85TTY> FAR: 0x100046d8208
15:51mischa85TTY> ESR: 0x96000035 (data abort (current))
15:51mischa85TTY> L2C_ERR_STS: 0x0
15:51mischa85TTY> L2C_ERR_ADR: 0x0
15:51chaos_princessplease use a pastebin next time
15:51chaos_princesscould it be that you are jumping to a no-exec page then?
15:52pb17 has quit [Ping timeout: 480 seconds]
15:52mischa85well, seeing how much i had to cut from the process
15:53mischa85i don't know
15:53zerozero1 has joined #asahi-dev
15:55zerozero2 has joined #asahi-dev
16:00zerozerozero has quit [Ping timeout: 480 seconds]
16:02zerozero1 has quit [Ping timeout: 480 seconds]
16:14cow123 has quit [Ping timeout: 480 seconds]
16:16zerozero2 has quit [Quit: WeeChat 4.5.2]
16:16zerozerozero has joined #asahi-dev
16:26mischa85how can i find out?
16:28mischa85the pt_update function doesn't crash instantly, i can try to let it run partially
16:38pb17 has joined #asahi-dev
16:50mischa85pt_update causes an Exception:SYNC on HW:RAM-HIGH
16:53mischa85which is indeed the range it tries to jump to: PT[10016428000:12000000000] -> HW:RAM-HIGH
17:02okb has joined #asahi-dev
17:28mischa85my best guess is that mcc_init() has something to do with it
17:44johey has quit [Ping timeout: 480 seconds]
17:49sting has quit [Quit: doei]
17:51mischa85nope. so enabling mmu_init makes pt_update pass without crashing, but crashes later as a guest exception
17:52mischa85is it even possible to launch hv without mmu?
17:53chaos_princessfrom what i remember from reading arm64 spec, you can disable translation in el2
17:54sting has joined #asahi-dev
17:54john-cabaj has joined #asahi-dev
18:01johey has joined #asahi-dev
18:04zumi_ has joined #asahi-dev
18:04zumi has quit [Remote host closed the connection]
18:09zumi_ is now known as zumi
18:10john-cabaj has quit [Ping timeout: 480 seconds]
18:11pb17 has quit [Ping timeout: 480 seconds]
18:15bjoto has quit [Remote host closed the connection]
18:36zeezie01 has joined #asahi-dev
18:36mischa85taking HCR_VM); // Enable stage 2 translation out doesn't make a difference sadly
18:36mischa85i'm out of ideas for today
18:39pb17 has joined #asahi-dev
18:46yuyichao_ has quit [Ping timeout: 480 seconds]
19:55Extern has quit [Quit: WeeChat 4.1.1]
20:07mischa85interestingly, i also don't get a rainbow apple logo. it just crashes before
20:08mischa85something something paging related, but what...
20:13HitokiriKincho has joined #asahi-dev
20:15pb17 has quit [Ping timeout: 480 seconds]
20:29nimprod3l has quit [Quit: Leaving]
20:35pb17 has joined #asahi-dev
20:41zerozerozero has quit [Quit: WeeChat 4.5.2]
21:06HitokiriKincho has quit [Quit: Leaving...]
21:09mischa85chaos_princess: translation should be disabled when mmu_unit() is not called. the hv_translate() function actually checks for the SCTLR_M bit (mmu) in the SCTLR_EL12 (SCTLR_2?) register and acts accordingly
21:10mischa85and that bit should be 0 according to arm64 specs
21:13mischa85i should, however, take a closer look at what happens to HCR_EL2
21:18mischa85it's going to be painful tho transferring the kernel at 115200 bauds everytime. if anyone has a trick to get 1.5 mbaud without m1n1 denying it without mmu i'd be glad to hear of it
21:25zerozerozero has joined #asahi-dev
21:49pb17 has quit [Ping timeout: 480 seconds]
21:57pb17 has joined #asahi-dev
22:00okb has quit [Quit: Leaving]
23:00zerozerozero has quit [Quit: WeeChat 4.5.2]
23:01zerozerozero has joined #asahi-dev
23:31pb17 has quit [Ping timeout: 480 seconds]
23:41pb17 has joined #asahi-dev
23:58nesnas has quit [Ping timeout: 480 seconds]
…