#
…

2022-06-15

02:38PhilippvK has quit [Ping timeout: 480 seconds]
05:29boardwalk has quit [Read error: Connection reset by peer]
05:29boardwalk has joined #asahi-re
06:20MajorBiscuit has joined #asahi-re
06:41chadmed has quit [Quit: Konversation terminated!]
06:41MajorBiscuit has quit [Ping timeout: 480 seconds]
06:48chadmed has joined #asahi-re
07:42MajorBiscuit has joined #asahi-re
08:34bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:04bisko has joined #asahi-re
10:05millenialhacker has quit [Remote host closed the connection]
10:11bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:13millenialhacker has joined #asahi-re
11:36bisko has joined #asahi-re
13:45zx2c4huh so running rosetta on most binaries in asahi gives me
13:45zx2c4rosetta error: failed to mmap segment: 22
13:45zx2c4strace shows
13:45zx2c4mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
13:45zx2c4some binaries do work, though
13:45zx2c4but not all
13:47zx2c4i wonder if this is another 16k page situation
13:47zx2c4yea that must be it
13:47zx2c4it can't map these pages in the right place
13:48zx2c4[pid 1057] mmap(0x555555554000, 131072, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x555555554000
13:48zx2c4[pid 1057] mmap(0x555555574000, 602112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x555555574000
13:48zx2c4[pid 1057] mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
13:49zx2c4marcan: any plans to switch the kernel to 4k pages?
13:49schuepbs[m] has left #asahi-re [#asahi-re]
14:09AdryzzOLEDEdition[m]1no, the kernel will be kept at 16k so that people start fixing their software. and also, it is faster on 16k
14:09AdryzzOLEDEdition[m]1there should be a 4k patch though
14:13_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
14:13zx2c4ahh, thanks
14:27zx2c4hmm how do i turn a `add x1, x1, 4095` into a `add x1, x1, 16383` without needing an extra 4 bytes of .text
14:31the_lanetly_052__ has joined #asahi-re
14:37the_lanetly_052 has quit [Ping timeout: 480 seconds]
14:40_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`
14:43dougall(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)
14:49svenfwiw, 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
15:00amarioguy has quit [Quit: Leaving]
15:00zx2c4_jannau_: not quite but i think i can reorder...
15:15zx2c4lsr $50 you meant i think
16:00MajorBiscuit has quit [Ping timeout: 480 seconds]
17:01DarkShadow44 has quit [Remote host closed the connection]
17:02DarkShadow44 has joined #asahi-re
18:19the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:37nsklaus has quit [Ping timeout: 480 seconds]
18:43nsklaus has joined #asahi-re
18:43nsklaus_ has joined #asahi-re
18:51nsklaus has quit [Ping timeout: 480 seconds]
19:13systwi_ has joined #asahi-re
19:15systwi has quit [Ping timeout: 480 seconds]
19:17systwi_ has quit []
19:17systwi has joined #asahi-re
21:02yamii_ has joined #asahi-re
21:02yamii has quit [Read error: Connection reset by peer]
22:14amarioguy has joined #asahi-re
22:21yamii has joined #asahi-re
22:21yamii_ has quit [Read error: Connection reset by peer]
22:36yamii_ has joined #asahi-re
22:36yamii has quit [Read error: Connection reset by peer]
22:55yamii has joined #asahi-re
22:55yamii_ has quit [Read error: Connection reset by peer]
23:22wally_ has joined #asahi-re
23:45WanliLi[m] has joined #asahi-re
23:48wally_ has quit [Ping timeout: 480 seconds]
23:49wally_ has joined #asahi-re
…