#asahi-dev · 2023-01-22 14:03
marcanjannau: I think at this point we might just release everything together, so I'm happy to merge those in first#asahi-dev · 2023-01-22 14:02
jannaumarcan: do you still want to "stabilize" asahi-wip soon? I would like to get the component based probing and runtime PM merged before 13.2 support#asahi-dev · 2023-01-22 13:59
jannaumarcan: please replace bits/020-t6000-dart with https://github.com/jannau/linux/tree/bits/020-t6000-dart - update to Thierry's v13 which hopefully gets merged for v6.3#asahi-dev · 2023-01-22 13:56
svenlike, all of them. I guess they only exist in that kernelcache now?#asahi-dev · 2023-01-22 13:56
svenand apparently at some point the .kexts disappeared from /System/Library/Extensions :/#asahi-dev · 2023-01-22 13:55
svenits MMIO starts where usually the second root port would be#asahi-dev · 2023-01-22 13:54
svenhrm, there's a strange apciec1-piodma node in the ADT which seems to use the pciec dart for some reason#asahi-dev · 2023-01-22 12:28
marcan(better export unknown keys than leave them out)#asahi-dev · 2023-01-22 12:28
marcanand leave the others as raw keys#asahi-dev · 2023-01-22 12:28
marcanthen pull descriptions from the DT or (on intel) hardcoded tables for known keys#asahi-dev · 2023-01-22 12:27
marcanthe driver needs to just enumerate all T??? keys, and grab the formats, and export everything it supports#asahi-dev · 2023-01-22 12:27
marcanso apple silicon already has mixed key formats: most templeratures are 'flt ' (float32), but some are 'ioft' (16.16 fixed point). intel macs seem to use (at least) 'sp78' which is 8.8 fixed point (7.8 plus sign bit, but hopefully the sign bit is standard two's complement?)#asahi-dev · 2023-01-22 12:13
marcanand in the meantime we can just have both drivers mutually exclusive in kconfig and let people pick#asahi-dev · 2023-01-22 12:12
marcanthose are easy enough to throw in for completeness and call the existing driver superseded#asahi-dev · 2023-01-22 12:12
marcanonce we have fan/temp unified, the rest of what the intel driver is what... keyboard backlight and some ambient light sensor thing?#asahi-dev · 2023-01-22 12:10
marcanchadmed_: not worth it IMO#asahi-dev · 2023-01-22 12:09
marcanyou can query key type and data format#asahi-dev · 2023-01-22 12:09
marcanthat's just a minor divergence#asahi-dev · 2023-01-22 12:09
chadmed_or can we just say "if dmi table use this codepath if of use this other codepath" #asahi-dev · 2023-01-22 12:09
marcanso that means the driver can just find out and support both#asahi-dev · 2023-01-22 12:09
marcanChaosPrincess: oh, good point, they do, but... key type is discoverable#asahi-dev · 2023-01-22 12:09
chadmed_would it be worth just not unifying them, but factoring out the backend stuff we can and still have an independent driver for the intel machines#asahi-dev · 2023-01-22 12:09
ChaosPrincessand intel macs used some weird fixpoint format for some keys#asahi-dev · 2023-01-22 12:08
ChaosPrincessint vs float and such#asahi-dev · 2023-01-22 12:08
marcan?#asahi-dev · 2023-01-22 12:08
ChaosPrincessmarcan: dont they use a different data format#asahi-dev · 2023-01-22 12:08
marcanlike, quite likely, the battery stuff#asahi-dev · 2023-01-22 12:07
marcanand I expect T2 Macs to share a lot more with M1s#asahi-dev · 2023-01-22 12:07
chadmed_ah... yeah...#asahi-dev · 2023-01-22 12:07
marcanthat's another reason to deprecate it#asahi-dev · 2023-01-22 12:07
marcanno#asahi-dev · 2023-01-22 12:07
chadmed_does the existing intel driver work for t2 macs?#asahi-dev · 2023-01-22 12:06
marcanthe fan control keys match, that's the #1 thing that will share nicely#asahi-dev · 2023-01-22 12:05
chadmed_yeah the way they do it is odd too#asahi-dev · 2023-01-22 12:04
ChaosPrincesssince they dont match#asahi-dev · 2023-01-22 12:04
ChaosPrincessand the other 90% is parsing of the keys#asahi-dev · 2023-01-22 12:04
chadmed_ChaosPrincess: 90% of that applesmc-intel driver can be factored out into an x86 backend for smc core #asahi-dev · 2023-01-22 11:57
kettenis_I suppose I can always ignore the stuff in the DT if it conflicts with my OCD ;)#asahi-dev · 2023-01-22 11:48
marcanit doesn't have to be consistent other than a few very well defined and stable keys, it has to be useful.#asahi-dev · 2023-01-22 11:47
marcankettenis_: I'd just include both, flood users with info. repair people will love it, and it's cool. for stuff we don't have the info for, just roll with what we can guess.#asahi-dev · 2023-01-22 11:47
svenwhich is probably a sign that we're doing something wrong ;)#asahi-dev · 2023-01-22 11:47
svenhacking around dwc3 is getting more and more painful these days#asahi-dev · 2023-01-22 11:47
marcanplease do#asahi-dev · 2023-01-22 11:47
kettenis_having a consistent set of descriptions for those keys may be a challenge ("name of the power rail" vs. "what they're for")#asahi-dev · 2023-01-22 11:46
svenyeah, there's some annoying details to figure out but at least I want to give this a try#asahi-dev · 2023-01-22 11:46
marcansven: works for me, we already have apple,dwc3 for this. might need a denylist in the generic dwc3 driver to make sure it doesn't probe on snps,dwc3 first.#asahi-dev · 2023-01-22 11:45
svenjannau: it looks like we e.g. don't need a dwc3 reset if we just switch from usb3-only to usb3/dp#asahi-dev · 2023-01-22 11:45
ChaosPrincessso, just assume apple will not make new intel machines and have hardcoded tables in the driver?#asahi-dev · 2023-01-22 11:44
marcanit'd cause some divergence but that's fine#asahi-dev · 2023-01-22 11:44
marcanChaosPrincess: I don't think intel machines have anywhere near as many sensors as these; we could just have some defaults hardcoded in the driver and probe for existing keys like kettenis_ does for those