ChanServ changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
PhilippvK has quit [Ping timeout: 480 seconds]
boardwalk has quit [Read error: Connection reset by peer]
boardwalk has joined #asahi-re
MajorBiscuit has joined #asahi-re
chadmed has quit [Quit: Konversation terminated!]
MajorBiscuit has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-re
MajorBiscuit has joined #asahi-re
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has joined #asahi-re
millenialhacker has quit [Remote host closed the connection]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millenialhacker has joined #asahi-re
bisko has joined #asahi-re
<zx2c4> huh so running rosetta on most binaries in asahi gives me
<zx2c4> rosetta error: failed to mmap segment: 22
<zx2c4> strace shows
<zx2c4> mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
<zx2c4> some binaries do work, though
<zx2c4> but not all
<zx2c4> i wonder if this is another 16k page situation
<zx2c4> yea that must be it
<zx2c4> it can't map these pages in the right place
<zx2c4> [pid 1057] mmap(0x555555554000, 131072, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x555555554000
<zx2c4> [pid 1057] mmap(0x555555574000, 602112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x555555574000
<zx2c4> [pid 1057] mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
<zx2c4> marcan: any plans to switch the kernel to 4k pages?
schuepbs[m] has left #asahi-re [#asahi-re]
<AdryzzOLEDEdition[m]1> no, the kernel will be kept at 16k so that people start fixing their software. and also, it is faster on 16k
<AdryzzOLEDEdition[m]1> there should be a 4k patch though
<_jannau_> zx2c4: no immediate plans. the iommus use a page size of 16k and there is some effort needed to support that with smaller CPU page size. there is wip tree to so some of the work to support that: https://github.com/AsahiLinux/linux/tree/iommu-4k/dev
<zx2c4> ahh, thanks
<zx2c4> hmm how do i turn a `add x1, x1, 4095` into a `add x1, x1, 16383` without needing an extra 4 bytes of .text
the_lanetly_052__ has joined #asahi-re
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<_jannau_> zx2c4: do you have by any chance a register which is guaranteed to have the top 14 bits set? `add x1, x1, xY, lsr #49`
<dougall> (reminds me of copying decompiled code out of hex-rays and recompiling it with -Oz to make space for binary patches, not that i recommend that)
<sven> fwiw, i'll pick that 4k iommu back up once robin has finished his iommu api refactoring series. some of the changes become more sane once we already know the iommu instance by the time domain_alloc is called
amarioguy has quit [Quit: Leaving]
<zx2c4> _jannau_: not quite but i think i can reorder...
<zx2c4> lsr $50 you meant i think
MajorBiscuit has quit [Ping timeout: 480 seconds]
DarkShadow44 has quit [Remote host closed the connection]
DarkShadow44 has joined #asahi-re
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
nsklaus has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-re
nsklaus_ has joined #asahi-re
nsklaus has quit [Ping timeout: 480 seconds]
systwi_ has joined #asahi-re
systwi has quit [Ping timeout: 480 seconds]
systwi_ has quit []
systwi has joined #asahi-re
yamii_ has joined #asahi-re
yamii has quit [Read error: Connection reset by peer]
amarioguy has joined #asahi-re
yamii has joined #asahi-re
yamii_ has quit [Read error: Connection reset by peer]
yamii_ has joined #asahi-re
yamii has quit [Read error: Connection reset by peer]
yamii has joined #asahi-re
yamii_ has quit [Read error: Connection reset by peer]
wally_ has joined #asahi-re
WanliLi[m] has joined #asahi-re
wally_ has quit [Ping timeout: 480 seconds]
wally_ has joined #asahi-re