#asahi-dev · 2022-11-25 21:39
svensegment ranges should be the source #asahi-dev · 2022-11-25 21:39
svendata section inside dart is pretty common #asahi-dev · 2022-11-25 21:37
poviksegment-ranges= has the right values but maybe there's some other canonical source#asahi-dev · 2022-11-25 21:37
poviknot sure how surprising this is but SIO requires the data section of its firmware DART-mapped for it to boot#asahi-dev · 2022-11-25 20:45
svenyeah, probably #asahi-dev · 2022-11-25 20:45
kettenisisn't this the point where you start talking to the maintainer of the dwc3 driver?#asahi-dev · 2022-11-25 20:44
svenI guess we could create a single threaded workqueue and defer it to there with a newly allocated work_struct each time but ugh :(#asahi-dev · 2022-11-25 20:43
svenlooks good to me#asahi-dev · 2022-11-25 20:43
jannaudmesg from m1n1 device detection to after powering the device off: https://paste.debian.net/1261876/#asahi-dev · 2022-11-25 20:43
svenso then we just have to find a way to fix it properly even when dwc3_set_mode is called from atomic context #asahi-dev · 2022-11-25 20:41
jannausven: looking good here as well. m1n1 device is reliably detected and I haven't triggered the warning so far#asahi-dev · 2022-11-25 20:38
eilnplease let me know if there are issues #asahi-dev · 2022-11-25 20:37
eilnt8103s should be able to run the scripts in experiments/ane_*.py #asahi-dev · 2022-11-25 20:37
eilni haven't had much issues with the work interface (TaskManager in ane_tm.py, my main work), so i'm now studying the actual work, i.e. those magic numbers in the configuration registers #asahi-dev · 2022-11-25 20:37
eilnso far i've got a prototype of 1D element-wise ADD/MUL/MIN/MAX, NCHW convolution, and (my fav, also the trickiest) 2D matrix multiplication working :D #asahi-dev · 2022-11-25 20:36
eilnhttps://gitlab.com/eiln/m1n1.git#asahi-dev · 2022-11-25 20:36
eilnhello everyone! it's been 5 days and i'm *still* in github jail so i made a mirror on #asahi-dev · 2022-11-25 20:33
sven*mutex#asahi-dev · 2022-11-25 20:31
svenlooks like that additional muted also fixed the rare DP-altmode transition bugs I saw #asahi-dev · 2022-11-25 19:35
kettenisI think so#asahi-dev · 2022-11-25 19:30
tpw_rulesis it the same as the regular asahi installer options then#asahi-dev · 2022-11-25 19:27
kettenislooks like it#asahi-dev · 2022-11-25 19:16
zzywysmkettenis: i think marcan gave the asahi branch the same contents as the asahi-wip branch a day or two after asahi-wip finalized?#asahi-dev · 2022-11-25 19:08
kettenisof the linux repository#asahi-dev · 2022-11-25 19:08
kettenisactually I suppose that's now the asahi branch#asahi-dev · 2022-11-25 19:07
kettenislooks like it has something very similar to what's in the asahi-wip branch#asahi-dev · 2022-11-25 18:25
tpw_rulesthe UEFI environment only installer option#asahi-dev · 2022-11-25 18:25
tpw_ruleshm, which device trees does the uefi-only-20221122-4.zip come with?#asahi-dev · 2022-11-25 15:57
svenhttps://files.svenpeter.dev/41f708cd7022c9998b85fcde0e236ad93a9154e2f011fe5e6edc10b864b232fd_dwc_race.txt#asahi-dev · 2022-11-25 15:55
svenbut you then end up with PRTCAP = host and dwc3 bringing up gadget or vice versa#asahi-dev · 2022-11-25 15:54
svenbut that thing is incredibly right. I only managed to trigger it twice#asahi-dev · 2022-11-25 15:54
svenbut without it you can have one dwc->desired_dr_role value in dwc3_set_prtcap(dwc, dwc->desired_dr_role); and then three lines or so below a different one in switch (dwc->desired_dr_role)#asahi-dev · 2022-11-25 15:53
svenit's much easier to hit that race with the role switch reset quirk#asahi-dev · 2022-11-25 15:53
svenyou need a very quick A->B->A role change event#asahi-dev · 2022-11-25 15:52
jannauI find it surprising that dwc3_set_mode and __dwc3_set_mode can race each other#asahi-dev · 2022-11-25 15:48
sventhanks. fixing that race correctly is going to be annoying #asahi-dev · 2022-11-25 15:42
jannauI'll test later#asahi-dev · 2022-11-25 15:40
svennot 100% sure because reproducing it has always been flakey for me#asahi-dev · 2022-11-25 15:39
svenjannau: alright, looks like I can't reproduce the WARN anymore if I lock dwc->mutex around dwc->lock in dwc3_set_mode with that atcphy-WIP tree#asahi-dev · 2022-11-25 14:50
Dcowso, not that unrelated #asahi-dev · 2022-11-25 14:49
Dcowwell, this is daemon to tune device modes, not exactly cpufreq. If we can do more than cpufreq, why not?#asahi-dev · 2022-11-25 14:47
svennot sure if anything like that even exists and that also seems to be unrelated to cpufreq i think#asahi-dev · 2022-11-25 14:46
svenhrm, actually that interface seems to be about changing some "internal" policy so that something like SMC can tweak all these things together#asahi-dev · 2022-11-25 14:45
svenno idea if I'm missing anything though#asahi-dev · 2022-11-25 14:45
svenI think most other things are controlled by SMC and I don't think we have control over them#asahi-dev · 2022-11-25 14:44
svenbut that interface seems to be used when multiples knobs are to be turned together (cpufreq + fan speed + whatever else) - do we have anything except for cpufreq that can even be tweaked?#asahi-dev · 2022-11-25 14:44
svenno idea!#asahi-dev · 2022-11-25 14:44
Dcowso, the question, do we have similar to platfrom_profile interface for OF devices?#asahi-dev · 2022-11-25 14:43
svensounds good!#asahi-dev · 2022-11-25 14:42
DcowI'll made this more clear in next communication batch, but for now it's draft anyway