ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
asocialblade has joined #asahi-dev
asocialblade has quit []
yuyichao has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
nicolas17 has quit [Ping timeout: 480 seconds]
akemin_dayo has quit [Quit: ┐(´д`🍍)┌ ]
akemin_dayo has joined #asahi-dev
emptynine has quit [Remote host closed the connection]
emptynine has joined #asahi-dev
<Jamie[m]1> Is there a known thing I need to do to avoid kernel panics under the hypervisor on modern macos versions?
<Jamie[m]1> I'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
<Jamie[m]1> not pausing it either
<Jamie[m]1> but it dies roughly 10 minutes after boot (not long enough to install the xcode developer tools, i can say for certain :)
<Jamie[m]1> https://paste.hotplate.co.nz/7PjivdwxUK#+BhBalIexwKZQ7Lznj8U6g
<Jamie[m]1> (t6000 j316)
<Jamie[m]1> hmm, maybe it's actually caused by installing the xcode command line tools...
<jannau> Jamie[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
alexsv has joined #asahi-dev
<jannau> the panic reason ("AMCC2 PLANE3 UNEXP_RT_HIT_DIR error: ...") looks like it could be caused by something m1n1 did
<Jamie[m]1> hmm, 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
<rqou_> i regularly get panics on t6001 if i pause for too long
<Jamie[m]1> yeah, no pausing in this case
<rqou_> but synchronous tracing seems "fine" for short sessions, like jannau said
<rqou_> not pausing seems to have worked for me, but the hv is definitely not super reliable
<rqou_> works for very basic tracing
<Jamie[m]1> oh, i suppose i can use chainload.py to boot macos directly, while i'm getting set up for tracing
<Jamie[m]1> that seems smarter :)
the_lanetly_052___ has joined #asahi-dev
<Jamie[m]1> hmm, or can i
<rqou_> i don't have xcode installed on my hacking partition
<jannau> rqou_: 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
<rqou_> i just copy binaries from my real macos install
<rqou_> jannau: it definitely panics, idk if that's related to suspend or not
<jannau> the panics I looked at after inactivity were caused by suspend
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
itsn0k[m] has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
f14h has joined #asahi-dev
bisko has quit [Read error: Connection reset by peer]
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
kov has joined #asahi-dev
wanderfull has quit [Quit: WeeChat 3.5]
the_lanetly_052__ has joined #asahi-dev
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
tmlind has quit [Ping timeout: 480 seconds]
tmlind has joined #asahi-dev
amarioguy has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
doggkruse has joined #asahi-dev
cyrozap has quit [Ping timeout: 480 seconds]
cyrozap has joined #asahi-dev
caef^ has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has joined #asahi-dev
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
<jannau> marcan: have you done any work on the m1 ultra? if not I can work on a m1n1 merge request and fix HV+macos
MajorBiscuit has quit [Ping timeout: 480 seconds]
<marcan> jannau: go for it :)
<marcan> was 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
<marcan> (sorry for being a bit slow the past few days, had to take a bit of a rest after a hectic month)
<j`ey> there's the 10Gbe m1n1 change too
<jannau> I'll work on it over the weekend and post what I get done until sunday
<jannau> no problem. what we have right now works and was good enough to get the first user going
amarioguy has joined #asahi-dev
nicolas17 has joined #asahi-dev
<marcan> Jamie[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
<marcan> I'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?
<marcan> tbh, 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
<marcan> I bet there is one, and if there isn't maybe we can just hook that to disable it at the hardware level
<marcan> incidentally, those exceptions don't exist on t8103 (or don't get enabled)
doggkruse has joined #asahi-dev
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BenjaminGwynn[m] has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
tanty has quit []
tanty has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
tanty has quit []
doggkruse has joined #asahi-dev
doggkruse has quit []
doggkruse has joined #asahi-dev
doggkruse has quit []
tanty has joined #asahi-dev
Lightsword has quit [Quit: ZNC]
Lightsword has joined #asahi-dev
f14h has quit [Remote host closed the connection]
caef^ has quit [Remote host closed the connection]
luca020400 has quit [Quit: bye!]
luca020400 has joined #asahi-dev
null has quit [Quit: oh no.]
null has joined #asahi-dev
<rqou_> 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)
<rqou_> notably it fails on vfio_set_iommu, before attempting to map any memory
<rqou_> 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