#asahi-dev · 2023-01-16 15:28
marcankettenis: see driver-api/early-userspace/buffer-format.rst for a formal spec of the specific variant we care about#asahi-dev · 2023-01-16 15:27
marcancpio is really dumb#asahi-dev · 2023-01-16 15:27
kettenisbut it is in cpio format isn't it?#asahi-dev · 2023-01-16 15:27
marcanwould be nice if we taught u-boot how to minimally parse cpio (it's a very dumb format, and specifically only the version Linux understands) so we can just give it a subsetted vendorfw.cpio with just the components it needs (USB for now) and avoid a totally divergent mechanism#asahi-dev · 2023-01-16 15:26
marcanIIRC it's just a /chosen property with the address/size#asahi-dev · 2023-01-16 15:26
kettenisdon't think u-boot does initramfs, but I can have a look#asahi-dev · 2023-01-16 15:26
marcaninitramfs would be easiest because we already have that functionality in and it mirrors how it works for linux#asahi-dev · 2023-01-16 15:25
marcancan u-boot do anything useful with an initramfs passed to it?#asahi-dev · 2023-01-16 15:25
kettenispassing the firmware in memory and putting the addresses in the device tree would make things easier on my end#asahi-dev · 2023-01-16 15:25
marcankettenis: right, can we pass it to u-boot directly? it wouldn't be hard to append it to the m1n1 image (e.g. as a ramdisk) as part of the install process / m1n1 update#asahi-dev · 2023-01-16 15:25
marcanAIUI they play dead and time out a bunch of things, so best case it slows everything down, worst case it triggers badness#asahi-dev · 2023-01-16 15:25
kettenisreading the firmware from NVMe will be a challenge#asahi-dev · 2023-01-16 15:24
kettenisI'm a little bit worried about what happens on the asmedia controllers without loading firmware though#asahi-dev · 2023-01-16 15:24
marcankettenis: saw that, was going to mention we should probably blacklist the asmedia controllers until we support the firmware loading, and we need to talk about how to pass the firmware to u-boot#asahi-dev · 2023-01-16 15:24
kettenismarcan: In case you missed it, I pushed a branch with my current u-boot PCI XHCI work#asahi-dev · 2023-01-16 15:22
marcanif it doesn't work on some machines I'd like to know :p#asahi-dev · 2023-01-16 15:22
marcan(using the SMC event)#asahi-dev · 2023-01-16 15:21
marcanwake on lid works perfectly fine#asahi-dev · 2023-01-16 15:21
marcan< chadmed> not under linux no <- what yes it does#asahi-dev · 2023-01-16 15:19
marcangoing into deep idle should power gate individual cores or the whole cluster if all cores are in that state, which will save all the leakage current#asahi-dev · 2023-01-16 15:19
marcanthe major reason why we have power usage proportional to pstate is probably just leakage current that comes with the higher voltage, not the actual frequency#asahi-dev · 2023-01-16 15:18
marcan(and everything remains powered)#asahi-dev · 2023-01-16 15:18
marcanI think what happens is the cores shut down their clocks when you do that but not the cluster uncore#asahi-dev · 2023-01-16 15:17
marcanwe aren't spinning lol#asahi-dev · 2023-01-16 15:17
marcanchadmed: the cores don't "freewheel", they do go into idle, just not deep idle#asahi-dev · 2023-01-16 15:17
svenhrm, or maybe the BT chip stays somewhat alive in normal idle for wake-on-bluetooth anyway and does everything itself?#asahi-dev · 2023-01-16 15:16
marcanmaybe AOP is in charge during normal idle and the AP programs the beacons for full standalone mode on transition to actual shutdown?#asahi-dev · 2023-01-16 15:16
marcanhowever I don't know what happens during normal idle, clearly not that#asahi-dev · 2023-01-16 15:16
marcan< sven> like, the sane way to do this is to have the AP pre-program the find my beacons in the BT chip and then put the BT chip to sleep. <- this is exactly how it works or at least how it worked at some point, for iPhones when they *shut down*#asahi-dev · 2023-01-16 15:14
marcanwhy do we care about LEAP even? if we're bypassing things, can't we just get the raw mic data before LEAP?#asahi-dev · 2023-01-16 15:14
marcanthat depends on the specific hardware involved though#asahi-dev · 2023-01-16 15:13
marcane.g. consider what happens if AOP starts talking to other firmwares or doing something special#asahi-dev · 2023-01-16 15:13
marcanpersonally I'm more of the opinion that we should do whatever macOS does, even if it involves firmware, because diverging from that is more likely to come crashing down in bad ways with updates#asahi-dev · 2023-01-16 15:12
marcanpovik: AIUI AOP also reports accelerometer data on at least some models#asahi-dev · 2023-01-16 13:29
svenChaosPrincess: sounds like AOP maybe takes care of waking up BT then#asahi-dev · 2023-01-16 12:48
eilnstill relatively shallow networks only though, currently working on chaining buffers #asahi-dev · 2023-01-16 12:46
povikreally? that progressed pretty far then, being able to run a full network#asahi-dev · 2023-01-16 12:45
eilnno ANE! #asahi-dev · 2023-01-16 12:45
j`eyno thats the ANE#asahi-dev · 2023-01-16 12:45
povikah, that's the gpu, not the neural coprocessor, right?#asahi-dev · 2023-01-16 12:44
povikwhoa#asahi-dev · 2023-01-16 12:42
eiln150x speedup, i'll take that :PP #asahi-dev · 2023-01-16 12:42
eilnpytorch (cpu) takes 1.61288843667 sec/batch #asahi-dev · 2023-01-16 12:42
eilnmy very preliminary numbers show 0.010734896 sec/batch for inception_v3#asahi-dev · 2023-01-16 12:07
chadmedthey just get put into their lowest pstate and freewheel there#asahi-dev · 2023-01-16 12:06
chadmedwell the cores never sleep :P #asahi-dev · 2023-01-16 12:06
dsharshakovwithout PSCI we don't even seem to have wakeups as a power measure #asahi-dev · 2023-01-16 12:06
dsharshakovyes. worth thinking (since I'm frequently thinking about whatever sound processing)#asahi-dev · 2023-01-16 12:05
chadmedbut for now its all academic but worth talking about #asahi-dev · 2023-01-16 12:05
chadmedi think itll be a bigger deal once we have deep idle