marcan changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
chadmed_ has joined #asahi-alt
chadmed_ has quit []
chadmed_ has joined #asahi-alt
chadmed_ has quit [Remote host closed the connection]
chadmed_ has joined #asahi-alt
Manouchehri_ has joined #asahi-alt
alethkit_ has joined #asahi-alt
tsujp_ has joined #asahi-alt
d4ve_ has joined #asahi-alt
_alice_ has joined #asahi-alt
alethkit has quit [synthon.oftc.net larich.oftc.net]
d4ve has quit [synthon.oftc.net larich.oftc.net]
tsujp has quit [synthon.oftc.net larich.oftc.net]
Manouchehri has quit [synthon.oftc.net larich.oftc.net]
tpw_rules has quit [synthon.oftc.net larich.oftc.net]
_alice has quit [synthon.oftc.net larich.oftc.net]
d4ve_ is now known as d4ve
alethkit_ is now known as alethkit
tpw_rules has joined #asahi-alt
chadmed_ has quit [Quit: Konversation terminated!]
<amw> Glanzmann: I'm guessing the sven patch is 047108dcf191 : iommu/io-pgtable: Add DART PTE support for t6000
<amw> Also trying to understand the page support we have grep -e 'ARM64_.*K_PAGES'
<amw> /boot/config-5.18.0-asahi-00002-g6ebad5e5a0ca:CONFIG_ARM64_4K_PAGES=y
<amw> /boot/config-5.18.0-asahi-00002-g6ebad5e5a0ca:CONFIG_ARM64_4K_PAGES=y
<amw> /boot/config-5.19.0-rc7-asahi:CONFIG_ARM64_4K_PAGES=y
<amw> config-2022-07-19-16k.txt => CONFIG_ARM64_16K_PAGES=y
<amw> stock-asahi-config.txt => CONFIG_ARM64_16K_PAGES=y also
<amw> Yes your latest m1-debian kernel has 4K pages and is missing that iommu patch - not sure what the other trade offs are of different page sizes
mini0n has joined #asahi-alt
<chadmed> the 4K pages allow broken programs to work at the cost of severely reduced performance
<amw> chadmed: So good if you can skip it for your system
<chadmed> you can skip them on every system
<chadmed> the SoC and DARTs are all 16K aligned natively and almost all software built for aarch64 works properly without the patches
<chadmed> the patches are only useful if youre using fex/box{86,64} or you use a ton of electron crap that never gets updated (electron works with 16k pages as of a recent version)
<amw> ok - thanks I think I'll drop the 4k and see if my WiFi starts working again...
<chadmed> if youre building your own kernel it's probably best to start with the stock asahi config and make sure that works before you start ripping stuff out you think you wont need
<amw> I'm working from Glanzmann's base -> so I'll start ripping things out of that - I think the 4k page patch wasn't working for me some how
<amw> Glanzmann: Removing the build/linux directory and rebuilding fresh works !
<amw> I think the iommu patch failed to applied - because the build kernel didn't have the -g41547 suffix
<chadmed> what version of the kernel are you working off
<amw> I think it failed to apply because it wasn't a fresh checkout and some how that broke the patch - which was hidden in the script?
<amw> It is github.com/AsahiLinux/linux -b asahi with 3 patches (including 4k-iommu)
<chadmed> what are the other patches
<amw> just disble Read message crc mismatch in spi hid apple driver
<chadmed> yeah cool ok
<chadmed> i dont think dirty builds append the commit anymore fwiw
<chadmed> itll be your custom tag with a + next to it
<chadmed> e.g. i have 5.19.0-rc7-asahi-clang+
<chadmed> because i applied some patches to the devicetrees
<chadmed> besides if all your software works fine with 16K pages just dont apply the 4K patch
<amw> Yep - thinking of doing another one with that patch switched off and switch to 16K
<amw> Umm it looks like the -g42547d6c5 is generated by scm_version() in linux/scripts/setlocalversion to the -g + 12 digits of the git hash if it is not an exact -rcN version
<amw> So yep I think some how I lost the 4K iommu patch et al patches now to build the plain with out 4k!
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-alt
<amw> Yep - switching to 4K pages and dropping the iommu patch and WiFi works fine!
_alice_ is now known as _alice
mini0n has quit []
<amw> Glanzmann: Do you have any idea if Debian bookworm will support M1 hardware?
chadmed has quit [Quit: Konversation terminated!]
mini0n has joined #asahi-alt
mini0n has quit []
mini0n has joined #asahi-alt
mini0n has quit []
mini0n has joined #asahi-alt