#
✕ nick:chadmed
#asahi-re · 2022-04-17 04:28
chadmedobviously trying to map that fai;s because its not real or properly aligned
#asahi-re · 2022-04-17 04:27
chadmedand the 0x18 endpoint of mesa only ever tries to touch that when you put your finger on it?
#asahi-re · 2022-04-17 04:27
chadmedhuh so the unmapped iova is apparently at 0x2?
#asahi-re · 2022-04-17 01:29
chadmedas for DPE, no clue
#asahi-re · 2022-04-17 01:29
chadmedmy first guess would be apple scaling engine or something to that effect
#asahi-re · 2022-04-17 01:28
chadmedin what context? the scalers?
#asahi-re · 2022-04-17 01:26
chadmedgenerating those mmio traces will probably be more useful than trying to decipher the censored XNU boot logs and decompiled kext since we know what interfaces it talks over
#asahi-re · 2022-04-17 01:25
chadmedmillennialhacker: you can write a tracer for the hypervisor to snoop memory accesses to the camera's MMIO. see the tracers in proxyclient/hv/ for examples
#asahi-re · 2022-04-16 13:09
chadmedjust like AMD hackintosh kernel patching ;)
#asahi-re · 2022-04-16 13:09
chadmedwell most the stuff that makes it actually work is closed source, so id say to change that sort of thing youd have to bust out a hex editor and know which bytes to change and to what
#asahi-re · 2022-04-16 12:27
chadmedhow do i map IOVAs properly? is it just a matter of using iomon.add() on the ranges i (think) i need?
#asahi-re · 2022-04-12 09:06
chadmednice!
#asahi-re · 2022-04-08 06:28
chadmedi would imagine so but dont quote me on that
#asahi-re · 2022-04-08 06:25
chadmedbut i dont think anyone figured anything out beyond that information
#asahi-re · 2022-04-08 06:25
chadmedits like HCI over USB over PCIe or something silly like that
#asahi-re · 2022-04-06 13:01
chadmedintel's mesa stuff creates the buffer batches and then flicks them off to the kernel driver for submission
#asahi-re · 2022-04-06 13:00
chadmedbut yeah fwiw thats basically exactly how i915 works in linux
#asahi-re · 2022-04-06 13:00
chadmeddoesnt really need to be on a console heh
#asahi-re · 2022-04-06 12:58
chadmedi915 works similar to that i think
#asahi-re · 2022-04-06 12:52
chadmedphire had some scripts to talk to the GPU's firmware directly from m1n1
#asahi-re · 2022-04-06 12:50
chadmedsince they will basically do the same thing
#asahi-re · 2022-04-06 12:50
chadmedAIUI we have to submit work via the RTKit firmware the GPU runs anyway, so your raw command submission API will probably look pretty similar to the linux kernel driver
#asahi-re · 2022-04-06 12:49
chadmedright
#asahi-re · 2022-04-06 12:47
chadmeddo consoles no longer just submit precompiled shaders to the GPU directly?
#asahi-re · 2022-04-06 12:46
chadmedalyssa's mesa driver is only the userspace half, so the part that takes the opengl shaders and compiles them into AGX instructions. we still rely on the macos kernel to submit those to the gpu via the firmware. Asahi Lina is working on reverse engineering the interface for that so we can do it in Linux
#asahi-re · 2022-04-06 12:41
chadmedwell yeah we dont want anything to do with that regardless (its also not fun and not rewarding so why do it :P)
#asahi-re · 2022-04-06 12:40
chadmedi believe our current apple psychoanalys on this goes like: a) we want to sell apple silicon macs. b) we do not want to spend money porting linux to the macs. c) a non-trivial minority of people find these machines highly desirable, IFF they can run linux. d) there are people willing to port linux to our machines for free. e) this will sell more macs. f) let these people have their fun so we sell more macs
#asahi-re · 2022-04-06 12:37
chadmedand doing the latter is just silly
#asahi-re · 2022-04-06 12:37
chadmedwhich, of course, doing the former will just get you banned from here and also probably sent to jail anyway
#asahi-re · 2022-04-06 12:37
chadmedunless youre outright copying code and implementations and publishing it all in your capacity as an apple-associated developer
#asahi-re · 2022-04-06 12:36
chadmedyeah ok my point is merely that its not really "illegal" to do it, and the risk of them actually taking any action against you is probably extremely low
#asahi-re · 2022-04-06 12:36
chadmedi mean idk why anyone would take apple to court over losing access to an apple id, but hey you could do it and (assuming you have unlimited money) may even win
#asahi-re · 2022-04-06 12:35
chadmedyeah this applies to the interpretations of RE clauses in EULAs
#asahi-re · 2022-04-06 12:34
chadmedthe US is very permissive about this actually, the EU and Australia not so much but if you can demonstrate that you were REing the for the purposes of "interoperability" (in this instance, interfacing one piece of software/hardware with another) then youre clear
#asahi-re · 2022-04-06 12:33
chadmedsven: if you really, really, really cared about access to your apple id, you could take them to court in most common law countries over this. if you can prove they nixed your account because of RE you have a case
#asahi-re · 2022-04-06 12:24
chadmedif youre really worred about your apple developer account, use a pseudonym when contributing RE
#asahi-re · 2022-04-06 12:24
chadmedit really is country specific but RE is not illegal and generally clauses in EULAs saying that they will ban/sue/kill you or remotely brick your device for doing it are wholly unenforceable
#asahi-re · 2022-03-28 10:10
chadmedmight be worthwhile compiling actual docs for some of this stuff at some point, once things have stabilised a bit
#asahi-re · 2022-03-28 10:02
chadmedoh yeah xwayland scaling is just completely borked. for firefox i just added MOZ_ENABLE_WAYLAND=1 to /etc/env and that sorted it, but its not really a shippable fix. not sure why they havent got wayland enabled by default upstream though
#asahi-re · 2022-03-28 10:00
chadmedonly niggle ive had with wayland over the last two-and-a-bit months has been the lack of blue light filtering at night, because no gamma_lut_crtc
#asahi-re · 2022-03-28 09:57
chadmedbut i mean theyre basically starting from nothing so its going to be a while before their labour bears any fruit
#asahi-re · 2022-03-28 09:57
chadmedcollabora is working on colour management in wayland i think
#asahi-re · 2022-03-28 09:42
chadmedincluding its fourccs
#asahi-re · 2022-03-28 09:42
chadmedhttps://wiki.multimedia.cx/index.php/Apple_ProRes this page has some decent info on the different bitfields in the prores headers and stuff
#asahi-re · 2022-03-28 09:39
chadmedfor it to be useful we'd have to add ProRes 422 support to VAAPI or something right
#asahi-re · 2022-03-25 11:06
chadmedunless it really uses so much less power just decoding the MJPEG stream from the webcam that it makes sense?
#asahi-re · 2022-03-25 11:06
chadmedyou have to wonder why they bother continuing to integrate it at this point, it seems a rather inflexible little bit of silicon
#asahi-re · 2022-03-25 11:05
chadmedif it supports 10-bit ARGB as per your notes then it seems apple have extensively modified it which would fit your guess
#asahi-re · 2022-02-08 02:38
chadmedim not fit to write a driver that blinks an LED let alone one to submit work to a GPU so you dont need to worry about me pinching code from apple or anyone else. this is a relatively new interest for me and ive no professional compsci or software design background so its mostly just out of curiosity for the workflow that i did it.
#asahi-re · 2022-02-08 00:02
chadmedphire: i had a go at dumping AGXG13X in ghidra a few days ago. its full of hard offsets and random jumps to data and generally quite well obfuscated from what i could tell. youll also need to pull in and poke around in a whole bunch of IOKit kexts that it seems to depend on

plus ›