#asahi-dev · 2022-02-28 10:05
svenerm.. *multiple cells referencing the same fuse#asahi-dev · 2022-02-28 10:05
svenand afaict that's even enough to support t6000 with the same code#asahi-dev · 2022-02-28 10:04
svennvmem cells already support bits = <start len>; so we can just have a single cell referencing the same fuse multiple times#asahi-dev · 2022-02-28 10:04
svenyup#asahi-dev · 2022-02-28 08:55
svenlooks like apple has an "instance" property in their ADT on the atcphy which is either 0 or 1 on t8103 and which, among other things, decides which fuses to use to tweak some registers#asahi-dev · 2022-02-28 07:29
svenyeah#asahi-dev · 2022-02-27 19:58
svenso I guess it’s either that or clean up all darts in m1n1#asahi-dev · 2022-02-27 19:58
svennice!#asahi-dev · 2022-02-27 18:38
svenwhat if we change that to “tcr translate enabled and any ttbr has the valid bit set”?#asahi-dev · 2022-02-27 16:37
svenI thought we already did that but apparently we just forgot :D#asahi-dev · 2022-02-27 16:35
svenmarcan: when you’re working on that tcr patch feel free to also send one to merge the dart entries to the rest in MAINTAINERS #asahi-dev · 2022-02-27 15:18
sveni think it hands over some in bypass mode#asahi-dev · 2022-02-27 15:18
svenI don’t even remember what iboot does to the DARTs #asahi-dev · 2022-02-27 15:17
svenfeel free to send something #asahi-dev · 2022-02-27 15:16
svenit should hand over the darts in a sane state ;)#asahi-dev · 2022-02-27 15:15
svenyeah#asahi-dev · 2022-02-27 15:15
svenand a dev_warn for anything in bypass mode is probably useful too#asahi-dev · 2022-02-27 15:14
svenI think bailing when the TCR is set to translate is a good idea#asahi-dev · 2022-02-26 18:40
sveni actually looked for it but didn't find anything ;)#asahi-dev · 2022-02-26 18:34
svenalright, now I just need to untangle the mess that is inside atc-phy0's reg, reverse engineer that annoying apply_fuses function (why couldn't they have a nice table like pcie in the kext :() and then write phy code#asahi-dev · 2022-02-26 18:30
sven*compared#asahi-dev · 2022-02-26 18:30
svenah, no, they're actually the same. i just accidentally compare my t8103 with jannau's t6000 :D#asahi-dev · 2022-02-26 18:28
sven(at least slightly)#asahi-dev · 2022-02-26 18:28
svenand they also seem to differ between my t8103 and jannau's#asahi-dev · 2022-02-26 18:26
sventhanks! looks like the tunable names are the same but their contents differ between t6000 and t8103#asahi-dev · 2022-02-26 18:17
sveni think that's the one i remembered#asahi-dev · 2022-02-26 18:01
sveni swear I remember seeing code to remove that one property #asahi-dev · 2022-02-26 18:00
svenhuh, but I can’t find that code in there#asahi-dev · 2022-02-26 17:59
svenadt.py already removes it iirc#asahi-dev · 2022-02-26 17:58
sven(where it = the entire property)#asahi-dev · 2022-02-26 17:57
svenok, then adt.py should be fine#asahi-dev · 2022-02-26 17:57
sveni always just look for my WiFi name and zero it#asahi-dev · 2022-02-26 17:57
svenand I don’t remember the property with the WiFi settings, but I believe it was something with nvram maybe?#asahi-dev · 2022-02-26 17:56
svenjannau: does adt.py show the contents of the tunables?#asahi-dev · 2022-02-26 17:56
svenalyssa: feel free to tell me if you find that helper#asahi-dev · 2022-02-26 17:33
svenraw ADT#asahi-dev · 2022-02-26 17:30
svenand I guess another t8103 ADT just to compare tunables would be interesting as well#asahi-dev · 2022-02-26 17:29
svencan anyone with a t6000 upload their ADT for me? I’m mostly interested in the atc-phy nodes and all the tunables in there. make sure to censor the property that contains wifi settings, etc.#asahi-dev · 2022-02-26 12:36
svenbut that SErrors on the m1#asahi-dev · 2022-02-26 12:35
sventhere's another vendor-specific driver that is essentially the same but uses readb instead#asahi-dev · 2022-02-26 12:35
svennope :(#asahi-dev · 2022-02-26 12:33
svenhttps://github.com/AsahiLinux/linux/commits/nvmem-v1 and here I thought that watchdog was going to be the most boring driver ever ;)#asahi-dev · 2022-02-23 13:50
svenoh.. that looks like a perfect fit actually#asahi-dev · 2022-02-23 12:44
sven*thing#asahi-dev · 2022-02-23 12:44
svendoesn't make much of a difference tbh. this things already needs like 10 different tunables stuffed in there anyway#asahi-dev · 2022-02-23 12:41
svenbut then again.. I guess with the fancy multi-monitor support the DP crossbar stuff changed anyway#asahi-dev · 2022-02-23 12:40
svenmaybe actually apple,fuses because I bet they change between t8103 and t6000#asahi-dev · 2022-02-23 12:39
sveneither I just add that fuses source as an additional reg or alternatively just stuff it into apple,fuses next to all the other random tunables this thing requires#asahi-dev · 2022-02-23 12:37
svenlooks like the atc phy also needs some of these fuses similar to the apcie one. they're even taken from a similar memory region (0x2_3d2bc000). I'm not sure yet if I can apply them from m1n1 because XNU also seems to reset the entire atc phy every time a cable is unplugged