2025-06-07
00:05chrisl has quit [Ping timeout: 480 seconds]
00:06zumi_ has joined #asahi-dev
00:10zumi has quit [Ping timeout: 480 seconds]
00:11zumi_ is now known as zumi
01:02chrisl has joined #asahi-dev
01:10chrisl has quit [Ping timeout: 480 seconds]
01:17john-cabaj has quit [Quit: john-cabaj]
01:17john-cabaj has joined #asahi-dev
01:38cylm has quit [Ping timeout: 480 seconds]
01:50master91122 has quit [Quit: Connection closed for inactivity]
01:52chrisl has joined #asahi-dev
02:00chrisl has quit [Ping timeout: 480 seconds]
02:02john-cabaj has quit [Ping timeout: 480 seconds]
02:12chrisl has joined #asahi-dev
02:17yuyichao_ has quit [Ping timeout: 480 seconds]
02:20chrisl has quit [Ping timeout: 480 seconds]
02:35tobhe has joined #asahi-dev
02:39hexdump02 has quit [Ping timeout: 480 seconds]
02:41tobhe_ has quit [Ping timeout: 480 seconds]
03:07catred has quit [Remote host closed the connection]
03:18chrisl has joined #asahi-dev
03:18nora_ has joined #asahi-dev
03:20nora has quit [Ping timeout: 480 seconds]
03:26chrisl has quit [Ping timeout: 480 seconds]
03:31ddxtanx has quit [Remote host closed the connection]
03:33ddxtanx has joined #asahi-dev
04:03pb17 has quit [Remote host closed the connection]
04:03pb17 has joined #asahi-dev
04:28chrisl has joined #asahi-dev
04:36chrisl has quit [Ping timeout: 480 seconds]
04:56Larwive has joined #asahi-dev
05:20chrisl has joined #asahi-dev
05:20chadmed has quit [Quit: Konversation terminated!]
05:20chadmed has joined #asahi-dev
05:21chadmed has quit [Read error: Connection reset by peer]
05:21chadmed has joined #asahi-dev
05:23chadmed has quit []
05:23chadmed has joined #asahi-dev
05:23chadmed has quit []
05:28chrisl has quit [Ping timeout: 480 seconds]
05:49chadmed has joined #asahi-dev
06:05zumi_ has joined #asahi-dev
06:10zumi has quit [Ping timeout: 480 seconds]
06:10zumi_ is now known as zumi
06:16chrisl has joined #asahi-dev
06:24chrisl has quit [Ping timeout: 480 seconds]
07:21chrisl has joined #asahi-dev
07:26nimprod3l has joined #asahi-dev
07:29chrisl has quit [Ping timeout: 480 seconds]
08:00nimprod3l has quit [Ping timeout: 480 seconds]
08:01chrisl has joined #asahi-dev
08:09chrisl has quit [Ping timeout: 480 seconds]
08:28nimprod3l has joined #asahi-dev
09:07chrisl has joined #asahi-dev
09:15chrisl has quit [Ping timeout: 480 seconds]
09:25fl0_id@amarioguy - oh and if I tried to run it again, it would not give an error / timeout but just not respond and I'd have to close the shell forcefully
09:33svenfl0_id: you'd need to understand what actually changed and if that new way is indeed correct and then make it conditional on the compatible
09:36fl0_idsven mmh thx that already helps. though not sure how. maybe for starters I'd just add some print statements...
09:48fl0_idto try to understand the data structure that it's reading before it breaks. to see what's what. Like just locally of course for trying things. sorry if I am misunderstanding something
09:50sveni'd probably trace the pmu using the hv and see what values macos updates and if they match that new scrpad offset
09:51croissant_ has joined #asahi-dev
09:51opticron has quit [Read error: Connection reset by peer]
09:52opticron has joined #asahi-dev
09:57croissant has quit [Ping timeout: 480 seconds]
10:12chrisl has joined #asahi-dev
10:14pb17 has quit [Ping timeout: 480 seconds]
10:19pb17 has joined #asahi-dev
10:20chrisl has quit [Ping timeout: 480 seconds]
10:28fl0_idsven tracing is prob a good idea, but I think I don't have a setup yet for that. (so far I only have avery basic second macos container, which is now set up to boot m1n1 and would have to check how much work it would be to enable a ful hv / tracing setup on that
11:02chrisl has joined #asahi-dev
11:07balrog_ has joined #asahi-dev
11:10chrisl has quit [Ping timeout: 480 seconds]
11:10balrog has quit [Ping timeout: 480 seconds]
11:18chrisl has joined #asahi-dev
11:26chrisl has quit [Ping timeout: 480 seconds]
11:30cylm has joined #asahi-dev
12:05pb17 has quit [Ping timeout: 480 seconds]
12:06zumi_ has joined #asahi-dev
12:11zumi has quit [Ping timeout: 480 seconds]
12:11zumi_ is now known as zumi
12:14chadmed has quit [Quit: Konversation terminated!]
12:15chadmed has joined #asahi-dev
12:18chadmed has quit []
12:18chadmed has joined #asahi-dev
12:28chrisl has joined #asahi-dev
12:30pb17 has joined #asahi-dev
12:36chrisl has quit [Ping timeout: 480 seconds]
12:52lion328 has quit [Quit: Leaving]
12:57lion328 has joined #asahi-dev
13:09apalos has quit []
13:10apalos has joined #asahi-dev
13:20chrisl has joined #asahi-dev
13:28chrisl has quit [Ping timeout: 480 seconds]
13:37Larwive has quit [Remote host closed the connection]
13:49croissant_ has quit []
13:50croissant has joined #asahi-dev
14:31chrisl has joined #asahi-dev
14:39chrisl has quit [Ping timeout: 480 seconds]
14:42okb has joined #asahi-dev
15:01Drago has joined #asahi-dev
15:03jnn is now known as jn
15:04chadmed has quit [Quit: Konversation terminated!]
15:04chadmed has joined #asahi-dev
15:04chadmed has quit []
15:04chadmed has joined #asahi-dev
15:07pb17 has quit [Ping timeout: 480 seconds]
15:17pb17 has joined #asahi-dev
15:47Drago has quit [Ping timeout: 480 seconds]
15:54Drago has joined #asahi-dev
16:03Drago has quit [Ping timeout: 480 seconds]
16:24chrisl has joined #asahi-dev
16:32chrisl has quit [Ping timeout: 480 seconds]
16:48lynndotpy has quit [Quit: bye bye]
16:49lynndotpy has joined #asahi-dev
17:11pb17 has quit [Ping timeout: 480 seconds]
17:14pb17 has joined #asahi-dev
17:23WindowPain4 has joined #asahi-dev
17:27yuyichao_ has joined #asahi-dev
17:29WindowPain has quit [Ping timeout: 480 seconds]
17:29WindowPain4 is now known as WindowPain
17:32chrisl has joined #asahi-dev
17:40chrisl has quit [Ping timeout: 480 seconds]
17:59eluks has quit [Remote host closed the connection]
18:00eluks has joined #asahi-dev
18:06zumi_ has joined #asahi-dev
18:10zumi has quit [Ping timeout: 480 seconds]
18:11zumi_ is now known as zumi
18:25chrisl has joined #asahi-dev
18:33chrisl has quit [Ping timeout: 480 seconds]
18:54amarioguy has joined #asahi-dev
18:55phire has quit [Ping timeout: 480 seconds]
18:56amarioguythe uart timeout is concerning tho - because an undefined MSR would throw an exception
19:03amarioguyright, heard of that one, for now, i'll probably just hard limit my support to m1/m2 and pro equivalents until i get more time to properly examine the m4 case
19:18miyuh_ has joined #asahi-dev
19:22miyuh_hey all im new here.. i love linux and open source and i wanna contribute. what's the best way to get started?
19:26chaos_princessis there a specific missing feature that you are interested in?
19:28miyuh_to be honest i havent even installed it yet so maybe i should start there.. i am interested in getting into driver development though!
19:29chaos_princessso, i know it might sound unkind, but maybe pick an easier project? This one is unfortunately one of "you are thrown right into the deep end of the pool, figure it out yourself" ones.
19:31chaos_princesssure. anyway, installing would be a good step, here is the support matrix, pick something that you find interesting https://asahilinux.org/docs/platform/feature-support/m1/
19:33chrisl has joined #asahi-dev
19:33miyuh_ has left #asahi-dev [Leaving...]
19:33miyuh_ has joined #asahi-dev
19:34miyuh_ has left #asahi-dev [Leaving...]
19:40DannyB has joined #asahi-dev
19:41chrisl has quit [Ping timeout: 480 seconds]
20:01fl0_idamarioguy I guess so? you know more then me tbh. do you think it would make sense to try other registers, to check if it's just sth about this on or sth else?
20:02fl0_idI can also try updating my stage1 m1n1 / check if there were any changes or generally try to check uart
20:14Drago has joined #asahi-dev
20:23Drago has quit [Ping timeout: 480 seconds]
20:42chrisl has joined #asahi-dev
20:49svenamarioguy: if you (or anyone else) wants to work on m4 support try disabling SPRR/GXF on M1/M2/M3 and make XNU boot under the hv. iirc there's even one kernel that also comes with SPTM
20:50chrisl has quit [Ping timeout: 480 seconds]
21:25amarioguyfl0_id: hm - i guess you could try reading ICH_VTR_EL2? (would be a mrs(ICH_VTR_EL2) in m1n1 console) would verify if the CPU interface exists at least
21:30ece314378925355451680698427415 has joined #asahi-dev
21:33amarioguysven: for m4 bringup, i assume the problem is mainly that you need GXF for m1n1 to be able to do HV tracing?
21:35amarioguyik that on m4 apple makes it so that you either run under SPTM at all times if you specify a mach-o to kmutil, or you don't get GXF at all if you do raw binary instead, but wouldn't tracing be possible in the latter case anyways?
21:36svenright, so we can simulate that situation on m1/m2/m3 already by just disabling it ourselves
21:37svenit's gonna be messy though since the pagetable permission bits will be all wrong and we'll have to fix that all up
21:39amarioguyright - i have an m4 system anyhow, just got it in today so i can look into it in a day or so - i believe apple does have a way to do nested virtualization of SPTM/GXF stuff so it probably can be done but to say "messy" is putting it lightly i suspect
21:39svenso we'll need two sets of shadow pagetables for XNU-EL2 and XNU-GL2 and keep that all in sync
21:46nimprod3l has quit [Ping timeout: 480 seconds]
21:50chrisl has joined #asahi-dev
21:55amarioguysven: i assume to "disable" SPTM/GXF - we need to set the same defeature register iboot sets on m4?
21:58chrisl has quit [Ping timeout: 480 seconds]
22:25ddxtanx has quit [Ping timeout: 480 seconds]
22:27ddxtanx has joined #asahi-dev
22:51deeok[mds] has left #asahi-dev [#asahi-dev]
23:24fl0_idfor running a debug macos under hv, is it better to do this in the m1n1 container or in the original macos container?
23:25fl0_id(I hope Ia m using container correctly here... the apfs container in the separate partition I mean, wherein one would then create a separate volume as desribed here https://asahilinux.org/docs/sw/m1n1-hypervisor/#running-macos-under-the-m1n1-hypervisor
23:27chaos_princessyou need a real macos install to run it under hv, otherwise it will kernel panic shortly after loading the kernel
23:33chadmedif you want to save space you _can_ install m1n1 on top of your macos install. the operation is reversible by running bputil -f on the container
23:35chadmedif you have data on macos that you care about then ofc you should use a second macos install with the hv