2025-09-05
00:05zumi_ has joined #asahi-dev
00:10zumi has quit [Ping timeout: 480 seconds]
00:10zumi_ is now known as zumi
00:15hdbngr has joined #asahi-dev
00:24hdbngr has quit [Ping timeout: 480 seconds]
00:27jnn has joined #asahi-dev
00:28Calandracas_ has joined #asahi-dev
00:31jn has quit [Ping timeout: 480 seconds]
00:34Calandracas has quit [Ping timeout: 480 seconds]
00:38jnn is now known as jn
00:44lockheed_marten has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:15hdbngr has joined #asahi-dev
01:24hdbngr has quit [Ping timeout: 480 seconds]
01:51pb17 has quit [Ping timeout: 480 seconds]
02:05pb17 has joined #asahi-dev
02:13hexdump02 has joined #asahi-dev
02:18prike1 has joined #asahi-dev
02:24prike has quit [Ping timeout: 480 seconds]
02:24prike1 is now known as prike
02:36tobhe has joined #asahi-dev
02:39cylm has joined #asahi-dev
02:43tobhe_ has quit [Ping timeout: 480 seconds]
02:45creddy has joined #asahi-dev
03:02skipwich has quit [Remote host closed the connection]
03:02skipwich has joined #asahi-dev
03:10hdbngr has joined #asahi-dev
03:19hdbngr has quit [Ping timeout: 480 seconds]
03:19hdbngr has joined #asahi-dev
03:28hdbngr has quit [Ping timeout: 480 seconds]
03:51hdbngr has joined #asahi-dev
03:57nora_ has joined #asahi-dev
03:59nora has quit [Ping timeout: 480 seconds]
04:00hdbngr has quit [Ping timeout: 480 seconds]
04:40cyrozap_ has quit []
04:43cyrozap has joined #asahi-dev
05:00hdbngr has joined #asahi-dev
05:15hdbngr has quit [Ping timeout: 480 seconds]
05:20hdbngr has joined #asahi-dev
05:29hdbngr has quit [Ping timeout: 480 seconds]
06:06zumi_ has joined #asahi-dev
06:11zumi has quit [Ping timeout: 480 seconds]
06:11zumi_ is now known as zumi
06:21hdbngr has joined #asahi-dev
06:29hightower2 has joined #asahi-dev
06:30hdbngr has quit [Ping timeout: 480 seconds]
06:35hightower3 has quit [Ping timeout: 480 seconds]
06:52hdbngr has joined #asahi-dev
07:01hdbngr has quit [Ping timeout: 480 seconds]
07:22hdbngr has joined #asahi-dev
07:34hdbngr has quit [Ping timeout: 480 seconds]
08:06hdbngr has joined #asahi-dev
08:09nela4 has joined #asahi-dev
08:10cylm has quit [Ping timeout: 480 seconds]
08:23hdbngr has quit [Remote host closed the connection]
08:23hdbngr has joined #asahi-dev
08:29liliboxy has joined #asahi-dev
08:33hdbngr has quit [Ping timeout: 480 seconds]
08:51hdbngr has joined #asahi-dev
09:00hdbngr has quit [Ping timeout: 480 seconds]
09:12nela4 has quit [Quit: bye!]
09:13nela4 has joined #asahi-dev
09:24hdbngr has joined #asahi-dev
09:33hdbngr has quit [Ping timeout: 480 seconds]
09:51Stary has quit [Quit: ZNC - http://znc.in]
09:55Stary has joined #asahi-dev
10:11pb17 has quit [Ping timeout: 480 seconds]
10:17pb17 has joined #asahi-dev
10:25hdbngr has joined #asahi-dev
10:34hdbngr has quit [Ping timeout: 480 seconds]
11:00hdbngr has joined #asahi-dev
11:08nela40 has joined #asahi-dev
11:14nela4 has quit [Ping timeout: 480 seconds]
11:14nela40 is now known as nela4
11:25hdbngr has quit [Ping timeout: 480 seconds]
11:26hdbngr has joined #asahi-dev
11:35hdbngr has quit [Ping timeout: 480 seconds]
11:39pounce has quit [Ping timeout: 480 seconds]
12:04hdbngr has joined #asahi-dev
12:04zumi_ has joined #asahi-dev
12:08nela40 has joined #asahi-dev
12:09zumi has quit [Ping timeout: 480 seconds]
12:09zumi_ is now known as zumi
12:13hdbngr has quit [Ping timeout: 480 seconds]
12:14nela4 has quit [Ping timeout: 480 seconds]
12:14nela40 is now known as nela4
12:27hdbngr has joined #asahi-dev
12:32hdbngr has quit [Remote host closed the connection]
12:32hdbngr has joined #asahi-dev
12:36john-cabaj has joined #asahi-dev
12:43hdbngr has quit [Ping timeout: 480 seconds]
12:50pounce has joined #asahi-dev
13:00hdbngr has joined #asahi-dev
13:08hdbngr has quit [Ping timeout: 480 seconds]
13:08hdbngr has joined #asahi-dev
13:17hdbngr has quit [Ping timeout: 480 seconds]
13:28hdbngr has joined #asahi-dev
13:28alexaltea has quit [Remote host closed the connection]
13:28alexaltea has joined #asahi-dev
13:37hdbngr has quit [Ping timeout: 480 seconds]
13:48liliboxy has quit [Quit: leaving]
13:49Calandracas_ has quit [Ping timeout: 480 seconds]
13:59alexaltea@sven i'm trying to get m2 (t8112) support on eiln's ane drivers. right now the dart code is a bit messy (hardcoded stream select/cmd/invalidate offsets for m1)
13:59alexalteai was wondering if we have any other drivers making use of the 0x4000-sized dart regs, just to see clean examples that I could follow to avoid code duplication
14:03hdbngr has joined #asahi-dev
14:07alexaltea@jannau: apologies, here's the code: https://github.com/eiln/ane/blob/main/ane/src/ane_drv.c#L41-L54
14:09alexaltea.select, .command, .invalidate are hardcoded with offsets for M1 darts, adding M2 dart support will require significant refactoring since command submission is also quite different: https://gitlab.com/fedora-asahi/kernel-asahi/-/blob/fedora-asahi-6.16/drivers/iommu/apple-dart.c#L535-547
14:10lockheed_marten has joined #asahi-dev
14:11alexalteathe question is: would you recommend copy-pasting code from `/drivers/iommu/apple-dart.c` into the ANE drivers? And if not, is there any better way to dealing with different dart models when writing a driver?
14:17chaos_princessi might be wrong, but, why is it touching darts directly, that is not how you are supposed to write drivers
14:18alexalteayep, that's the better question. I have honestly no idea. I've emailed eiln about that, since I'd really like to get ane into an upstreamable state
14:18chaos_princessane is very difficult imo, there is no userspace for it
14:19chaos_princessmaybe reach out to tomeu vizoso about how to approach the whole matmul accelerators space correctly
14:22alexalteayes, I was planning to work on ane userspace after having a working driver that doesn't kpanic :D
14:31jannauin first approximation it shouldn't access dart directly but use the dma api and gem-shmem helpers
14:32jannauhttps://github.com/AsahiLinux/linux/blob/asahi/drivers/accel/ivpu/ivpu_gem.c could be a good reference
14:34cylm has joined #asahi-dev
14:36alexalteaalso, it seems it uses actually dma/gem for dart0, most of the direct accesses are for dart1 and dart2
14:36chaos_princessright, that
14:37chaos_princessso, some devices like ane and isp have "linked darts" where you need all darts set to the same thing
14:37chaos_princessand isp/ane were originally made, we didn't have support for dealing with it all sanely
14:37chaos_princessnow i _think_, you just add all 3 darts into the device tree and it does the right thing
14:38chaos_princessbasically, copy what isp already does :P
14:39alexalteaI had no idea about the linked darts, that helps. I'll try to replicate the isp code, thanks again
14:40chaos_princessonly replicate dealing with darts, the rest of the isp's iommu code - you probably shouldn't
14:41chaos_princessyes, if i remember correctly, you just add all three and the iommu code will automatically replicate everything
14:43jannaujust add "iommus = <&ane_dart_0 0>, <&ane_dart_1 0>, <&ane_dart_2 0>;" to the device tree and defien those free dart instances
15:31Calandracas has joined #asahi-dev
16:20svenyeah, this has been supported since dart was upstream specifically because usb needs this as well
16:22bgb_ has joined #asahi-dev
16:22bgb has quit [Read error: Connection reset by peer]
16:26bgb has joined #asahi-dev
16:26bgb_ has quit [Read error: Connection reset by peer]
16:30bgb_ has joined #asahi-dev
16:30bgb has quit [Read error: Connection reset by peer]
16:34bgb has joined #asahi-dev
16:34bgb_ has quit [Read error: Connection reset by peer]
16:41hdbngr has quit [Ping timeout: 480 seconds]
16:45hdbngr has joined #asahi-dev
16:50fugi has quit [Quit: bye]
16:50fugi has joined #asahi-dev
16:54hdbngr has quit [Ping timeout: 480 seconds]
17:01hdbngr has joined #asahi-dev
17:07skipwich has quit [Ping timeout: 480 seconds]
17:18skipwich has joined #asahi-dev
17:36hdbngr has quit [Ping timeout: 480 seconds]
17:37hdbngr has joined #asahi-dev
18:04zumi_ has joined #asahi-dev
18:08zumi has quit [Ping timeout: 480 seconds]
18:08zumi_ is now known as zumi
18:48creddy has quit [Ping timeout: 480 seconds]
19:10cylm has quit [Ping timeout: 480 seconds]
19:53bgb has quit [Remote host closed the connection]
19:53bgb has joined #asahi-dev
20:26hdbngr has quit [Ping timeout: 480 seconds]
20:34hdbngr has joined #asahi-dev
20:42hdbngr has quit [Ping timeout: 480 seconds]
20:42hdbngr has joined #asahi-dev
20:51hdbngr has quit [Ping timeout: 480 seconds]
20:59hdbngr has joined #asahi-dev
21:08hdbngr has quit [Ping timeout: 480 seconds]
21:16hdbngr has joined #asahi-dev
21:24bgb has quit [Remote host closed the connection]
21:24bgb has joined #asahi-dev
21:24hdbngr has quit [Ping timeout: 480 seconds]
21:33hdbngr has joined #asahi-dev
21:47hdbngr has quit [Ping timeout: 480 seconds]
21:55hdbngr has joined #asahi-dev
22:04hdbngr has quit [Ping timeout: 480 seconds]
22:12hdbngr has joined #asahi-dev
22:21hdbngr has quit [Ping timeout: 480 seconds]
22:29hdbngr has joined #asahi-dev
22:35john-cabaj has quit [Ping timeout: 480 seconds]
22:38hdbngr has quit [Ping timeout: 480 seconds]
22:47hdbngr has joined #asahi-dev
22:55hdbngr has quit [Ping timeout: 480 seconds]
23:03hdbngr has joined #asahi-dev
23:11hdbngr has quit [Ping timeout: 480 seconds]
23:19hdbngr has joined #asahi-dev
23:28hdbngr has quit [Ping timeout: 480 seconds]
23:36hdbngr has joined #asahi-dev
23:45hdbngr has quit [Ping timeout: 480 seconds]
23:50hdbngr has joined #asahi-dev