#asahi-dev · 2025-09-05 14:39
alexalteaI had no idea about the linked darts, that helps. I'll try to replicate the isp code, thanks again#asahi-dev · 2025-09-05 14:36
alexalteaalso, it seems it uses actually dma/gem for dart0, most of the direct accesses are for dart1 and dart2#asahi-dev · 2025-09-05 14:34
alexalteathanks jannau#asahi-dev · 2025-09-05 14:22
alexalteagood point re tomeu vizoso, thank you!#asahi-dev · 2025-09-05 14:22
alexalteayes, I was planning to work on ane userspace after having a working driver that doesn't kpanic :D#asahi-dev · 2025-09-05 14:18
alexalteayep, 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#asahi-dev · 2025-09-05 14:11
alexalteathe 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?#asahi-dev · 2025-09-05 14:09
alexaltea.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#asahi-dev · 2025-09-05 14:07
alexaltea@jannau: apologies, here's the code: https://github.com/eiln/ane/blob/main/ane/src/ane_drv.c#L41-L54#asahi-dev · 2025-09-05 13:59
alexalteai 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#asahi-dev · 2025-09-05 13:59
alexaltea@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)