2022-12-27
00:05possiblemeatball has joined #asahi-gpu
00:09possiblemeatball has quit [Remote host closed the connection]
00:11possiblemeatball has joined #asahi-gpu
00:24possiblemeatball has quit [Quit: Leaving]
01:00possiblemeatball has joined #asahi-gpu
01:03amarioguy has quit [Remote host closed the connection]
02:34possiblemeatball has quit [Quit: Leaving]
02:59alyssa has joined #asahi-gpu
02:59alyssalina: took a cue from the "wtf pstates?" discussion and hacked my DTS to use 0x6 as the new base
05:03linaalyssa: 3 is 720MHz and 6 is 1287 MHz, so I would expect 78% faster if it scales with clock
05:04linahowever, 1 (which is the base on laptops) is 396MHz, so if the laptops are stuck there that's quite a bit worse...
08:02SSJ_GZ has joined #asahi-gpu
10:22thevar1able has quit [Remote host closed the connection]
10:23thevar1able has joined #asahi-gpu
10:25thevar1able has quit [Remote host closed the connection]
10:27thevar1able has joined #asahi-gpu
10:56chadmedaiui we cannot overclock this hardware as the pstates are controlled by the platform and we just ask the firmware nicely to switch states
12:01yuyichao_ has joined #asahi-gpu
12:03iaguis has joined #asahi-gpu
12:04yuyichao has quit [Ping timeout: 480 seconds]
12:32karolherbst has quit [Remote host closed the connection]
12:35karolherbst has joined #asahi-gpu
13:35yuyichao_ has quit [Quit: Konversation terminated!]
13:36yuyichao has joined #asahi-gpu
14:04possiblemeatball has joined #asahi-gpu
15:41alyssalina: I would not expect 78% faster for 720 -> 1287, because that's the clock only for actual GPU operation
15:42alyssabut does not affect the latency nor throughput of system memory (which we often stall on)
15:42alyssaand does not affect overhead on the CPU to actually submit work (right now the GPU is idle a ton of the time -- GPU speed ups are then subject to Amdahl's law)
15:56linaalyssa: What I have identified as "utilization" in the metrics does show 100%, but that can't be right with the CPU stalls... so now I wonder what that really measures...
16:02linaAnd indeed glxgears goes to 17-23%, which is what I'd expect for something vsynced that actually lets the GPU power down between frames
16:03linaSo really, what I'm calling the stats channel seems to be quite specifically power stats. It's all pstates, power on/off events, power consumption, temperatures, and the like.
16:05bluetail8alyssa Do you know these laws by heart? Yes, the internet is full of knowledge. But I think its something you learn in education which I was denied for the most part.
16:07linaalyssa: I should just expose these properly as a sysfs file... it'd be nice to at least have an agxtop showing power consumption and idle times and such...
16:08linaFor performance, I really should just hook up the ktrace channel to perf and get you pretty logs
16:09linaThat has events like "TA started", "TA complete", "3D started", "3D complete" but also partial renders, event delivery, and things like that, all timestamped
16:09linaAnd at least some of those actually include the UUID that is plumbed all the way to the UAPI if I remember correctly, so you can even correlate it with what mesa is doing ^^
16:37bluetail8dottedmag Perhaps continue in #asahi-offtopic. Please make the connection. I do not get how A is related to B. Where specifically do I have to look it up? What do I need todo in order to naturally need it? Or do i need to know these things before I can do a specific thing? My math knowledge is very basic for instance, but I need some of it
16:37bluetail8regularly. What do you mean with optimization work? Why would somebody need to remember those laws...
16:42bcrumb has joined #asahi-gpu
16:43bcrumb has quit []
16:55alyssalina: BTW, are you aware of any mechanism that Mesa could use to get the # of primitives generated?
16:56alyssathe fallback would be generating little 1x1 vertex shaders to increase a counter each draw which is probably fine for a niche feature
17:04possiblemeatball has quit [Quit: Leaving]
17:10karolherbstdoes DP-MST work already? And if not, are there patches to try?
17:10karolherbstor well.. at least it doens't work on my M2
17:16karolherbstuhh....
17:17karolherbstso how do external displays work? USB adapters not doing MST?
17:18svenah, MST is specifically two (or more I guess) video streams over display port and the hw can’t do that
17:18karolherbstcorion: I guess...
17:18karolherbstI just have some USB-C hubs here which are doing this over MST
17:18karolherbstbecause... why not
17:19sveni have some WIP patches somewhere that enable alternate mode and jannau probably has a branch somewhere with them integrated into his latest DCP work
17:19karolherbstso I assume things like docking stations are just not properly supported by the hw then?
17:19karolherbstwell.. that's a different question tho
17:20karolherbstnot my use case
17:20karolherbstyeah.. fair, but that's not what I asked about at all 🙃
17:20corionkarolherbst: What do you mean by docking stations? With one usb-c (dp-alt) connected to my monitor, I carry mouse+kbd+monitor back to the computer.
17:21karolherbstthis is the dock I tried to use: https://i-tec.pro/wp-content/uploads/vizu-27-1024x1024.png
17:21karolherbstwith a single display
17:21karolherbstbut that requires DP-MST
17:22karolherbstahh.. sorry
17:22karolherbstfair
17:41cylm_ has joined #asahi-gpu
17:43cylm has quit [Ping timeout: 480 seconds]
18:17iaguis has quit [Quit: Lost terminal]
18:20Dementor has quit [Remote host closed the connection]
18:23Dementor has joined #asahi-gpu
18:46alyssaApple's compiler lowers sample mask writes (including discard_fragment) to emitting a NaN depth, if zs_emit is used anywhere in the program
18:47alyssabut it raises its own questions, like how to mask out stores from discarded threads, and how to terminate a quad after all threads in the quad are no longer needed for helper threads
18:48alyssathere is an infamous fragment shader, I think it owes to GraphicsFuzz, that does something like:
18:49alyssaIf you don't actually terminate the thread when discarding (merely demoting the thread to a helper invocation), the shader will hang the GPU
18:49alyssabut if you actually terminate the thread when discarding -- or you discard a quad when all threads in it are demoted to helper threads -- then the shader will complete successfully
18:50alyssaIt's not clear a priori how one would implement that on AGX given the zs_emit transform they do
19:58possiblemeatball has joined #asahi-gpu
20:59possiblemeatball has quit [Quit: Leaving]
21:01hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:49pthariensflame has joined #asahi-gpu
22:00pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
22:46rowin has joined #asahi-gpu
22:51SSJ_GZ has quit [Ping timeout: 480 seconds]
23:18rowin has quit [Remote host closed the connection]
23:49cyrozap has quit [Quit: Client quit]