#
#asahi-gpu · 2022-02-09 11:45
marcanit's also possible the GPU allocates the queues btw, and updates the structure or something
#asahi-gpu · 2022-02-09 11:45
marcanheh
#asahi-gpu · 2022-02-09 11:45
phirethat's an interesting panic
#asahi-gpu · 2022-02-09 11:44
phireGFX PANIC - Host-mapped FW allocations are disabled, but FW only supports enabled (init_data_addr=0xffffffa0000b0000)! - agx_background(2)
#asahi-gpu · 2022-02-09 11:44
phireyeah, I haven't even tried to look for the per-context stuff, because I assume there needs to be a global queue to set the context
#asahi-gpu · 2022-02-09 11:43
marcanthe latter could be dynamically allocated via global messages
#asahi-gpu · 2022-02-09 11:43
marcanI would expect at least a few global queues and then possibly some per-context stuff or similar
#asahi-gpu · 2022-02-09 11:40
phireif there is an address to a shared memory queue, it should be there
#asahi-gpu · 2022-02-09 11:39
phireI'm current mapping out this "init data" struct
#asahi-gpu · 2022-02-09 11:32
phireyeah, the general idea
#asahi-gpu · 2022-02-09 11:31
marcanbut e.g. the kick stuff is also kinda how syslog works
#asahi-gpu · 2022-02-09 11:31
marcanobviously GFX does not use EPIC nor that bizarro dcpep thing
#asahi-gpu · 2022-02-09 11:31
marcanI mean the general idea
#asahi-gpu · 2022-02-09 11:30
phirethough the DCP ASC looks nothing kike the GFX ASC. I doubt they are related
#asahi-gpu · 2022-02-09 11:30
phireand way more sane than my other theories
#asahi-gpu · 2022-02-09 11:30
phireyeah, sounds right
#asahi-gpu · 2022-02-09 11:27
marcan*via mbox
#asahi-gpu · 2022-02-09 11:27
marcanphire: the kick via ASC plus shared memory ring buffer/work queue pattern is used for DCP, so finding one of those somewhere wouldn't surprise me as a work submission mechanism
#asahi-gpu · 2022-02-09 10:16
phire GFX PANIC - Unable to grab init data from host - agx_background(2)
#asahi-gpu · 2022-02-09 10:15
phirewell, unless you do something stupid like senting a null pointer on it's init data
#asahi-gpu · 2022-02-09 10:13
phireEP 0x20 doesn't seem to crash no matter what you send it
#asahi-gpu · 2022-02-09 10:13
phireep 0x21 crashes when you send it message types it doesn't exist, but doesn't seem to do any checking on the args to the 0x83 message
#asahi-gpu · 2022-02-09 10:11
phireforcing crashes hasn't told me that much
#asahi-gpu · 2022-02-09 08:58
phireRTKit Task List: rtk_ep_work, power, agx_background, agx_recovery, agx_interrupt, agx_power, agx_sampler
#asahi-gpu · 2022-02-09 08:57
phireoh... thank you crashlog and your very creative endpoint naming scheme of "user01" and "user02"
#asahi-gpu · 2022-02-09 08:48
phireyes, it's very privliaged
#asahi-gpu · 2022-02-09 08:48
svenweird that gfx-asc can essentially get access to every page
#asahi-gpu · 2022-02-09 08:47
svenhttps://github.com/AsahiLinux/m1n1/blob/41f0874f9999d2ac95ef5418dfae4fdd42cdc507/proxyclient/m1n1/fw/asc/crash.py#L137
#asahi-gpu · 2022-02-09 08:46
svenjust send 0x40 or 0x22 to it and it should crash
#asahi-gpu · 2022-02-09 08:36
phirethanks. Prehaps I should be trying harder to crash it
#asahi-gpu · 2022-02-09 08:28
svenendpoint 0x1 is probably the normal rtkit crashlog
#asahi-gpu · 2022-02-09 04:59
phirehttps://github.com/phire/m1n1/blob/gpu-RE/phire-gpu-infodump.md
#asahi-gpu · 2022-02-09 02:31
phireyou still interested at looking into gpu stuff today?
#asahi-gpu · 2022-02-09 02:30
phireright, I'm writing up an infodump for you marcan
#asahi-gpu · 2022-02-09 01:37
chadmedthe Metal shader examples are just used to get memory dumps of data structures to see how the hardware expects things like textures to be presented to it for processing, since we can assume that Apple's Metal libraries do this the "correct" way for the hardware. that information is then used to teach mesa how to do the same thing for GLES shader programs
#asahi-gpu · 2022-02-09 01:32
chadmedyou should keep in mind that virtually all opengl software for macos is going to be built for and linked against amd64 libraries, so they will not accept your arm64 mesa libGL. alyssa has been using the dEQP conformance tests since you can build them yourself.
#asahi-gpu · 2022-02-09 01:30
chadmedDYLD_INSERT_LIBRARIES=/path/to/your/compiled/libGL.1.dyld then run whatever opengl program you want to profile
#asahi-gpu · 2022-02-09 00:37
NightsOnly[m]like, how do i attempt to use it and have something crash so i can figure out what needs implementing?
#asahi-gpu · 2022-02-09 00:37
NightsOnly[m]hmmm, i managed to get it compiled and installed with ninja install. Although i am somewhat confused on how to get it working?
#asahi-gpu · 2022-02-08 20:09
alyssaThose are the samples I use.
#asahi-gpu · 2022-02-08 20:00
NightsOnly[m]Lastly, this may be a noob question... i saw that apple has a multitude of open source metal coding projects available here: https://developer.apple.com/metal/sample-code/
#asahi-gpu · 2022-02-08 20:00
NightsOnly[m]Because it uses metal directly and is not wrapped with MoltenVK or MoltenGL i assume it would be useless to try to use this code since metal is native to apple software only? I would need to find open source games that use openGL/Vulkan etc?
#asahi-gpu · 2022-02-08 20:00
NightsOnly[m]Also, do you mind sharing the branch you were working on for m1 mac gpu drivers for mesa repo? I am unable to find it, and would like to branch/fork off your code to see if i can get some basic games/metal software compiling.
#asahi-gpu · 2022-02-08 19:49
NightsOnly[m]yes to both?
#asahi-gpu · 2022-02-08 19:47
alyssaYes
#asahi-gpu · 2022-02-08 19:46
NightsOnly[m]Is it as simple as attempting compile/run a game with the RE library and if a method fails then you just have to write the code for it? I have a background in C++, java, and have been a full stack dev for the past 5 years but have been wanting to get into more low level coding.
#asahi-gpu · 2022-02-08 19:42
NightsOnly[m]Hey Alyssa, so i saw your twitch stream. You are working on open source Mesa drivers for m1 gpus? Is this something that once is done will be able to be installed on Asahi linux so you can get graphics working in linux on m1 mac?
#asahi-gpu · 2022-02-08 07:24
phireI guess it makes total sense for gfx-asc to have a direct communication channel for those
#asahi-gpu · 2022-02-08 07:14
chadmedyeah MCC is the memory controller
#asahi-gpu · 2022-02-08 06:46
phireMMC is memory controller?

plus ›