#asahi-dev · 2023-11-19 23:55
eilnI have to go to $work in 5 minutes, will reply later tonight#asahi-dev · 2023-11-19 23:55
eilnWe could write a TF delegate backend too, though I'm thinking this is for more simpler kernels e.g. tanh (unary), matmul (binary). Should be a lot easier if it's already there :).#asahi-dev · 2023-11-19 23:55
eilnApple already has a (somewhat) developed ecosystem, and we have no problem running those Stable Diffusion models that Apple themselves compiled and released -- and I personally don't want to waste my compilation cache -- so I'm fine with some vendor-specific logic here.#asahi-dev · 2023-11-19 23:55
eilnWhen ANE support happens, the first feature will be the ability to run any pre-compiled CoreML model imported from macOS. This is easy for us because all we need to do is do the kernel-side submission dance e.g. IOMMU-mapping. CoreML support means we're forced to write a bespoke layer for Linux, but there's no other way here.#asahi-dev · 2023-11-19 23:55
eilnvery difficult to expose ANE as a generic compute node.#asahi-dev · 2023-11-19 23:55
eilnI'll admit my mind has been in video world and it's been some time since all this, but ANE is a FP16 MAC unit, it descended from the DSP block of the camera; it's basically ISP got out of hand. It can only do one thing -- and though it can do that one thing pretty efficiently -- it's in turn extremely inflexible and opinionated. As much as I'd like to, hardware limitations make it#asahi-dev · 2023-11-19 23:55
eilneric_engestrom: I haven't seen that PR actually, thank you for the link :)#asahi-dev · 2023-11-19 17:52
eric_engestromawesome, they'll see this then :)#asahi-dev · 2023-11-19 17:37
jannegeric_engestrom: yes, eiln usually checks logs if not present#asahi-dev · 2023-11-19 17:37
PaulFertserYes, with nick eiln but not right atm.#asahi-dev · 2023-11-19 17:33
eric_engestromto my untrained eye, that seems related to eiln's work on the apple neural engine, so they might want to take a look at that MR, to maybe hook it up to asahi as well and make sure the api that ends up landing is compatible with what asahi can do, so that we don't end up with one api per vendor :]#asahi-dev · 2023-11-19 17:33
eric_engestromis eiln on this channel? I just saw that there's a Mesa merge request to add a "TensorFlow Lite delegate that can make use of NPUs to accelerate ML inference" and hook it up to etnaviv (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25714)#asahi-dev · 2023-11-19 16:15
leioneed to finally figure out elfutils splitdebug issues to free up rootfs space and not have the journal aggressively cleaned up#asahi-dev · 2023-11-19 16:13
leiooh, it might have s2idle and I didn't wake it up#asahi-dev · 2023-11-19 16:13
leioit looks like the previous boot froze at one point as well, but I can't see anything interested in journalctl -b-1#asahi-dev · 2023-11-19 16:09
jannegleio: it's strange that you don't see any "DP2HDMI HPD" messages if you boot with hdmi cable connected#asahi-dev · 2023-11-19 15:48
leioI probably never tried booting hdmi disconnected with dptx-fixes and there's probably actually no diff in behaviour here#asahi-dev · 2023-11-19 15:47
leioand with it not connected at start, but connected later: https://bpa.st/5QRA /me goes back to waiting mode :)#asahi-dev · 2023-11-19 15:44
leiobut no DP2HDMI message when booting with hdmi connected at the start; some i2c minute timeout before network came up too - https://bpa.st/Y7GA#asahi-dev · 2023-11-19 15:40
leiowhen plugging in the HDMI after it booted without any: kernel: apple-dcp 2289c00000.dcp: DP2HDMI HPD connected:1 kernel: apple-dcp 2289c00000.dcp: DPTXPort: acking unhandled call 22#asahi-dev · 2023-11-19 15:37
leioat least I'm seeing a "[ 4.415052] apple-dcp 2289c00000.dcp: dcp_enable_dp2hdmi_hpd: DP2HDMI HPD connected:0" now; maybe I should connect a HDMI cable again now :)#asahi-dev · 2023-11-19 15:17
leioshould I be trying asahi-wip with all the merges?#asahi-dev · 2023-11-19 15:16
leioand guess something spinlocks or similar to keep CPU busy then#asahi-dev · 2023-11-19 14:05
jannegleio: sounds like oops on dcp unload/poweroff which blocks shutdown#asahi-dev · 2023-11-19 13:25
mazv6.7-rc1 booted on M2 pro with a minimal merge of essential features only. the only ugly corner was the iommu changes.#asahi-dev · 2023-11-19 12:43
leiohmm, after another systemctl poweroff that didn't quite work with the hdmi out kernel, it also ran hot overnight in that state#asahi-dev · 2023-11-18 21:22
jannegyes, for dcp, that's why I said fun. I would have expected that the dp-audio0 nodes are deleted from the laptop device trees. needed for mac studio#asahi-dev · 2023-11-18 20:50
povikit's just been a while and i am forgetting things...#asahi-dev · 2023-11-18 20:49
povikit's the same everywhere#asahi-dev · 2023-11-18 20:49
povikyeah, of course#asahi-dev · 2023-11-18 20:46
povikif the same chip is used somewhere other than a laptop, probably?#asahi-dev · 2023-11-18 20:45
povikwhy does dcp need the dp-audio though?#asahi-dev · 2023-11-18 20:45
povikah, dp-audio0 belongs to dcp, the rest to the three dcpext#asahi-dev · 2023-11-18 20:42
povikhow are the 0...4 and 0...3 linked?#asahi-dev · 2023-11-18 18:48
jannegfun, j314c has dp-audio0 to dp-audio4 for dcpext0 to dcpext3#asahi-dev · 2023-11-18 18:22
jannegshould be in released kernels since a while#asahi-dev · 2023-11-18 18:22
povikyup, since asahi-6.3-1#asahi-dev · 2023-11-18 18:21
povikwhere did that fix end up, is it in asahi-wip?#asahi-dev · 2023-11-18 18:16
jannegsio boot is reliable, I didn't really test since your dart runtime pm fix#asahi-dev · 2023-11-18 18:15
povikgreat, thanks#asahi-dev · 2023-11-18 18:15
jannegpovik: https://github.com/jannau/linux/tree/dcp/dptx-fixes-audio should work on m1 with both 12.3 and 13.5 fw, on m2 with 13.5. I started with some cleanup#asahi-dev · 2023-11-18 18:10
povikor the hdmi receivers have ramp-up time and we need to address that in use-case configuration#asahi-dev · 2023-11-18 18:10
poviksio bug as in our driver sio bug#asahi-dev · 2023-11-18 18:08
poviki haven't#asahi-dev · 2023-11-18 18:08
janneghave you already rebased on asahi-wip or dcp/dptx-fixes? I can push my tree somewhere#asahi-dev · 2023-11-18 18:06
poviki suspect that's a sio bug#asahi-dev · 2023-11-18 18:06
povikah, yeah, i noticed the ramp-up cut-off too the other day#asahi-dev · 2023-11-18 18:06
povikjanneg: in any case https://github.com/AsahiLinux/m1n1/pull/354#asahi-dev · 2023-11-18 18:05
jannegah, I didn't realize that was in regard to the dpa mmio. so it might already work#asahi-dev · 2023-11-18 18:04
jannegis it expected that the beginning of the audio is cut-off? for `speaker-test -t wav -c 2` the "front" is mostly inaudible except for the first "Front left"