#asahi-dev · 2022-11-28 18:57
alyssaSomething in the middle?#asahi-dev · 2022-11-28 18:57
alyssaIs this "it can run C code"?#asahi-dev · 2022-11-28 18:57
alyssaIs this "we have a couple of registers for network weights and the rest is fixed"?#asahi-dev · 2022-11-28 18:57
alyssaI do want to understand the complexity of the ANE instruction set#asahi-dev · 2022-11-28 18:56
svenhuh, i guess #asahi-dev · 2022-11-28 18:53
alyssasven: NPUs are just GPUs that suck at rasterization....#asahi-dev · 2022-11-28 18:51
sven*advice #asahi-dev · 2022-11-28 18:51
svenshe said after giving amazing advise on what to do :D#asahi-dev · 2022-11-28 18:51
alyssabut every so often the ML folk pass by my virtual cubicle at work :-p#asahi-dev · 2022-11-28 18:51
alyssathis isn't my 'area', I'm not the expert here#asahi-dev · 2022-11-28 18:50
alyssa("ANE done wrong" would be the downstream vendor approach to get some cool pics for Twitter/Mastodon and never end up getting shipped...)#asahi-dev · 2022-11-28 18:49
alyssaas the closest prior art for "ANE done right"#asahi-dev · 2022-11-28 18:49
alyssaso it's worth looking at what they're doing#asahi-dev · 2022-11-28 18:49
alyssaand ruminations of an accel subsystem as mentioned above#asahi-dev · 2022-11-28 18:49
alyssaI think Habana Labs (only) are doing things "properly" with upstream/mainline approach now#asahi-dev · 2022-11-28 18:48
alyssaUsually that's downstream char/misc devices in the kernel with custom vendor ioctls and a downstream fork of tflite or whatever ...#asahi-dev · 2022-11-28 18:48
alyssa(Because there's not a standard API, ie a hypothetical Khronos OpenML, that this hardware would implement... In effect the tensorflow API would be that API in this case...)#asahi-dev · 2022-11-28 18:47
alyssaI think the current state-of-the-art is adding a tensorflow backend for your hardware and yeeting#asahi-dev · 2022-11-28 18:46
alyssabut we don't currently have a home for userspace drivers for hardware of that class (Mesa for GPUs, libcamera for camera processing, what for NPUs?)#asahi-dev · 2022-11-28 18:46
alyssaIt does not make sense to support that in Mesa#asahi-dev · 2022-11-28 18:46
alyssawhich is more sensible if you're going to have an ANE at all#asahi-dev · 2022-11-28 18:45
alyssaOn the other extreme you have NPUs that are fixed function neural network hardware#asahi-dev · 2022-11-28 18:45
alyssaIMHO that design doesn't make a lot of sense on SoCs that have competent CPUs and GPUs, either of which can run OpenCL excellently, why add NPU into the mix?#asahi-dev · 2022-11-28 18:44
alyssahence is supported by the existing etnaviv GPU stack, supporting (only) OpenCL in userspace via mesa#asahi-dev · 2022-11-28 18:44
alyssathe Vivante NPU is literally just a Vivante GPU with all the graphics support stripped out#asahi-dev · 2022-11-28 18:43
alyssaSome NPUs (e.g. Vivante) are general purpose compute accelerators#asahi-dev · 2022-11-28 18:43
alyssaI think I'd like to understand the capabilities of the ANE more before I could give any advice#asahi-dev · 2022-11-28 18:43
alyssaStuff isn't too standardized yet, as you're seeing#asahi-dev · 2022-11-28 18:42
alyssaNPUs in mainline are in a bit of a weird spot right now#asahi-dev · 2022-11-28 18:42
alyssaeiln (for when they're back)--#asahi-dev · 2022-11-28 18:23
ChaosPrincessWasnt there some people who tried to put asahi on checkrainable ipads?#asahi-dev · 2022-11-28 17:45
svenyup :D#asahi-dev · 2022-11-28 17:45
poviki guess you double-checked the address there? :D#asahi-dev · 2022-11-28 17:45
svenpciec still SErrors though, but maybe I need something connected before that comes up#asahi-dev · 2022-11-28 17:44
svenin other thunderbolt and „sven is dumb“ news: part of the acio MMIO wasn’t „enabled“ because I literally got the address wrong in the device tree *sigh*#asahi-dev · 2022-11-28 17:37
povikyeah, makes sense#asahi-dev · 2022-11-28 17:27
sven*nvme_ctrl#asahi-dev · 2022-11-28 17:27
svenpovik: I think the proper solution to that drvdata thing is to just create a new device from code. nvme does that as well for its nvme_crrl#asahi-dev · 2022-11-28 16:59
j`eyhttps://lore.kernel.org/lkml/20221022214622.18042-1-ogabbay@kernel.org/#asahi-dev · 2022-11-28 16:58
j`eya new 'accel' subsytem#asahi-dev · 2022-11-28 16:57
marcanwasn't there a new subsystem in linux for ane type stuff?#asahi-dev · 2022-11-28 16:57
marcaneiln ^#asahi-dev · 2022-11-28 16:56
marcanI don't think alyssa is the right person for this; some other drm folks might have an opinion though#asahi-dev · 2022-11-28 16:48
kettenismarcan: thanks; hopefully v5 will stick#asahi-dev · 2022-11-28 16:24
povikhttps://github.com/povik/linux/tree/dcp-audio-boilerplate#asahi-dev · 2022-11-28 16:24
povikjannau: alyssa: i wrote up what is per my understanding the boilerplate to add audio to DCP. take a look if curious#asahi-dev · 2022-11-28 16:02
svenI wonder if it's versatile enough for that :D#asahi-dev · 2022-11-28 16:00
povikrunning opencl on ane when#asahi-dev · 2022-11-28 15:42
svenalyssa should be here or in #asahi-gpu sometimes#asahi-dev · 2022-11-28 15:42
eilnalright ty!