#
…

2021-07-12

01:14jbowen has quit [Quit: leaving]
01:22apetresc has quit [Quit: ZNC 1.8.2 - https://znc.in]
02:05apetresc has joined #asahi-dev
02:11quarkyalice__ has joined #asahi-dev
02:18PhilippvK has joined #asahi-dev
02:21phiologe has quit [Ping timeout: 480 seconds]
02:37quarkyalice__ has quit [Ping timeout: 480 seconds]
03:21quarkyalice__ has joined #asahi-dev
03:33quarkyalice__ has quit [Ping timeout: 480 seconds]
08:12gladiac has quit [Quit: k thx bye]
08:14gladiac has joined #asahi-dev
09:13aleasto has joined #asahi-dev
09:37richbridger has quit [Ping timeout: 480 seconds]
09:37richbridger has joined #asahi-dev
09:54Mary has quit [Quit: Ping timeout (120 seconds)]
09:55Mary has joined #asahi-dev
10:42aquijoule_ has joined #asahi-dev
10:42richbridger has quit [Remote host closed the connection]
13:40yuyichao_ has quit [Quit: Konversation terminated!]
14:03aleasto has quit [Ping timeout: 480 seconds]
14:32aquijoule_ has quit []
14:32aquijoule_ has joined #asahi-dev
14:32aquijoule_ has quit [Remote host closed the connection]
14:33Eighth_Doctor has joined #asahi-dev
14:33Eighth_Doctormarcan: 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?
14:35chadmedi reckon they specifically did that for this reason. "an unsigned kernel, if you can keep it" type deal
14:36chadmedits 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
14:37svenyeah, we shouldn't expect to get 4k iommu pages
14:38chadmedeveryone should just use gentoo on their macs and build their own kernels ;)
14:38svenbut 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
14:39svenfwiw, the current version boots on 4k kernels in bypass mode. what probably won't work for a while is thunderbolt and wifi
14:39chadmeddoes anything good come of bypassing the IOMMU/s though?
14:40svennot imho
14:40svenbut at least you could boot a normal distro installer that way and then switch to a custom kernel later on
14:40svenmight make adoption at the beginning easier
14:41chadmedthats 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
14:41sventhe goal is to eventually have something like "boot into 1TR, open a terminal and run curl alx.sh | bash"
14:41chadmedso 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
14:42svenright now i expect everyone to use a kernel with 16k pages anyway since only the basics are upstreamed so far
14:43Eighth_Doctorchadmed: wouldn't it be easier for Apple to offer a signing process for Linux instead?
14:43Eighth_Doctorrather than using obstructions like this to break access to hardware?
14:43chadmedwhy would they ever want to do that
14:44sventhey built the hardware that way because it works nicely with mac os. they don't care about anything else
14:44chadmedthe 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
14:44sventhey're not trying to obstruct - they just have no reason to make the hw more complex
14:44chadmedthey will never ever ever facilitate or officially support booting anything other than macos in an apfs container
14:45chadmedthey only "let" you boot an unsigned kernel because the EU might have raised an eyebrow if they didnt
14:45sventhat's just speculation though. could've also been internal pressure from their engineers who also want linux on those machines ;)
14:46chadmedthat would be kinda cool if true or plausible lmao
14:47chadmedrevenge of the nerds, retaking silicon valley from the marketing goons
14:48jixmy 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
14:50chadmedwell yeah who knows what crazy stuff they have running on these machines in the lab
14:50chadmedSGI IRIX maybe
14:50svenwe know that they have an internal linux port from some xnu comments
14:56_jannau_the alternate kernel boot is there clearly by choice for https://twitter.com/XenoKovah/status/1370131505620652038
15:04kettenisApple runs a lot of infrastructure and they might be interested in running that on ARM platforms
15:05kettenisAnd I doubt all that infrastructure runs on MacOS ;)
15:08v_x has quit []
15:54vx has joined #asahi-dev
15:55vx is now known as Guest570
16:25marcanchadmed: apple isn't deliberately breaking us in any way
16:26marcanthey built the entire bootpolicy system so things like asahi can exist
16:26marcanbut they also aren't going to spend engineering effort into helping things that only we care about
16:26marcanasahi isn't something they want to hinder at all
16:26marcan"here's code execution, have fun" is their take
16:26marcanand I'm fine with that
16:27marcanmacOS updates so far have made our lives *easier*, not *harder:
16:27marcanthey clearly aren't trying to trip us up
16:28marcanif 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
16:29marcanthe 4K/16K page thing is how it is because it's exactly what they need
16:29marcanthey only care about 16K systemwide, except they needed 4K in userspace in the CPU for Rosetta. that's it.
16:29marcan(and they also support it in kernelspace because not doing so would be even weird and architecture-breaking and bizarre)
16:29marcan*even more
16:42kettenisso as far as I can tell all devices that do DMA are cache coherent
16:42ketteniswhich means we need to add som "dma-coherent" properties to the device tree I think
16:58marcanyeah, I didn't find any noncoherence
16:59marcanframebuffer is one that would be obvious if it weren't coherent
17:06kettenisso we can probably put it on the "soc" node next to the "nonposted-mmio" property
17:10kettenisit probably makes sense to move the "interrupt-parent" property up as well to avoid repeating it for every device
17:11kettenisthat one tends to go on the root node though
17:41svenyeah, i didn't see any non-coherence either even when the iommus are in bypass mode
18:37opticron has quit [Ping timeout: 480 seconds]
19:29opticron has joined #asahi-dev
19:31erincandescent has quit [Remote host closed the connection]
19:32erincandescent has joined #asahi-dev
19:46quarkyalice has quit [Quit: Leaving]
19:46quarkyalice has joined #asahi-dev
22:48quarkyalice__ has joined #asahi-dev
22:49quarkyalice__ has quit [Remote host closed the connection]
…