#
#asahi-re · 2022-06-15 13:48
zx2c4[pid 1057] mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
#asahi-re · 2022-06-15 13:48
zx2c4[pid 1057] mmap(0x555555574000, 602112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x555555574000
#asahi-re · 2022-06-15 13:48
zx2c4[pid 1057] mmap(0x555555554000, 131072, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x555555554000
#asahi-re · 2022-06-15 13:47
zx2c4it can't map these pages in the right place
#asahi-re · 2022-06-15 13:47
zx2c4yea that must be it
#asahi-re · 2022-06-15 13:47
zx2c4i wonder if this is another 16k page situation
#asahi-re · 2022-06-15 13:45
zx2c4but not all
#asahi-re · 2022-06-15 13:45
zx2c4some binaries do work, though
#asahi-re · 2022-06-15 13:45
zx2c4mmap(0x555555607000, 192512, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0xb3000) = -1 EINVAL (Invalid argument)
#asahi-re · 2022-06-15 13:45
zx2c4strace shows
#asahi-re · 2022-06-15 13:45
zx2c4rosetta error: failed to mmap segment: 22
#asahi-re · 2022-06-15 13:45
zx2c4huh so running rosetta on most binaries in asahi gives me
#asahi-re · 2022-06-14 17:46
dottedmagmarcan's videos are great educational resource.
#asahi-re · 2022-06-14 17:27
amarioguyread the RE policy first i'd say
#asahi-re · 2022-06-14 17:27
amarioguysince it's the most difficult component right now
#asahi-re · 2022-06-14 17:26
amarioguygenerally speaking to contribute to the project is primarily about figuring out how the hardware works lol and most the effort atm is towards GPU work
#asahi-re · 2022-06-14 17:26
amarioguyas for your question, i don't think anyone can reasonably answer that but most reverse engineering resources tend to focus on binary RE (which for this project specifically is a legal mixed bag, and not allowed from code contributors mostly)
#asahi-re · 2022-06-14 17:25
vdanielmoThanks amarioguy
#asahi-re · 2022-06-14 17:24
vdanielmoSome recommended books to learn RE and be able to contribute to the project. Thanks.
#asahi-re · 2022-06-14 17:24
amarioguyvdanielmo: RE discussion must strictly go here
#asahi-re · 2022-06-05 10:23
phirewhoops
#asahi-re · 2022-06-05 10:22
marcanalso shouldn't we be having this discussion in -gpu? lina isn't even here
#asahi-re · 2022-06-05 10:22
marcan(plus the existing rtkit stuff)
#asahi-re · 2022-06-05 10:21
marcanso basically just a UAT driver
#asahi-re · 2022-06-05 10:21
marcanthat would still be single-process but at least it wouldn't be insanity as far as memory management goes
#asahi-re · 2022-06-05 10:21
marcanwhat *might* make more sense for experiments is a really insecure dumb driver that lets you do kernel-space maps and talk to the ASC side
#asahi-re · 2022-06-05 10:20
phireit certianlly wouldn't be pretty
#asahi-re · 2022-06-05 10:19
marcanI've done the "drivers from userspace" thing before and just getting a single buffer mapped to a device was already problematic
#asahi-re · 2022-06-05 10:19
marcanI'm... not sure that's a good idea, with the UAT and everything involved (and it'd only work for a single app at once)
#asahi-re · 2022-06-05 10:18
marcanlol
#asahi-re · 2022-06-05 10:18
phiretechnially we could do a version 0 dirver as just the m1n1 codebase accessing kmem
#asahi-re · 2022-06-05 10:17
marcan(and she has a point with the Rust thing)
#asahi-re · 2022-06-05 10:17
phirepoor lina
#asahi-re · 2022-06-05 10:17
marcanlina might have some work to do there :p
#asahi-re · 2022-06-05 10:16
marcanso that should be interesting if they made big changes
#asahi-re · 2022-06-05 10:16
marcanI want us to support 12.3 for the first GPU driver if possible, mostly to force the issue of supporting multiple firmwares and avoid having to make people upgrade firmware to get GPU support eventually
#asahi-re · 2022-06-05 10:12
phireI'm not sure if that's an old feature that's disabled on the M1 gpu, or a new feature that's not yet enabled
#asahi-re · 2022-06-05 10:11
phirehey, maybe they will enable the firmware-managed memory allocations feature
#asahi-re · 2022-06-05 10:10
marcanthis is the first time we're going to have two GPU majors supported at the same time
#asahi-re · 2022-06-05 10:09
marcanI do wonder if they'll keep the structs synced between GPU revisions though
#asahi-re · 2022-06-05 10:09
marcanso it'll be an ABI bump on that end
#asahi-re · 2022-06-05 10:09
marcanbut there's no reason for them to change the basic design
#asahi-re · 2022-06-05 10:09
marcanthat's usually how it goes with these things
#asahi-re · 2022-06-05 10:08
marcanphire: the GPU should be a new major revision AIUI, which will likely make a bunch of changes to initdata and friends
#asahi-re · 2022-06-05 07:38
phireor more, I expect them to use the same agx firmware version across multiple GPU revisions, but that agx firmware might get a version bump
#asahi-re · 2022-06-05 07:36
phirethere's a good chance the new gpu won't require any major changes to the kernel code. Except it will probally come with a new macos version that rearranges all the structs
#asahi-re · 2022-06-04 22:56
nicolas17amarioguy: you can't even be so sure m2 is coming on WWDC, let alone what its hardware will have :P
#asahi-re · 2022-06-04 22:54
marcanI don't outright expect any major changes other than that, but we'll see
#asahi-re · 2022-06-04 22:53
marcan(lina probably less since I'm guessing that side would change less? but who knows)
#asahi-re · 2022-06-04 22:53
marcanwhich means alyssa has some work to do

plus ›