#asahi-dev · 2023-02-06 14:00
marcanactually not thermal resistance, ratio of the time constants#asahi-dev · 2023-02-06 13:59
marcanif the model the constants are calibrated for is the dumb model I used, then it'd be more correct to leave it as is#asahi-dev · 2023-02-06 13:58
marcanI'm not sure if it matters much though, because it's symmetric (it also starts rising before t_vc properly rises)#asahi-dev · 2023-02-06 13:57
marcanpovik: yes, it's a simplification, but I wasn't sure how/if to fix it. I guess it would be proportional to the ratio of thermal resistance or so?#asahi-dev · 2023-02-06 13:28
marcan(the inputs are the time constants, not the raw alpha, I just do alpha_vc = step / (tc_vc + step))#asahi-dev · 2023-02-06 13:27
marcanappetit :)#asahi-dev · 2023-02-06 13:26
marcanI can commit it in a bit, dinner first :)#asahi-dev · 2023-02-06 13:26
marcanfor catchup we take p=0 and the tmag catchup is just obviously an exponential, I want to know the tvc one.#asahi-dev · 2023-02-06 13:25
marcan tmag = tmag_tgt * alpha_mag + tmag * (1 - alpha_mag)#asahi-dev · 2023-02-06 13:25
marcan tmag_tgt = t0 + p * rt_mag#asahi-dev · 2023-02-06 13:25
marcan tvc = tvc_tgt * alpha_vc + tvc * (1 - alpha_vc)#asahi-dev · 2023-02-06 13:25
marcan tvc_tgt = tmag + p * rt_vc#asahi-dev · 2023-02-06 13:25
marcanpovik: the notebook is a mess, but this is the update step#asahi-dev · 2023-02-06 08:55
marcanyeah I wasn't expecting a new dart#asahi-dev · 2023-02-06 08:55
marcanjannau: just in plain text?#asahi-dev · 2023-02-06 08:48
marcanwe're not in a rush#asahi-dev · 2023-02-06 08:48
marcanah, take it easy :)#asahi-dev · 2023-02-06 08:48
marcan(and atc and everything else that uses fuses)#asahi-dev · 2023-02-06 08:48
marcanand I assume the pcie fuses need reversing again#asahi-dev · 2023-02-06 08:47
marcanor maybe just hardcoded#asahi-dev · 2023-02-06 08:47
marcanshould be somewhere in the pmgr regs in the DT I think#asahi-dev · 2023-02-06 08:45
marcanI'll use that one for bringup first#asahi-dev · 2023-02-06 08:45
marcanok, same as me then#asahi-dev · 2023-02-06 08:44
marcanyou have the m2pro mini then?#asahi-dev · 2023-02-06 08:44
marcanI'm going to spend today on audio, but maybe later this week I can take a look#asahi-dev · 2023-02-06 08:44
marcando they use asmedia on the macmini now?#asahi-dev · 2023-02-06 08:43
marcankettenis_: for M2 pro/max?#asahi-dev · 2023-02-05 08:26
marcanaliexpress it is, less than half the price for something similar and not much slower#asahi-dev · 2023-02-05 08:16
marcanmeh, I think it ships from china, no prime and expensive shipping...#asahi-dev · 2023-02-05 08:13
marcanhttps://www.amazon.co.jp/dp/B088H5KFT9/ that looks sensible, they have the (trivial) USB-serial protocol on their website#asahi-dev · 2023-02-05 08:02
marcanI just need to get myself some kind of logging setup to make sure whatever environment I pick the temperature is stable enough to guarantee it reaches equilibrium#asahi-dev · 2023-02-05 08:01
marcanI mean I can certainly do a fridge test :p#asahi-dev · 2023-02-05 08:01
marcanfreezing as in sub-zero?#asahi-dev · 2023-02-05 08:00
marcanat this time of the year, outdoors vs. my shower room with the clothes drying heater fan turned on should give decent range :p#asahi-dev · 2023-02-05 08:00
marcanI'll try to come up with something sensible for that (probably involving a thermocouple, running the tests immediately after power-on for an ambient-temperature laptop, and sticking it in a few environments for an hour before each test#asahi-dev · 2023-02-05 07:59
marcanfor temperature measurement we need the voice coil resistance and tempco, which is known for the 14"+ laptops but not the 13" ones. resistance can just be measured with visense, tempco needs doing that at a few temperatures#asahi-dev · 2023-02-05 07:58
marcanwhich is what I intend to implement#asahi-dev · 2023-02-05 07:58
marcanin principle it's a 2-stage model (voice coil and magnet temp)#asahi-dev · 2023-02-05 07:55
marcanpovik: got it :)#asahi-dev · 2023-02-05 07:55
marcanand finally I'll have to do some ad-hoc "oven" tests on the M1 laptops to get a calibration for the temperature measurement we can then use to derive a model#asahi-dev · 2023-02-05 07:54
marcanthen port it to Rust and figure out how we want to do the safety interlock#asahi-dev · 2023-02-05 07:53
marcanthen come up with some sensible governor algorithm for the volume and prove it works#asahi-dev · 2023-02-05 07:53
marcanfirst step is to replicate the expected model Apple uses and plug in their numbers and see if we come up with sensible temperature estimates that match reality#asahi-dev · 2023-02-05 07:52
marcanmight start poking at this tomorrow#asahi-dev · 2023-02-05 07:51
marcanlet's go with that then, calibration stuff in that repo and the Rust stuff chadmed is working on for production#asahi-dev · 2023-02-05 07:48
marcancool :)#asahi-dev · 2023-02-05 07:47
marcan(we need to do a bunch of modeling/validation/etc before we can ship this anyway)#asahi-dev · 2023-02-05 07:46
marcanthink it's good enough to start doing experiments at least?#asahi-dev · 2023-02-05 07:46
marcannice :)#asahi-dev · 2023-02-05 06:57
marcangrep around othe DTs for examples