#asahi-dev · 2023-02-06 07:13
rkjnsn_(It does work plugged into a 2018 Mac mini running macOS Ventura, so this may be something Apple decided is explicitly not supported, and I expect it should work under macOS with the M1's just fine.)#asahi-dev · 2023-02-06 07:12
rkjnsn_Under macOS Monterey, it's seemingly not recognized at all. I see the Thunderbolt plug event in the logs, but it doesn't show up in the system report even as an unsupported device.#asahi-dev · 2023-02-06 07:12
rkjnsn_sven: In case you're curious, I tried plugging my OWC Thunderbolt hub into my 2015 MBP using an Apple Thunderbolt 3-to-2 adapter.#asahi-dev · 2023-02-05 21:18
povikprobable fix for the stuck ADMAC IRQs: https://tpaste.us/Vqbz#asahi-dev · 2023-02-05 20:50
chadmedjeffmiw: have a look at the opp table for a good example of what i mean#asahi-dev · 2023-02-05 18:07
jeffmiwI was working from an old tag. I'm planning to move to the edge one as a next step#asahi-dev · 2023-02-05 18:06
jeffmiwchamed: why not, do you have an example of such example of dt binding with array of 2 elements ? I will look for it but if you have something handy that will help. I'll check for the float conversion function in smc#asahi-dev · 2023-02-05 13:19
svendoesn't get any modes yet, either it needs additional DPTX calls or I'm missing something inside NHI#asahi-dev · 2023-02-05 13:18
sven*almost*#asahi-dev · 2023-02-05 13:18
svenIOMFBStatus VideoInterfaceIOAV::plug_gated(IOAVVideoInterface *): display HPD asserted#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
poviknot necessarily, just very cold :p#asahi-dev · 2023-02-05 08:01
chadmedthatll be great for the battery :P #asahi-dev · 2023-02-05 08:01
marcanfreezing as in sub-zero?#asahi-dev · 2023-02-05 08:01
povikfor estimating the parameters of the model#asahi-dev · 2023-02-05 08:01
povikmeasurements on a laptop that's initially freezing might be the most accurate#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
chadmedyeah#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:58
chadmedas a toy implementation ive just been using the thermal resistance of the voice coil as provided by apple to estimate temperature from a given power level but if we can get something more accurate then it shouldnt be too much effort to use that instead#asahi-dev · 2023-02-05 07:55
povikerr, i mean you need to *comment out* disabling of the switches#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
povikbtw to bring it up on a new model, you need to: 1. describe the sense data slots in DT; 2. uncomment the ISENSE/VSENSE switches being disabled in macaudio#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:48
povikmarcan: that repo is where the research you may need to do can go as well :)#asahi-dev · 2023-02-05 07:47
povikthis counts joules...#asahi-dev · 2023-02-05 07:47
povikhttps://github.com/povik/macaudio-userutils/blob/master/scripts/live_powersum.py#asahi-dev · 2023-02-05 07:47
povikwell, i have been doing some experiments myself :p#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 07:46
poviki have been sitting on it as i still want to polish a few things#asahi-dev · 2023-02-05 07:46
povik(at least on j314)#asahi-dev · 2023-02-05 07:46
povikthe status is that it's pretty much ready in https://github.com/povik/linux/tree/ivsense#asahi-dev · 2023-02-05 07:46
povikmarcan: i did ask and you haven't answered, but since then i started getting samples on j274 so indeed it looks like it's wired up on all models!#asahi-dev · 2023-02-05 06:57
marcangrep around othe DTs for examples#asahi-dev · 2023-02-05 06:57
marcanyou might want to add power-domain-names / reset-names and label them, so future bindings don't depend on strict ordering (you don't have to *use* that today, as long as the binding specifies a strict ordering today the driver can just use integer indices, it's more for future-proofing)