#
…

2022-04-08

01:07asocialblade has joined #asahi-dev
01:10asocialblade has quit []
02:50yuyichao has quit [Ping timeout: 480 seconds]
02:55phiologe has joined #asahi-dev
02:58PhilippvK has quit [Ping timeout: 480 seconds]
03:04yuyichao has joined #asahi-dev
03:22kov has quit [Quit: Coyote finally caught me]
03:38nicolas17 has quit [Ping timeout: 480 seconds]
03:44akemin_dayo has quit [Quit: ┐(´д`🍍)┌ ]
03:45akemin_dayo has joined #asahi-dev
04:36emptynine has quit [Remote host closed the connection]
04:36emptynine has joined #asahi-dev
05:47Jamie[m]1Is there a known thing I need to do to avoid kernel panics under the hypervisor on modern macos versions?
05:48Jamie[m]1I'm running the stock 12.3 kernel copied out of my /System/Volumes/Preboot and extracted with img4tool, booted with "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1" and no tracing
05:48Jamie[m]1not pausing it either
05:49Jamie[m]1but it dies roughly 10 minutes after boot (not long enough to install the xcode developer tools, i can say for certain :)
05:53Jamie[m]1(t6000 j316)
05:58Jamie[m]1hmm, maybe it's actually caused by installing the xcode command line tools...
06:11jannauJamie[m]1: I haven't on t6001, panics either on boot or on suspend but I'm also not using macos extensively under the HV. mostly short sessions to trace kbd or dcp
06:11alexsv has joined #asahi-dev
06:12jannauthe panic reason ("AMCC2 PLANE3 UNEXP_RT_HIT_DIR error: ...") looks like it could be caused by something m1n1 did
06:12Jamie[m]1hmm, looks like this time it's still alive after 29 minutes and has successfully installed the tools, so i guess it's something that happens somewhat at random
06:19rqou_i regularly get panics on t6001 if i pause for too long
06:19Jamie[m]1yeah, no pausing in this case
06:19rqou_but synchronous tracing seems "fine" for short sessions, like jannau said
06:20rqou_not pausing seems to have worked for me, but the hv is definitely not super reliable
06:20rqou_works for very basic tracing
06:20Jamie[m]1oh, i suppose i can use chainload.py to boot macos directly, while i'm getting set up for tracing
06:21Jamie[m]1that seems smarter :)
06:22the_lanetly_052___ has joined #asahi-dev
06:23Jamie[m]1hmm, or can i
06:24rqou_i don't have xcode installed on my hacking partition
06:24jannaurqou_: I think macos just auto-suspends/sleeps after a certain amount of inactivity. supporting that properly with the HV is probably not worth the effort. I haven't bothered to check if it goes away if macos is configured to stay on
06:24rqou_i just copy binaries from my real macos install
06:24rqou_jannau: it definitely panics, idk if that's related to suspend or not
06:25jannauthe panics I looked at after inactivity were caused by suspend
07:40jluthra has quit [Remote host closed the connection]
07:40jluthra has joined #asahi-dev
08:43itsn0k[m] has joined #asahi-dev
08:43MajorBiscuit has joined #asahi-dev
08:47f14h has joined #asahi-dev
09:34bisko has quit [Read error: Connection reset by peer]
10:15psykose has quit [Remote host closed the connection]
10:16psykose has joined #asahi-dev
10:35kov has joined #asahi-dev
10:39wanderfull has quit [Quit: WeeChat 3.5]
11:46the_lanetly_052__ has joined #asahi-dev
11:52the_lanetly_052___ has quit [Ping timeout: 480 seconds]
12:10yuyichao has quit [Ping timeout: 480 seconds]
12:21yuyichao has joined #asahi-dev
12:27MajorBiscuit has quit [Ping timeout: 480 seconds]
13:34tmlind has quit [Ping timeout: 480 seconds]
13:42tmlind has joined #asahi-dev
14:08amarioguy has joined #asahi-dev
14:15MajorBiscuit has joined #asahi-dev
14:49doggkruse has joined #asahi-dev
15:05cyrozap has quit [Ping timeout: 480 seconds]
15:06cyrozap has joined #asahi-dev
15:32caef^ has joined #asahi-dev
15:35amarioguy has quit [Ping timeout: 480 seconds]
15:47doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:50the_lanetly_052__ has quit [Ping timeout: 480 seconds]
16:03the_lanetly_052__ has joined #asahi-dev
16:07___nick___ has joined #asahi-dev
16:08___nick___ has quit []
16:10___nick___ has joined #asahi-dev
16:46jannaumarcan: have you done any work on the m1 ultra? if not I can work on a m1n1 merge request and fix HV+macos
16:47MajorBiscuit has quit [Ping timeout: 480 seconds]
16:49marcanjannau: go for it :)
16:49marcanwas going to maybe do something in the next couple of days, if you want to put that together I'll wait a bit more and clear out my inbox instead
16:50marcan(sorry for being a bit slow the past few days, had to take a bit of a rest after a hectic month)
16:51j`eythere's the 10Gbe m1n1 change too
16:52jannauI'll work on it over the weekend and post what I get done until sunday
16:54jannauno problem. what we have right now works and was good enough to get the first user going
16:58amarioguy has joined #asahi-dev
17:21nicolas17 has joined #asahi-dev
17:22marcanJamie[m]1, jannau: that panic reason means something like a framebuffer cache line ended up in the CPU cache, which if it happens after initial boot could mean it was randomly caused by speculation in HV code
17:23marcanI'm... not entirely sure what the right fix for that would be. maybe map all guest RAM as noncacheable in the HV stage1 PTEs, since we can't know where framebuffers land? and maybe also all the carveouts in general?
17:25marcantbh, given we know those cache lines don't actually *break* anything at least the vast majority of the time, I'd first look for a xnu bootarg to turn off those panics
17:25marcanI bet there is one, and if there isn't maybe we can just hook that to disable it at the hardware level
17:27marcanincidentally, those exceptions don't exist on t8103 (or don't get enabled)
17:50doggkruse has joined #asahi-dev
18:30doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:50BenjaminGwynn[m] has joined #asahi-dev
18:54amarioguy has quit [Ping timeout: 480 seconds]
19:00tanty has quit []
19:01tanty has joined #asahi-dev
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:13tanty has quit []
20:18doggkruse has joined #asahi-dev
20:18doggkruse has quit []
20:26doggkruse has joined #asahi-dev
20:28doggkruse has quit []
20:50tanty has joined #asahi-dev
21:56Lightsword has quit [Quit: ZNC]
22:06Lightsword has joined #asahi-dev
22:09f14h has quit [Remote host closed the connection]
22:44caef^ has quit [Remote host closed the connection]
22:51luca020400 has quit [Quit: bye!]
22:51luca020400 has joined #asahi-dev
22:52null has quit [Quit: oh no.]
22:52null has joined #asahi-dev
23:57rqou_sven: i found an unexpected (to me) limitation of your 4k iommu patch -- it breaks vfio-pci (i promise i have a not-entirely-terrible reason for wanting this)
23:58rqou_notably it fails on vfio_set_iommu, before attempting to map any memory
23:58rqou_as for the reason i was trying this, i was hoping i would be able to prototype something that pokes at the bluetooth hardware from linux userspace
…