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
jbowen has quit [Quit: leaving]
apetresc has quit [Quit: ZNC 1.8.2 - https://znc.in]
apetresc has joined #asahi-dev
quarkyalice__ has joined #asahi-dev
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
quarkyalice__ has quit [Ping timeout: 480 seconds]
quarkyalice__ has joined #asahi-dev
quarkyalice__ has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
gladiac has joined #asahi-dev
aleasto has joined #asahi-dev
richbridger has quit [Ping timeout: 480 seconds]
richbridger has joined #asahi-dev
Mary has quit [Quit: Ping timeout (120 seconds)]
Mary has joined #asahi-dev
aquijoule_ has joined #asahi-dev
richbridger has quit [Remote host closed the connection]
yuyichao_ has quit [Quit: Konversation terminated!]
aleasto has quit [Ping timeout: 480 seconds]
aquijoule_ has quit []
aquijoule_ has joined #asahi-dev
aquijoule_ has quit [Remote host closed the connection]
Eighth_Doctor has joined #asahi-dev
<Eighth_Doctor> marcan: this might be a dumb question, but has anyone reached out to Apple about the IOMMUs thing to see if maybe a future iteration could support 4K pages?
<chadmed> i reckon they specifically did that for this reason. "an unsigned kernel, if you can keep it" type deal
<chadmed> its unlikely anyone will get any sort of official word out of apple on the matter either, this is all extremely antithetical to how they want consumers to use their devices
<sven> yeah, we shouldn't expect to get 4k iommu pages
<chadmed> everyone should just use gentoo on their macs and build their own kernels ;)
<sven> but i'll see if i can get a patch accepted that makes the iommu framework play nicely with a bigger granule once the initial DART version (+ some other important drivers) are upstream
<sven> fwiw, the current version boots on 4k kernels in bypass mode. what probably won't work for a while is thunderbolt and wifi
<chadmed> does anything good come of bypassing the IOMMU/s though?
<sven> not imho
<sven> but at least you could boot a normal distro installer that way and then switch to a custom kernel later on
<sven> might make adoption at the beginning easier
<chadmed> thats true, though i think all the messing around with m1n1 might preclude the kinds of folks that wouldnt be able to just build their own kernel anyway
<sven> the goal is to eventually have something like "boot into 1TR, open a terminal and run curl alx.sh | bash"
<chadmed> so maybe a discussion to be had once we have a very simple way for m1n1 to work without screwing around with double macos partitions and stuff
<chadmed> yeah
<sven> yeah
<sven> right now i expect everyone to use a kernel with 16k pages anyway since only the basics are upstreamed so far
<Eighth_Doctor> sure
<Eighth_Doctor> chadmed: wouldn't it be easier for Apple to offer a signing process for Linux instead?
<Eighth_Doctor> rather than using obstructions like this to break access to hardware?
<chadmed> why would they ever want to do that
<sven> they built the hardware that way because it works nicely with mac os. they don't care about anything else
<chadmed> the hardware isnt inaccessible because the kernel is unsigned anyway, its inaccessible because theres no documentation and whatever we have is from prodding at MMIO and lucky shared DNA with exynos
<sven> they're not trying to obstruct - they just have no reason to make the hw more complex
<chadmed> they will never ever ever facilitate or officially support booting anything other than macos in an apfs container
<chadmed> they only "let" you boot an unsigned kernel because the EU might have raised an eyebrow if they didnt
<sven> that's just speculation though. could've also been internal pressure from their engineers who also want linux on those machines ;)
<chadmed> that would be kinda cool if true or plausible lmao
<chadmed> revenge of the nerds, retaking silicon valley from the marketing goons
<jix> my guess is that they have a few different reasons and there isn't a single one that was the deciding factor, but I'm also just speculating
<chadmed> well yeah who knows what crazy stuff they have running on these machines in the lab
<chadmed> SGI IRIX maybe
<sven> we know that they have an internal linux port from some xnu comments
<_jannau_> the alternate kernel boot is there clearly by choice for https://twitter.com/XenoKovah/status/1370131505620652038
<kettenis> Apple runs a lot of infrastructure and they might be interested in running that on ARM platforms
<kettenis> And I doubt all that infrastructure runs on MacOS ;)
v_x has quit []
vx has joined #asahi-dev
vx is now known as Guest570
<marcan> chadmed: apple isn't deliberately breaking us in any way
<marcan> they built the entire bootpolicy system so things like asahi can exist
<marcan> but they also aren't going to spend engineering effort into helping things that only we care about
<marcan> asahi isn't something they want to hinder at all
<marcan> "here's code execution, have fun" is their take
<marcan> and I'm fine with that
<marcan> macOS updates so far have made our lives *easier*, not *harder:
<marcan> they clearly aren't trying to trip us up
<marcan> if asahi gets big enough that people rely on it, I expect apple to tacitly try not to break us too badly for no good reason
<marcan> the 4K/16K page thing is how it is because it's exactly what they need
<marcan> they only care about 16K systemwide, except they needed 4K in userspace in the CPU for Rosetta. that's it.
<marcan> (and they also support it in kernelspace because not doing so would be even weird and architecture-breaking and bizarre)
<marcan> *even more
<kettenis> so as far as I can tell all devices that do DMA are cache coherent
<kettenis> which means we need to add som "dma-coherent" properties to the device tree I think
<marcan> yeah, I didn't find any noncoherence
<marcan> framebuffer is one that would be obvious if it weren't coherent
<kettenis> so we can probably put it on the "soc" node next to the "nonposted-mmio" property
<kettenis> it probably makes sense to move the "interrupt-parent" property up as well to avoid repeating it for every device
<kettenis> that one tends to go on the root node though
<sven> yeah, i didn't see any non-coherence either even when the iommus are in bypass mode
opticron has quit [Ping timeout: 480 seconds]
opticron has joined #asahi-dev
erincandescent has quit [Remote host closed the connection]
erincandescent has joined #asahi-dev
quarkyalice has quit [Quit: Leaving]
quarkyalice has joined #asahi-dev
quarkyalice__ has joined #asahi-dev
quarkyalice__ has quit [Remote host closed the connection]