#
…

2022-11-28

01:18sirn has quit [Server closed connection]
01:18sirn has joined #asahi-gpu
01:19TheFirst has quit [Server closed connection]
01:19TheFirst has joined #asahi-gpu
01:19duckworld_ has quit [Server closed connection]
01:22riatre_ has quit [Server closed connection]
01:22riatre has joined #asahi-gpu
01:36Lightsword has quit [Server closed connection]
01:36Lightsword has joined #asahi-gpu
01:37lina has quit [Server closed connection]
01:37lina has joined #asahi-gpu
01:45Dementor has quit [Server closed connection]
01:46Dementor has joined #asahi-gpu
01:48tbodt has quit [Server closed connection]
01:49tbodt has joined #asahi-gpu
01:50emptynine has quit [Server closed connection]
01:51emptynine has joined #asahi-gpu
01:53rcombs has quit [Server closed connection]
01:55ChaosPrincess has quit [Server closed connection]
01:55ChaosPrincess has joined #asahi-gpu
01:55rcombs has joined #asahi-gpu
01:58rappet has quit [Server closed connection]
01:58rappet has joined #asahi-gpu
01:58phire has quit [Server closed connection]
01:58phire has joined #asahi-gpu
01:59chadmed has quit [Server closed connection]
02:00chadmed has joined #asahi-gpu
02:03cyrozap has quit [Server closed connection]
02:04cyrozap has joined #asahi-gpu
02:19argonaut has quit [Server closed connection]
02:20argonaut has joined #asahi-gpu
02:23x56 has quit [Server closed connection]
02:23x56 has joined #asahi-gpu
02:32kilolima has quit [Server closed connection]
02:32kilolima has joined #asahi-gpu
02:36Rayyan has quit [Server closed connection]
02:36Rayyan has joined #asahi-gpu
02:39d4ve has quit [Server closed connection]
02:39d4ve has joined #asahi-gpu
02:56alethkit has quit [Server closed connection]
02:56alethkit has joined #asahi-gpu
03:02ayke has quit [Server closed connection]
03:02ayke has joined #asahi-gpu
03:03alyssa has joined #asahi-gpu
03:03alyssadougall: <disassembly failed>, ooo, fun
03:03coder_kalyan has quit [Server closed connection]
03:03coder_kalyan has joined #asahi-gpu
03:03alyssa5905 0000 103c 8000
03:03alyssaseen with zs_emit + multisampling
03:05alyssafrom context, looks like it must set r1 to the mask of active samples
03:06alyssapretty weird loop getting emitted, calling zs_emit on 8 samples at a time
03:06alyssaindicating compiler support for MSAA 16x?!
03:06alyssathat's the only way I can read this that makes sense
03:07alyssaif I don't have any references to per-sample stuff it doesn't do that silliness
03:07alyssathough it has other silliness. delight
03:08alyssameh let's implement the obvious thing in Mesa and see if anything breaks
03:08manawyrm has quit [Server closed connection]
03:08manawyrm has joined #asahi-gpu
03:12akspecs has quit [Server closed connection]
03:12akspecs has joined #asahi-gpu
03:23alyssa has quit [Quit: Lost terminal]
03:25deflax_ has quit [Server closed connection]
03:25deflax has joined #asahi-gpu
03:28lain has quit [Server closed connection]
03:29lain has joined #asahi-gpu
03:31hays has quit [Server closed connection]
03:31hays has joined #asahi-gpu
03:38jn has quit [Server closed connection]
03:39jn has joined #asahi-gpu
03:43alyssa has joined #asahi-gpu
03:43alyssa Pass (Pass)
03:54aleasto has quit [Server closed connection]
03:54aleasto has joined #asahi-gpu
03:59hxliew has quit [Server closed connection]
04:00hxliew has joined #asahi-gpu
04:05alyssa has quit [Quit: Lost terminal]
04:08alyssa has joined #asahi-gpu
04:08chadmed has quit [Quit: Konversation terminated!]
04:08alyssalina: I'm pretty confused .. I don't see any mechanism for rendering into depth stencil miptrees
04:09alyssaWe just specify the size and the base address for twiddled
04:09alyssathat's fine for power-of-two and for levle 0
04:10alyssabut the hw has no way to know whether it needs to add the padding silliness
04:10alyssafor colour render targets, there's a dedicated "level" field in the PBE descriptor and the width/height are of level 0
04:10alyssafor depth/stencil, Metal is just setting the width/height to that of the rendered level
04:10alyssaand setting the base address
04:10alyssaso how does the hw know to insert padding?
04:12alyssaam I missing something silly here?
04:12alyssais AGX broken?!
04:13chadmed has joined #asahi-gpu
04:13alyssalike, I'm looking at traces from Metal and i can't see how this can possibly be correct
04:17alyssayeah, I can't see how this can possibly work
04:17alyssarendering to 16x16 vs 32x32 (level=1) vs 33x33 (level=1) looks the same
04:20systwi_ has quit [Server closed connection]
04:21systwi has joined #asahi-gpu
04:24ju has quit [Server closed connection]
04:24ju has joined #asahi-gpu
04:25os has quit [Server closed connection]
04:25os has joined #asahi-gpu
04:29Skirmisher has quit [Server closed connection]
04:29Skirmisher has joined #asahi-gpu
04:40alyssaunless twiddling for depth/stencil formats is weirdly different from colour
04:41alyssawhich is... possible but unlikely because that would complicate sampling...
04:44mmarchini____ has quit [Server closed connection]
04:44mmarchini____ has joined #asahi-gpu
04:44Manouchehri has quit [Server closed connection]
04:44Manouchehri has joined #asahi-gpu
04:45alyssaand I have weak evidence against that idea as well
04:48jole_ has quit [Server closed connection]
04:48jole has joined #asahi-gpu
04:52mini has quit [Server closed connection]
04:52mini has joined #asahi-gpu
04:52cwabbott has quit [Server closed connection]
04:52cwabbott has joined #asahi-gpu
04:53blasty_ has quit [Server closed connection]
04:53blasty has joined #asahi-gpu
04:56nyx_o has quit [Server closed connection]
04:56nyx_o has joined #asahi-gpu
04:56paddatrapper_ has quit [Server closed connection]
04:57paddatrapper_ has joined #asahi-gpu
05:00alyssa has quit [Quit: leaving]
05:04ids1024 has quit [Server closed connection]
05:05ids1024 has joined #asahi-gpu
05:14zjstraus has quit [Server closed connection]
05:14zjstraus has joined #asahi-gpu
05:35codingkoopa9 has quit [Server closed connection]
05:35codingkoopa9 has joined #asahi-gpu
06:06grange_c has quit [Server closed connection]
06:07grange_c has joined #asahi-gpu
06:11xcpy0 has quit [Server closed connection]
06:12xcpy0 has joined #asahi-gpu
06:12as400 has quit [Server closed connection]
06:12as400 has joined #asahi-gpu
06:13kode54 has quit [Server closed connection]
06:13kode54 has joined #asahi-gpu
06:13DragoonAethis has quit [Server closed connection]
06:14DragoonAethis has joined #asahi-gpu
06:20yuka has quit [Server closed connection]
06:20yuka has joined #asahi-gpu
06:25tmlind has quit [Server closed connection]
06:25tmlind has joined #asahi-gpu
06:26kloenk has quit [Server closed connection]
06:27kloenk has joined #asahi-gpu
06:32karolherbst has quit [Server closed connection]
06:32karolherbst has joined #asahi-gpu
06:34chadmed_ has joined #asahi-gpu
06:36chadmed_ has quit []
06:41Dcow has quit [Remote host closed the connection]
06:42Dcow has joined #asahi-gpu
06:42SSJ_GZ has joined #asahi-gpu
06:44blazra has quit [Server closed connection]
06:44blazra has joined #asahi-gpu
06:57thevar1able has quit [Server closed connection]
06:58thevar1able has joined #asahi-gpu
06:59amarioguy has quit [Server closed connection]
06:59amarioguy has joined #asahi-gpu
07:03chadmed_ has joined #asahi-gpu
07:04Mrmaxmeier has quit [Server closed connection]
07:05Mrmaxmeier has joined #asahi-gpu
07:06opticron has quit [Server closed connection]
07:06opticron has joined #asahi-gpu
07:10gff_ has quit [Server closed connection]
07:11gff_ has joined #asahi-gpu
07:23sa1 has quit [Server closed connection]
07:23sa1 has joined #asahi-gpu
07:35Dcow_ has joined #asahi-gpu
07:43Dcow has quit [Ping timeout: 480 seconds]
07:43jonmasters_ has quit [Server closed connection]
07:43jonmasters_ has joined #asahi-gpu
07:45jbowen has quit [Server closed connection]
07:45jbowen has joined #asahi-gpu
07:50taowa__ has quit [Server closed connection]
07:51taowa__ has joined #asahi-gpu
08:05Avaflow has quit [Server closed connection]
08:05Avaflow has joined #asahi-gpu
08:23JTL has quit [Server closed connection]
08:24JTL has joined #asahi-gpu
08:30Dcow_ has quit [Remote host closed the connection]
08:31princesszoey has quit [Server closed connection]
08:32princesszoey has joined #asahi-gpu
08:46turo has quit [Server closed connection]
08:46turo has joined #asahi-gpu
08:46Graypup_ has quit [Server closed connection]
08:46Graypup_ has joined #asahi-gpu
08:55MajorBiscuit has joined #asahi-gpu
09:34yrlf has joined #asahi-gpu
10:01chadmed_ has quit [Remote host closed the connection]
10:05chadmed_ has joined #asahi-gpu
10:06MajorBiscuit has quit [Ping timeout: 480 seconds]
10:06kloenk has quit [Remote host closed the connection]
10:06yuka has quit [Remote host closed the connection]
10:07kloenk has joined #asahi-gpu
10:08yuka has joined #asahi-gpu
10:09Dcow has joined #asahi-gpu
10:11Dcow has quit [Remote host closed the connection]
10:12Dcow has joined #asahi-gpu
10:15taowa__ has quit []
11:40chadmed_ has quit [Remote host closed the connection]
12:25chengsun_ has quit [Ping timeout: 480 seconds]
12:34chengsun has joined #asahi-gpu
12:55chengsun has quit [Quit: Quit]
12:55chengsun has joined #asahi-gpu
13:26c10l5 has joined #asahi-gpu
13:27c10l has quit [Ping timeout: 480 seconds]
13:39c10l5 has quit []
13:45chengsun has quit [Read error: Connection reset by peer]
13:46chengsun has joined #asahi-gpu
13:46c10l5 has joined #asahi-gpu
13:51chengsun has quit [Read error: Connection reset by peer]
13:52chengsun has joined #asahi-gpu
13:55c10l5 has quit []
13:55c10l has joined #asahi-gpu
14:00chengsun_ has joined #asahi-gpu
14:01chengsun has quit [Ping timeout: 480 seconds]
14:03chengsun_ has quit []
14:05chengsun has joined #asahi-gpu
14:21chengsun has quit [Quit: Quit]
14:21chengsun has joined #asahi-gpu
14:24tertu has quit [Ping timeout: 480 seconds]
14:24Guest237 has joined #asahi-gpu
15:27chengsun_ has joined #asahi-gpu
15:30chengsun has quit [Ping timeout: 480 seconds]
15:33thevar1able has quit []
15:35thevar1able has joined #asahi-gpu
15:43eiln_ has joined #asahi-gpu
15:59tertu has joined #asahi-gpu
16:13LinuxM1 has joined #asahi-gpu
16:17eiln_Hello! slightly off topic but was pointed to here
16:18eiln_My name is Eileen and my handles use @eiln typically.
16:18eiln_I've made progress with the GPU's younger sister, i.e. Apple Neural Engine / ANE / NPU
16:18eiln_My work is on
16:18eiln_I develop on github but am currently having issues it's a mirror
16:18eiln_TDLR: ane is a low precision (fp16) configurable mac circuit really good for chained/fifo stream number crunching
16:19eiln_I've got the kernel side / work interface / tiling pretty much down, so the only barrier to all those exotic ops are the compiler output ("regfile" that gets dma'd to configuration registers). I do have prototypes for elementwise add/mul/min/max, 2d convolution, and batched matrix multiplications, but it's still largely a mystery.
16:19eiln_Being a non-essential component and without much precedent, I feel pretty lost on what direction to head with development. I would rather asahi leverage the hardware to its own needs, not replicate apple's model (which i find very questionable anyway). Hence I currently have no idea of what a final product would even look like (e.g., support what? does it go under drm?). I'm looking for any form of advice / guidance.
16:19chengsun_ has quit [Read error: Connection reset by peer]
16:20chengsun has joined #asahi-gpu
16:21eiln has joined #asahi-gpu
16:21eiln has quit [Remote host closed the connection]
16:28chengsun has quit [Ping timeout: 480 seconds]
16:30chengsun has joined #asahi-gpu
16:31eiln_figured this introduction from their patents may be helpful:
16:31eiln_"Neural processor circuit 218 is a circuit that performs various machine learning operations based on computation including multiplication , addition , and accumulation . Neural processor circuit 218 is a configurable circuit that performs these operations in a fast and power -efficient manner while relieving CPU 208 of resource - intensive operations associated with neural network operations.
16:31eiln_Neural processor circuit 218 may receive the input data from sensor interface 212 , the image signal processor 206 , persistent storage 228 , system memory 230 or other sources such as network interface 210 or GPU 220"
16:38chengsun has quit [Quit: Quit]
16:38chengsun has joined #asahi-gpu
16:44chengsun_ has joined #asahi-gpu
16:48chengsun has quit [Ping timeout: 480 seconds]
17:01chengsun has joined #asahi-gpu
17:04chengsun_ has quit [Ping timeout: 480 seconds]
17:12marcaneiln_: I'm a bit confused about the ASC though; I know it has a big firmware blob but it doesn't look like it uses the usual mailbox RTKit interface? Does it have some bespoke interface?
17:15marcaneiln_: also I think your "pmgr" tunables are actually fabric tunables, see the analogous https://github.com/AsahiLinux/m1n1/blob/lina/gpu-wip/src/tunables_static.c#L22 from lina's stuff
17:17eiln_ ah hv said pmgr node so it's what i assumed. i've added a patch under tunables_static.c too
17:18eiln_regarding asc, sigh
17:18marcanand your "dart tunables" are DAPF, see dapf.c in m1n1 (this is already implemented)
17:18marcanthey are mostly likely dynamic and depend on the firmware version and RAM config of the device
17:18marcansince they probably map the firmware
17:18svenpmgr often is apple‘s „let’s stuff things that don’t fit anywhere else“
17:19eiln_asc is completely separate from the engine circuitry. the dma they refer to isn't asc-emulated-dma
17:19marcanyou probably just need to call p.dapf_init("/arm-io/dart-ane")
17:20marcaneiln_: that's typical yes, the ASCs sit on the side. but does macOS talk to the engine directly, or to the ASC?
17:20marcanusually everything goes through the ASC for hardware that has an ASC
17:24eiln_asc is only responsible for queue stacking, which i replicate in TaskManager
17:24marcanso you don't really use the asc, just talk to the hardware directly?
17:25eiln_sigh, the ane-asc init process is a 9-step process, and i've been stuck at stage 8
17:25eiln_so i copied the reg diffs to "fill in"
17:25eiln_yes the asc isn't even turned on
17:25eiln_specifically enqueue_tq
17:26eiln_and the 3 reg writes in execute_tq
17:26eiln_are asc duties
17:27eiln_given i have rvbar & the asc init code technically i can write my own fw to do just that
17:28marcanso what does the rest of the 3MB of firmware do? :p
17:28marcan(I'm just trying to understand this)
17:28eiln_props up an entire server with isp
17:28eiln_i'm pretty certain that my asc init is stuck @ stage 8 because isp isn't
17:29eiln_there's a "program" abstraction that's really just BAR (in ane_context.py)
17:29chengsun has quit [Ping timeout: 480 seconds]
17:29marcanoh. isp as in the camera thing?
17:30marcanso isp and ane talk to each other for the ML stuff in the camera processing?
17:30eiln_unless explicitly turned off with boot-args, the first ane init is called by isp
17:31eiln_i believe isp has an ane node?
17:31marcanthat sounds like we eventually need to figure out how to make it work then, unless ISP can be told not to talk to ANE
17:31marcansince we kind of need ISP to work...
17:31eiln_i don't know if isp depends on ane though
17:31marcanwhat happens on devices without ISP?
17:32marcani.e. desktops
17:32eiln_no idea, i only have a t8103
17:32eiln_there's a ane_isp.afpp file somewhere
17:32marcanI mean t8103 is in desktops (mac mini)
17:32marcanisp has function-ane_ep_control = 329:eCtl()
17:32marcanand function-ane_data_param_set = 329:dSet()
17:33marcanand function-ane_data_param_get = 329:dGet()
17:33marcanI guess it brokers through that?
17:33eiln_that looks like segment-ranges
17:33marcanthose are Apple ARM function calls
17:33marcanthey're one way apple connects drivers together
17:34marcanby pointing them at sort of marshalled functions in other device nodes
17:34marcansegment-ranges is just the firmware
17:36chengsun has joined #asahi-gpu
17:37eiln_to be honest I really don't know much about isp
17:37eiln_the main guy behind the ane patents used to do isp
17:37LinuxM1 has quit [Quit: Leaving]
17:37eiln_i also know one of them sets up a ring buffer endpt
17:38eiln_which isn't in the ane mmio range
17:39eiln_and i traced with boot-args
17:39eiln_camEnableAneIsp=0 camEnableAneIspAfpp=0
17:39eiln_for this exact reason
17:39marcansounds like we might need some coordination with the person reversing ISP (who was that again?)
17:40eiln_something millenial
17:40marcanmillenialhacker, yes
17:40svenmillenialhacker
17:40marcanthey usually hang out in #asahi-re, maybe we should move ane talk there, seems like a decent enough place
17:40svenit kinda sounds like ane started as a fancy isp accelerator and then grew much larger :D
17:41marcansince this isn't really GPU other than "probably will end up using the DRM/accel subsystem"
17:41marcansven: yeah lol
17:41eiln_ has quit [Quit: Page closed]
17:48chengsun has quit [Ping timeout: 480 seconds]
18:07gff_ has quit [Ping timeout: 480 seconds]
18:08karolherbst_ has joined #asahi-gpu
18:11karolherbst has quit [Ping timeout: 480 seconds]
18:13le0n has quit [Quit: see you later, alligator]
18:33karolherbst_ is now known as karolherbst
18:35le0n has joined #asahi-gpu
19:28Guest237 has quit [Quit: Guest237]
20:28cr1901 has joined #asahi-gpu
21:59zzywysm_ has joined #asahi-gpu
22:05zzywysm has quit [Ping timeout: 480 seconds]
22:13chengsun has joined #asahi-gpu
22:14alyssa has joined #asahi-gpu
22:14alyssaPass: 10413, Fail: 1653, Crash: 208, Skip: 6034, Timeout: 3, Flake: 5, Duration: 3:51, Remaining: 0
22:14alyssais it possible this number is going up >.>
22:14alyssa(piglit)
22:14alyssai mean the # of passes is up but so is the # of fails
22:14alyssaskip is basically the same
22:15alyssai guess piglit is weird and if you crash early entire tests just disappear
22:29Dcow has quit [Remote host closed the connection]
22:29chengsun_ has joined #asahi-gpu
22:32chengsun has quit [Ping timeout: 480 seconds]
22:34chengsun_ has quit [Quit: Quit]
22:44chengsun has joined #asahi-gpu
22:46Dcow has joined #asahi-gpu
22:54chengsun has quit [Ping timeout: 480 seconds]
22:55Dcow has quit [Ping timeout: 480 seconds]
23:03SSJ_GZ has quit [Ping timeout: 480 seconds]
23:22Dcow has joined #asahi-gpu
23:25alyssa has quit [Quit: leaving]
23:27c10l has quit [Quit: Bye o/]
23:29chengsun has joined #asahi-gpu
23:30Dcow has quit [Ping timeout: 480 seconds]
23:43chengsun has quit [Ping timeout: 480 seconds]
23:44chengsun has joined #asahi-gpu
23:49c10l has joined #asahi-gpu
23:50chengsun_ has joined #asahi-gpu
23:52chengsun has quit [Ping timeout: 480 seconds]
23:56Dcow has joined #asahi-gpu
…