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
milek7 has quit [Server closed connection]
milek7 has joined #asahi-dev
<chadmed> marcan: mkinitcpio found all the modules if i passed it "-k $(make -s kernelrelease)" and added nvme-apple manually to /etc/mkinitcpio.conf
<chadmed> dracut's default config is a little saner, and i managed to get it to behave normally by just passing kernelrelease
yuyichao has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
ella-0[m] has quit [Server closed connection]
ella-0[m] has joined #asahi-dev
fridtjof[m] has quit [Server closed connection]
fridtjof[m] has joined #asahi-dev
<marcan> mkinitcpio can't find provider dependencies, it has no mechanism for that
<marcan> e.g. apple-mailbox
<marcan> that's why I had to add an asahi hook to explicitly throw those in
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
alicela1n has quit [Server closed connection]
alicela1n has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
gabuscus has quit [Server closed connection]
gabuscus has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
gladiac has quit [Server closed connection]
gladiac has joined #asahi-dev
therealminzii[m] has quit [Server closed connection]
therealminzii[m] has joined #asahi-dev
thebigbossch[m] has quit [Server closed connection]
thebigbossch[m] has joined #asahi-dev
gruetzkopf has quit [Server closed connection]
gruetzkopf has joined #asahi-dev
<kettenis> marcan: seems u-boot is still happy with the DT changes you pushed
Major_Biscuit has joined #asahi-dev
MajorBiscuit has quit [Read error: No route to host]
gladiac is now known as Guest1121
gladiac has joined #asahi-dev
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
Guest1121 has quit [Ping timeout: 480 seconds]
Major_Biscuit has quit []
maxkofler has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
maxkofler has quit [Remote host closed the connection]
the_lanetly_052__ has joined #asahi-dev
yuyichao has joined #asahi-dev
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
amarioguy has joined #asahi-dev
<marcan> kettenis: cool! thanks for merging them!
<marcan> and yeah, I saw they still worked, I'm glad :)
<marcan> not sure if t8103 might need the same fixup too, since it has a slightly different tree for ans2
<mps> marcan: I built u-boot and kernel last night, concatenated dtbs from kernel to m1n1+u-boot, everything works
<marcan> mps: the issue is specifically about building the nvme stuff as a module
<mps> marcan: ah, I didn't tried this
maxkofler has joined #asahi-dev
<povik> marcan: we can't sleep in cpufreq's fast_switch: https://tpaste.us/Vvy0
maxkofler has quit [Remote host closed the connection]
maxkofler has joined #asahi-dev
<marcan> yeah I know, need to fix that one too
<marcan> thanks for reminding me :)
<marcan> I need to start keeping a todo list... I forget things
<povik> relatable
<povik> ah
kgarrington has joined #asahi-dev
<kgarrington> FYI, someone else appears to have implemented SPRR/GXF emulation: https://twitter.com/ntrung03/status/1499274938217381890
<kgarrington> I hope that means that we can have macOS KVM guests sooner rather than later
kgarrington has quit [Remote host closed the connection]
<sven> probably easier to get a vmapple kernel running in kvm which doesn't require sprr/gxf. but then there's still the issue that macos requires a gpu to work
<marcan> IIRC someone already tried that and it works? like way back
<sven> i think it should just work at least in text mode
<marcan> yeah, exactly
<marcan> but yeah, with the GPU issue, that's unfortunately not that useful for actually running macOS
<marcan> and SPRR/GXF emu doesn't really help
<marcan> it just changes the problem from "implement paravirtual rust" to "implement virtual AGX"
<marcan> both are kind of... difficult
<marcan> er, paravirtual metal
<marcan> I love what my brain did there :')
<sven> :D
<marcan> also, that is SPRR/GXF *emulation*
<marcan> there is no way to implement SPRR/GXF *virtualizatino* sanely
<marcan> already went through all that with my hypervisor
<marcan> not practical since AArch64 has no mechanism to trap undefined instructions to EL2
<marcan> you need to do some horrible vector table patching at the very least, and it still would be hard to get perfect
<marcan> and SPRR is also impossible to sanely do, unless you just ignore the extra permission restrictions (which will probably work)
<marcan> so it probably makes more sense to ignore all that and just target the vmapple kernel... and have fun implementing paravirtual metal
maxkofler has quit [Read error: Connection reset by peer]
maxkofler has joined #asahi-dev
maxkofler has quit []
amarioguy has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
<kettenis> marcan: I also spotted some (minor) issues with the DTs; what is your preferred way for me to provide fixes for these?
MajorBiscuit has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
<marcan> kettenis: you can just point me at fix commits if it's trivial stuff (even in u-boot), or just do them on top of the asahi branch and point me at them that way
<marcan> not that I've explicitly thought this through too much, but it seems we've largely settled on a "people work on their own branches and poke a stick at me when they want something merged" model for now :)
<marcan> (nb: I didn't get anything done today because I had a bit of a health scare... I'm okay now, but if I disappear or have to take a break some days in the coming weeks, that's why)
<kettenis> take the time you need; we need a healthy marcan to keep carrying the torch!
yuyichao has quit [Ping timeout: 480 seconds]
<maz> marcan: code can wait forever. your health can't. just rest.
<marcan> well, kidney stones seem to be quite unpredictable, so I don't plan on twiddling my thumbs in bed all day when I'm feeling fine either... but yeah, if it hits me again, there's no way I'm getting out of bed until it's over.
<tpw_rules> do you need a drink water bot in your stream
<marcan> I was actually thinking about that
<marcan> might just set up a pile of alarms tbh
<marcan> stream or no stream :)
<j`ey> better get the RTC alarm working then! :P
<marcan> lol :D
yuyichao has joined #asahi-dev
<marcan> there we go, thank you Home Assistant. I just made it toggle my keyboard LED lighting (which just kind of lights up my desk) once an hour. nice and unobtrusive.
off^ has joined #asahi-dev
the_lanetly_052___ has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
<kettenis> the first fixup is simply a pasto; the second is a leftover from an earlier approach to do cpufreq stuff
<kettenis> (I can turn this into a PR if that helps)
<marcan> kettenis: thanks, fixed in local bits/, will be in the next merge (once I work out the module issues I'm looking at)
<kettenis> great; this doesn't really affect things, but probably needed fixup before upstreaming
<marcan> yeah
amarioguy has joined #asahi-dev
<amarioguy> btw on interrupt handling: do you all just use the AIC directly in Asahi?
<j`ey> what do you mean by directly?
<amarioguy> like do you all just use the AIC as is in Asahi or do you work around it by emulating a GIC or something similar?
<j`ey> no the AIC is used
<j`ey> drivers/irqchip/irq-apple-aic.c
<amarioguy> gotcha
amarioguy has quit [Remote host closed the connection]
<maz> also, it is pretty hard to emulate a GIC on top of AIC without resorting to virtualisation. the life cycle of the interrupts on AIC really doesn't match the GIC's.
<marcan> love it when I trace my module issue to a deadlock in Linux's OF core
<alyssa> nice
<marcan> ... caused by calling printk with an OF format specifier while holding the OF spinlock earlier in the call chain
<marcan> how's that for a scary callchain...
<alyssa> just don't call printk, problem solved /s
<marcan> the trigger is a refcounting bug in my code... but it's nasty that then the message complaining about that deadlocks :(
maxkofler has joined #asahi-dev
<alyssa> clearly linux needs kARC++ /s
maxkofler has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
maxkofler has joined #asahi-dev
Major_Biscuit has joined #asahi-dev
maxkofler has quit [Read error: Connection reset by peer]
MajorBiscuit has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
maxkofler has joined #asahi-dev
maxkofler has quit [Read error: Connection reset by peer]
maxkofler has joined #asahi-dev
maxkofler has quit [Read error: Connection reset by peer]
maxkofler has joined #asahi-dev
maxkofler has quit [Read error: Connection reset by peer]
maxkofler has joined #asahi-dev
maxkofler has quit []
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
amarioguy has joined #asahi-dev
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
<sven> yay, my atcphy hack is not rebooting my machine anymore. It also doesn’t work though :(
<alyssa> womp
Major_Biscuit has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
Glanzmann has quit [Quit: EOF]
amarioguy has quit [Ping timeout: 480 seconds]
<povik> no here's half a day spent chasing something
<povik> [ 4.167622] apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
<povik> remember ^ ?
<povik> turns out it's due to the associated NCO channel being disabled
<povik> well...
<povik> it *does* say it's clkgated
<povik> but i didn't think that through
<povik> thought it means some other clock...
<alyssa> D:
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
amarioguy has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
maxkofler has joined #asahi-dev
maxkofler has quit []
kgarrington has joined #asahi-dev
user982492 has joined #asahi-dev
<kgarrington> marcan: kidney stone pro tip: in addition to drinking more water, consider adding more lemonade & lemons to your diet
kgarrington has quit [Remote host closed the connection]
user982492 has quit []
furrylover420[m] has joined #asahi-dev
nico_32_ has joined #asahi-dev
nico_32 has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev