01:18
sirn has quit [Server closed connection]
01:18
sirn has joined #asahi-gpu
01:19
TheFirst has quit [Server closed connection]
01:19
TheFirst has joined #asahi-gpu
01:19
duckworld_ has quit [Server closed connection]
01:22
riatre_ has quit [Server closed connection]
01:22
riatre has joined #asahi-gpu
01:36
Lightsword has quit [Server closed connection]
01:36
Lightsword has joined #asahi-gpu
01:37
lina has quit [Server closed connection]
01:37
lina has joined #asahi-gpu
01:45
Dementor has quit [Server closed connection]
01:46
Dementor has joined #asahi-gpu
01:48
tbodt has quit [Server closed connection]
01:49
tbodt has joined #asahi-gpu
01:50
emptynine has quit [Server closed connection]
01:51
emptynine has joined #asahi-gpu
01:53
rcombs has quit [Server closed connection]
01:55
ChaosPrincess has quit [Server closed connection]
01:55
ChaosPrincess has joined #asahi-gpu
01:55
rcombs has joined #asahi-gpu
01:58
rappet has quit [Server closed connection]
01:58
rappet has joined #asahi-gpu
01:58
phire has quit [Server closed connection]
01:58
phire has joined #asahi-gpu
01:59
chadmed has quit [Server closed connection]
02:00
chadmed has joined #asahi-gpu
02:03
cyrozap has quit [Server closed connection]
02:04
cyrozap has joined #asahi-gpu
02:19
argonaut has quit [Server closed connection]
02:20
argonaut has joined #asahi-gpu
02:23
x56 has quit [Server closed connection]
02:23
x56 has joined #asahi-gpu
02:32
kilolima has quit [Server closed connection]
02:32
kilolima has joined #asahi-gpu
02:36
Rayyan has quit [Server closed connection]
02:36
Rayyan has joined #asahi-gpu
02:39
d4ve has quit [Server closed connection]
02:39
d4ve has joined #asahi-gpu
02:56
alethkit has quit [Server closed connection]
02:56
alethkit has joined #asahi-gpu
03:02
ayke has quit [Server closed connection]
03:02
ayke has joined #asahi-gpu
03:03
alyssa has joined #asahi-gpu
03:03
<
alyssa >
dougall: <disassembly failed>, ooo, fun
03:03
coder_kalyan has quit [Server closed connection]
03:03
coder_kalyan has joined #asahi-gpu
03:03
<
alyssa >
5905 0000 103c 8000
03:03
<
alyssa >
seen with zs_emit + multisampling
03:05
<
alyssa >
from context, looks like it must set r1 to the mask of active samples
03:06
<
alyssa >
pretty weird loop getting emitted, calling zs_emit on 8 samples at a time
03:06
<
alyssa >
indicating compiler support for MSAA 16x?!
03:06
<
alyssa >
that's the only way I can read this that makes sense
03:07
<
alyssa >
if I don't have any references to per-sample stuff it doesn't do that silliness
03:07
<
alyssa >
though it has other silliness. delight
03:08
<
alyssa >
meh let's implement the obvious thing in Mesa and see if anything breaks
03:08
manawyrm has quit [Server closed connection]
03:08
manawyrm has joined #asahi-gpu
03:12
akspecs has quit [Server closed connection]
03:12
akspecs has joined #asahi-gpu
03:23
alyssa has quit [Quit: Lost terminal]
03:25
deflax_ has quit [Server closed connection]
03:25
deflax has joined #asahi-gpu
03:28
lain has quit [Server closed connection]
03:29
lain has joined #asahi-gpu
03:31
hays has quit [Server closed connection]
03:31
hays has joined #asahi-gpu
03:38
jn has quit [Server closed connection]
03:39
jn has joined #asahi-gpu
03:43
alyssa has joined #asahi-gpu
03:43
<
alyssa >
Pass (Pass)
03:54
aleasto has quit [Server closed connection]
03:54
aleasto has joined #asahi-gpu
03:59
hxliew has quit [Server closed connection]
04:00
hxliew has joined #asahi-gpu
04:05
alyssa has quit [Quit: Lost terminal]
04:08
alyssa has joined #asahi-gpu
04:08
chadmed has quit [Quit: Konversation terminated!]
04:08
<
alyssa >
lina: I'm pretty confused .. I don't see any mechanism for rendering into depth stencil miptrees
04:09
<
alyssa >
We just specify the size and the base address for twiddled
04:09
<
alyssa >
that's fine for power-of-two and for levle 0
04:10
<
alyssa >
but the hw has no way to know whether it needs to add the padding silliness
04:10
<
alyssa >
for colour render targets, there's a dedicated "level" field in the PBE descriptor and the width/height are of level 0
04:10
<
alyssa >
for depth/stencil, Metal is just setting the width/height to that of the rendered level
04:10
<
alyssa >
and setting the base address
04:10
<
alyssa >
so how does the hw know to insert padding?
04:12
<
alyssa >
am I missing something silly here?
04:12
<
alyssa >
is AGX broken?!
04:13
chadmed has joined #asahi-gpu
04:13
<
alyssa >
like, I'm looking at traces from Metal and i can't see how this can possibly be correct
04:17
<
alyssa >
yeah, I can't see how this can possibly work
04:17
<
alyssa >
rendering to 16x16 vs 32x32 (level=1) vs 33x33 (level=1) looks the same
04:20
systwi_ has quit [Server closed connection]
04:21
systwi has joined #asahi-gpu
04:24
ju has quit [Server closed connection]
04:24
ju has joined #asahi-gpu
04:25
os has quit [Server closed connection]
04:25
os has joined #asahi-gpu
04:29
Skirmisher has quit [Server closed connection]
04:29
Skirmisher has joined #asahi-gpu
04:40
<
alyssa >
unless twiddling for depth/stencil formats is weirdly different from colour
04:41
<
alyssa >
which is... possible but unlikely because that would complicate sampling...
04:44
mmarchini____ has quit [Server closed connection]
04:44
mmarchini____ has joined #asahi-gpu
04:44
Manouchehri has quit [Server closed connection]
04:44
Manouchehri has joined #asahi-gpu
04:45
<
alyssa >
and I have weak evidence against that idea as well
04:48
jole_ has quit [Server closed connection]
04:48
jole has joined #asahi-gpu
04:52
mini has quit [Server closed connection]
04:52
mini has joined #asahi-gpu
04:52
cwabbott has quit [Server closed connection]
04:52
cwabbott has joined #asahi-gpu
04:53
blasty_ has quit [Server closed connection]
04:53
blasty has joined #asahi-gpu
04:56
nyx_o has quit [Server closed connection]
04:56
nyx_o has joined #asahi-gpu
04:56
paddatrapper_ has quit [Server closed connection]
04:57
paddatrapper_ has joined #asahi-gpu
05:00
alyssa has quit [Quit: leaving]
05:04
ids1024 has quit [Server closed connection]
05:05
ids1024 has joined #asahi-gpu
05:14
zjstraus has quit [Server closed connection]
05:14
zjstraus has joined #asahi-gpu
05:35
codingkoopa9 has quit [Server closed connection]
05:35
codingkoopa9 has joined #asahi-gpu
06:06
grange_c has quit [Server closed connection]
06:07
grange_c has joined #asahi-gpu
06:11
xcpy0 has quit [Server closed connection]
06:12
xcpy0 has joined #asahi-gpu
06:12
as400 has quit [Server closed connection]
06:12
as400 has joined #asahi-gpu
06:13
kode54 has quit [Server closed connection]
06:13
kode54 has joined #asahi-gpu
06:13
DragoonAethis has quit [Server closed connection]
06:14
DragoonAethis has joined #asahi-gpu
06:20
yuka has quit [Server closed connection]
06:20
yuka has joined #asahi-gpu
06:25
tmlind has quit [Server closed connection]
06:25
tmlind has joined #asahi-gpu
06:26
kloenk has quit [Server closed connection]
06:27
kloenk has joined #asahi-gpu
06:32
karolherbst has quit [Server closed connection]
06:32
karolherbst has joined #asahi-gpu
06:34
chadmed_ has joined #asahi-gpu
06:36
chadmed_ has quit []
06:41
Dcow has quit [Remote host closed the connection]
06:42
Dcow has joined #asahi-gpu
06:42
SSJ_GZ has joined #asahi-gpu
06:44
blazra has quit [Server closed connection]
06:44
blazra has joined #asahi-gpu
06:57
thevar1able has quit [Server closed connection]
06:58
thevar1able has joined #asahi-gpu
06:59
amarioguy has quit [Server closed connection]
06:59
amarioguy has joined #asahi-gpu
07:03
chadmed_ has joined #asahi-gpu
07:04
Mrmaxmeier has quit [Server closed connection]
07:05
Mrmaxmeier has joined #asahi-gpu
07:06
opticron has quit [Server closed connection]
07:06
opticron has joined #asahi-gpu
07:10
gff_ has quit [Server closed connection]
07:11
gff_ has joined #asahi-gpu
07:23
sa1 has quit [Server closed connection]
07:23
sa1 has joined #asahi-gpu
07:35
Dcow_ has joined #asahi-gpu
07:43
Dcow has quit [Ping timeout: 480 seconds]
07:43
jonmasters_ has quit [Server closed connection]
07:43
jonmasters_ has joined #asahi-gpu
07:45
jbowen has quit [Server closed connection]
07:45
jbowen has joined #asahi-gpu
07:50
taowa__ has quit [Server closed connection]
07:51
taowa__ has joined #asahi-gpu
08:05
Avaflow has quit [Server closed connection]
08:05
Avaflow has joined #asahi-gpu
08:23
JTL has quit [Server closed connection]
08:24
JTL has joined #asahi-gpu
08:30
Dcow_ has quit [Remote host closed the connection]
08:31
princesszoey has quit [Server closed connection]
08:32
princesszoey has joined #asahi-gpu
08:46
turo has quit [Server closed connection]
08:46
turo has joined #asahi-gpu
08:46
Graypup_ has quit [Server closed connection]
08:46
Graypup_ has joined #asahi-gpu
08:55
MajorBiscuit has joined #asahi-gpu
09:34
yrlf has joined #asahi-gpu
10:01
chadmed_ has quit [Remote host closed the connection]
10:05
chadmed_ has joined #asahi-gpu
10:06
MajorBiscuit has quit [Ping timeout: 480 seconds]
10:06
kloenk has quit [Remote host closed the connection]
10:06
yuka has quit [Remote host closed the connection]
10:07
kloenk has joined #asahi-gpu
10:08
yuka has joined #asahi-gpu
10:09
Dcow has joined #asahi-gpu
10:11
Dcow has quit [Remote host closed the connection]
10:12
Dcow has joined #asahi-gpu
10:15
taowa__ has quit []
11:40
chadmed_ has quit [Remote host closed the connection]
12:25
chengsun_ has quit [Ping timeout: 480 seconds]
12:34
chengsun has joined #asahi-gpu
12:55
chengsun has quit [Quit: Quit]
12:55
chengsun has joined #asahi-gpu
13:26
c10l5 has joined #asahi-gpu
13:27
c10l has quit [Ping timeout: 480 seconds]
13:45
chengsun has quit [Read error: Connection reset by peer]
13:46
chengsun has joined #asahi-gpu
13:46
c10l5 has joined #asahi-gpu
13:51
chengsun has quit [Read error: Connection reset by peer]
13:52
chengsun has joined #asahi-gpu
13:55
c10l has joined #asahi-gpu
14:00
chengsun_ has joined #asahi-gpu
14:01
chengsun has quit [Ping timeout: 480 seconds]
14:03
chengsun_ has quit []
14:05
chengsun has joined #asahi-gpu
14:21
chengsun has quit [Quit: Quit]
14:21
chengsun has joined #asahi-gpu
14:24
tertu has quit [Ping timeout: 480 seconds]
14:24
Guest237 has joined #asahi-gpu
15:27
chengsun_ has joined #asahi-gpu
15:30
chengsun has quit [Ping timeout: 480 seconds]
15:33
thevar1able has quit []
15:35
thevar1able has joined #asahi-gpu
15:43
eiln_ has joined #asahi-gpu
15:59
tertu has joined #asahi-gpu
16:13
LinuxM1 has joined #asahi-gpu
16:17
<
eiln_ >
Hello! slightly off topic but was pointed to here
16:18
<
eiln_ >
My name is Eileen and my handles use @eiln typically.
16:18
<
eiln_ >
I've made progress with the GPU's younger sister, i.e. Apple Neural Engine / ANE / NPU
16:18
<
eiln_ >
My work is on
16:18
<
eiln_ >
I develop on github but am currently having issues it's a mirror
16:18
<
eiln_ >
TDLR: ane is a low precision (fp16) configurable mac circuit really good for chained/fifo stream number crunching
16:19
<
eiln_ >
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:19
<
eiln_ >
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:19
chengsun_ has quit [Read error: Connection reset by peer]
16:20
chengsun has joined #asahi-gpu
16:21
eiln has joined #asahi-gpu
16:21
eiln has quit [Remote host closed the connection]
16:28
chengsun has quit [Ping timeout: 480 seconds]
16:30
chengsun has joined #asahi-gpu
16:31
<
eiln_ >
figured this introduction from their patents may be helpful:
16:31
<
eiln_ >
"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:31
<
eiln_ >
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:38
chengsun has quit [Quit: Quit]
16:38
chengsun has joined #asahi-gpu
16:44
chengsun_ has joined #asahi-gpu
16:48
chengsun has quit [Ping timeout: 480 seconds]
17:01
chengsun has joined #asahi-gpu
17:04
chengsun_ has quit [Ping timeout: 480 seconds]
17:12
<
marcan >
eiln_: 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:17
<
eiln_ >
ah hv said pmgr node so it's what i assumed. i've added a patch under tunables_static.c too
17:18
<
eiln_ >
regarding asc, sigh
17:18
<
marcan >
and your "dart tunables" are DAPF, see dapf.c in m1n1 (this is already implemented)
17:18
<
marcan >
they are mostly likely dynamic and depend on the firmware version and RAM config of the device
17:18
<
marcan >
since they probably map the firmware
17:18
<
sven >
pmgr often is apple‘s „let’s stuff things that don’t fit anywhere else“
17:19
<
eiln_ >
asc is completely separate from the engine circuitry. the dma they refer to isn't asc-emulated-dma
17:19
<
marcan >
you probably just need to call p.dapf_init("/arm-io/dart-ane")
17:20
<
marcan >
eiln_: that's typical yes, the ASCs sit on the side. but does macOS talk to the engine directly, or to the ASC?
17:20
<
marcan >
usually everything goes through the ASC for hardware that has an ASC
17:24
<
eiln_ >
asc is only responsible for queue stacking, which i replicate in TaskManager
17:24
<
marcan >
so you don't really use the asc, just talk to the hardware directly?
17:25
<
eiln_ >
sigh, the ane-asc init process is a 9-step process, and i've been stuck at stage 8
17:25
<
eiln_ >
so i copied the reg diffs to "fill in"
17:25
<
eiln_ >
yes the asc isn't even turned on
17:25
<
eiln_ >
specifically enqueue_tq
17:26
<
eiln_ >
and the 3 reg writes in execute_tq
17:26
<
eiln_ >
are asc duties
17:27
<
eiln_ >
given i have rvbar & the asc init code technically i can write my own fw to do just that
17:28
<
marcan >
so what does the rest of the 3MB of firmware do? :p
17:28
<
marcan >
(I'm just trying to understand this)
17:28
<
eiln_ >
props up an entire server with isp
17:28
<
eiln_ >
i'm pretty certain that my asc init is stuck @ stage 8 because isp isn't
17:29
<
eiln_ >
there's a "program" abstraction that's really just BAR (in ane_context.py)
17:29
chengsun has quit [Ping timeout: 480 seconds]
17:29
<
marcan >
oh. isp as in the camera thing?
17:30
<
marcan >
so isp and ane talk to each other for the ML stuff in the camera processing?
17:30
<
eiln_ >
unless explicitly turned off with boot-args, the first ane init is called by isp
17:31
<
eiln_ >
i believe isp has an ane node?
17:31
<
marcan >
that 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:31
<
marcan >
since we kind of need ISP to work...
17:31
<
eiln_ >
i don't know if isp depends on ane though
17:31
<
marcan >
what happens on devices without ISP?
17:32
<
marcan >
i.e. desktops
17:32
<
eiln_ >
no idea, i only have a t8103
17:32
<
eiln_ >
there's a ane_isp.afpp file somewhere
17:32
<
marcan >
I mean t8103 is in desktops (mac mini)
17:32
<
marcan >
isp has function-ane_ep_control = 329:eCtl()
17:32
<
marcan >
and function-ane_data_param_set = 329:dSet()
17:33
<
marcan >
and function-ane_data_param_get = 329:dGet()
17:33
<
marcan >
I guess it brokers through that?
17:33
<
eiln_ >
that looks like segment-ranges
17:33
<
marcan >
those are Apple ARM function calls
17:33
<
marcan >
they're one way apple connects drivers together
17:34
<
marcan >
by pointing them at sort of marshalled functions in other device nodes
17:34
<
marcan >
segment-ranges is just the firmware
17:36
chengsun has joined #asahi-gpu
17:37
<
eiln_ >
to be honest I really don't know much about isp
17:37
<
eiln_ >
the main guy behind the ane patents used to do isp
17:37
LinuxM1 has quit [Quit: Leaving]
17:37
<
eiln_ >
i also know one of them sets up a ring buffer endpt
17:38
<
eiln_ >
which isn't in the ane mmio range
17:39
<
eiln_ >
and i traced with boot-args
17:39
<
eiln_ >
camEnableAneIsp=0 camEnableAneIspAfpp=0
17:39
<
eiln_ >
for this exact reason
17:39
<
marcan >
sounds like we might need some coordination with the person reversing ISP (who was that again?)
17:40
<
eiln_ >
something millenial
17:40
<
marcan >
millenialhacker, yes
17:40
<
sven >
millenialhacker
17:40
<
marcan >
they usually hang out in #asahi-re, maybe we should move ane talk there, seems like a decent enough place
17:40
<
sven >
it kinda sounds like ane started as a fancy isp accelerator and then grew much larger :D
17:41
<
marcan >
since this isn't really GPU other than "probably will end up using the DRM/accel subsystem"
17:41
<
marcan >
sven: yeah lol
17:41
eiln_ has quit [Quit: Page closed]
17:48
chengsun has quit [Ping timeout: 480 seconds]
18:07
gff_ has quit [Ping timeout: 480 seconds]
18:08
karolherbst_ has joined #asahi-gpu
18:11
karolherbst has quit [Ping timeout: 480 seconds]
18:13
le0n has quit [Quit: see you later, alligator]
18:33
karolherbst_ is now known as karolherbst
18:35
le0n has joined #asahi-gpu
19:28
Guest237 has quit [Quit: Guest237]
20:28
cr1901 has joined #asahi-gpu
21:59
zzywysm_ has joined #asahi-gpu
22:05
zzywysm has quit [Ping timeout: 480 seconds]
22:13
chengsun has joined #asahi-gpu
22:14
alyssa has joined #asahi-gpu
22:14
<
alyssa >
Pass: 10413, Fail: 1653, Crash: 208, Skip: 6034, Timeout: 3, Flake: 5, Duration: 3:51, Remaining: 0
22:14
<
alyssa >
is it possible this number is going up >.>
22:14
<
alyssa >
i mean the # of passes is up but so is the # of fails
22:14
<
alyssa >
skip is basically the same
22:15
<
alyssa >
i guess piglit is weird and if you crash early entire tests just disappear
22:29
Dcow has quit [Remote host closed the connection]
22:29
chengsun_ has joined #asahi-gpu
22:32
chengsun has quit [Ping timeout: 480 seconds]
22:34
chengsun_ has quit [Quit: Quit]
22:44
chengsun has joined #asahi-gpu
22:46
Dcow has joined #asahi-gpu
22:54
chengsun has quit [Ping timeout: 480 seconds]
22:55
Dcow has quit [Ping timeout: 480 seconds]
23:03
SSJ_GZ has quit [Ping timeout: 480 seconds]
23:22
Dcow has joined #asahi-gpu
23:25
alyssa has quit [Quit: leaving]
23:27
c10l has quit [Quit: Bye o/]
23:29
chengsun has joined #asahi-gpu
23:30
Dcow has quit [Ping timeout: 480 seconds]
23:43
chengsun has quit [Ping timeout: 480 seconds]
23:44
chengsun has joined #asahi-gpu
23:49
c10l has joined #asahi-gpu
23:50
chengsun_ has joined #asahi-gpu
23:52
chengsun has quit [Ping timeout: 480 seconds]
23:56
Dcow has joined #asahi-gpu