ChanServ changed the topic of #asahi-gpu to: Asahi Linux: porting Linux to Apple Silicon macs | GPU / 3D graphics stack black-box RE and development (NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
nyx_o has quit [Quit: WeeChat 3.3]
user982492 has joined #asahi-gpu
yuyichao has joined #asahi-gpu
<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?
<NightsOnly[m]> like, how do i attempt to use it and have something crash so i can figure out what needs implementing?
jbowen has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
<chadmed> DYLD_INSERT_LIBRARIES=/path/to/your/compiled/libGL.1.dyld then run whatever opengl program you want to profile
<chadmed> you 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.
<chadmed> the 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
rowang077[m] has joined #asahi-gpu
jbowen has joined #asahi-gpu
JuniorJPDJ has joined #asahi-gpu
<phire> right, I'm writing up an infodump for you marcan
<phire> you still interested at looking into gpu stuff today?
perigoso[m] has joined #asahi-gpu
The_DarkFire_[m] has joined #asahi-gpu
nyx_o has joined #asahi-gpu
phiologe has joined #asahi-gpu
PhilippvK has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sheepgoose has joined #asahi-gpu
user982492 has joined #asahi-gpu
petermlyon[m] has quit [Server closed connection]
petermlyon[m] has joined #asahi-gpu
davay[m] has joined #asahi-gpu
DanielHuisman[m] has quit [Server closed connection]
DanielHuisman[m] has joined #asahi-gpu
Liam[m] has joined #asahi-gpu
fried_dede[m] has joined #asahi-gpu
HaoYanQi[m] has joined #asahi-gpu
peerp[m] has joined #asahi-gpu
RasmusEneman[m] has joined #asahi-gpu
pulpy_orange2[m] has joined #asahi-gpu
retonlage[m] has joined #asahi-gpu
Synth[m] has joined #asahi-gpu
Rakshit[m] has quit [Server closed connection]
Rakshit[m] has joined #asahi-gpu
YichaoYu[m] has quit [Server closed connection]
YichaoYu[m] has joined #asahi-gpu
fbd222[m] has joined #asahi-gpu
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MajorBiscuit has joined #asahi-gpu
Major_Biscuit has joined #asahi-gpu
MajorBiscuit has quit [Ping timeout: 480 seconds]
<sven> endpoint 0x1 is probably the normal rtkit crashlog
<phire> thanks. Prehaps I should be trying harder to crash it
<sven> just send 0x40 or 0x22 to it and it should crash
<sven> weird that gfx-asc can essentially get access to every page
<phire> yes, it's very privliaged
<phire> oh... thank you crashlog and your very creative endpoint naming scheme of "user01" and "user02"
<phire> RTKit Task List: rtk_ep_work, power, agx_background, agx_recovery, agx_interrupt, agx_power, agx_sampler
<phire> forcing crashes hasn't told me that much
<phire> ep 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
<phire> EP 0x20 doesn't seem to crash no matter what you send it
<phire> well, unless you do something stupid like senting a null pointer on it's init data
<phire> GFX PANIC - Unable to grab init data from host - agx_background(2)
<marcan> phire: 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
<marcan> *via mbox
<phire> yeah, sounds right
<phire> and way more sane than my other theories
<phire> though the DCP ASC looks nothing kike the GFX ASC. I doubt they are related
<marcan> I mean the general idea
<marcan> obviously GFX does not use EPIC nor that bizarro dcpep thing
<marcan> but e.g. the kick stuff is also kinda how syslog works
<phire> yeah, the general idea
<phire> I'm current mapping out this "init data" struct
<phire> if there is an address to a shared memory queue, it should be there
<marcan> I would expect at least a few global queues and then possibly some per-context stuff or similar
<marcan> the latter could be dynamically allocated via global messages
<phire> yeah, 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
<phire> GFX PANIC - Host-mapped FW allocations are disabled, but FW only supports enabled (init_data_addr=0xffffffa0000b0000)! - agx_background(2)
<phire> that's an interesting panic
<marcan> heh
<marcan> it's also possible the GPU allocates the queues btw, and updates the structure or something
<phire> monitoring doesn't show any updates to this structure
<alyssa> phire: Keep in mind that WindowServer renders everything via Metal internally
<alyssa> so unless you're doing all this headless, the "is Metal in use?" piece is questionable
<alyssa> (Maybe you *are* doing it headless, though?)
<phire> what I mean is that I've only seen in while running the metal spinning cube example, not during login or on the desktop
<alyssa> ok.. my point is that login and the desktop are both using the GPU heavily
<alyssa> (and that there will be kicks and work submitted from those too)
<phire> yes... I agree it is odd that only that example would cause them
<alyssa> phire: It might be worth it to run a metal compute kernel test over SSH with no display connected (lid closed for the laptop, I guess)
<alyssa> signal:noise ratio might be better for finding the kick
<phire> hmm, lid closed might work
<phire> well... m1n1 crashes if I boot when the lid closed
<phire> did stop most of the kicks. I think it still drew the white apple logo
<marcan> phire: that's because it goes into suspend
<marcan> you need to disable that
* alyssa supposes this part would be easier on a mini
<phire> in macos settings?
<marcan> yes, I think that should work
<marcan> you could also just turn off the screen
<marcan> I think setting the brightness to 0 should stop display updates, but it shouldn't suspend
<phire> setting the "prevent sleep when display off" option didn't stop it from sleeping
<phire> and setting zero brightness doesn't prevent rendering
<phire> this apparently works: ssh in, then close the lind
<phire> s/lind/lid/
<alyssa> funny
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-gpu
<phire> Alright, I've found a set of circular buffers
<alyssa> :D
Andre[m]1 has joined #asahi-gpu
Jamie[m]1 has joined #asahi-gpu
Hinata[m] has joined #asahi-gpu
mort_8 is now known as mort_
spokv[m] has joined #asahi-gpu
blassphemy[m] has quit [Server closed connection]
blassphemy[m] has joined #asahi-gpu
rusty-nail[m] has joined #asahi-gpu
NicolasOury[m] has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
jbowen has joined #asahi-gpu
Major_Biscuit has quit [Ping timeout: 480 seconds]
jbowen_ has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
Genbuchan[m] has joined #asahi-gpu
Nspace has joined #asahi-gpu
jbowen_ has quit [Ping timeout: 480 seconds]
anparra[m] has quit [Server closed connection]
anparra[m] has joined #asahi-gpu
jbowen has joined #asahi-gpu
marcan has quit [Server closed connection]
marcan has joined #asahi-gpu
lonjil has joined #asahi-gpu
zelig_[m] has quit [Server closed connection]
zelig_[m] has joined #asahi-gpu
user982492 has joined #asahi-gpu
jbowen has quit [Quit: leaving]
feeleep[m] has quit [Server closed connection]
feeleep[m] has joined #asahi-gpu
minecrell has quit [Server closed connection]
minecrell has joined #asahi-gpu
DmitrySboychakov[m] has quit [Server closed connection]
DmitrySboychakov[m] has joined #asahi-gpu
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi-gpu
jbowen has joined #asahi-gpu
LilleCarl[m] has quit [Server closed connection]
LilleCarl[m] has joined #asahi-gpu
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-gpu
grange_c has joined #asahi-gpu
pg12 has quit [Server closed connection]
pg12 has joined #asahi-gpu
TheLink has quit [Server closed connection]
TheLink has joined #asahi-gpu
aleasto has quit [Server closed connection]
aleasto has joined #asahi-gpu
BenPetterborg[m] has quit [Server closed connection]
BenPetterborg[m] has joined #asahi-gpu
vimsos[m] has quit [Server closed connection]
vimsos[m] has joined #asahi-gpu
FireFox317 has quit [Server closed connection]
FireFox317 has joined #asahi-gpu
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
M1bn3mar[m] has quit [Server closed connection]
M1bn3mar[m] has joined #asahi-gpu
user982492 has joined #asahi-gpu
eragon has quit [Server closed connection]
eragon has joined #asahi-gpu
commandoline_ has quit [Quit: Bye!]
commandoline has joined #asahi-gpu