#
✕ nick:marcan
#asahi · 2022-01-20 19:01
marcanduplicating this knowledge in every OS seems... suboptimal
#asahi · 2022-01-20 18:51
marcankettenis: probably would make sense to figure out a way to stuff these names in the device tree
#asahi · 2022-01-20 18:50
marcanmostly process of elimination matching up SMC symbols with known sensors in the schematic...
#asahi · 2022-01-20 18:50
marcanhttps://mrcn.st/p/jcpn0idA well that's pretty much all the voltages/currents for j314 (and other info I could gather)
#asahi · 2022-01-20 13:27
marcanand so instead of streaming SMC here's the rabbit hole I ended up in: https://twitter.com/marcan42/status/1484155015585742857
#asahi · 2022-01-20 11:08
marcanlet's see if this yields anything :-)
#asahi · 2022-01-20 11:08
marcanjoske: well you did manage to send me down a rabbit hole instead of streaming today... but I just got somewhere
#asahi · 2022-01-20 10:07
marcannot that "what SMC keys do" is copyrightable, but that statement sets off my legally dubious license detector
#asahi · 2022-01-20 10:07
marcanall the new information found with a single exception of having NDA with Apple."
#asahi · 2022-01-20 10:07
marcan"You are not allowed to use the contents of this document unless you openly publish
#asahi · 2022-01-20 09:57
marcanscreen on?
#asahi · 2022-01-20 09:56
marcanheh
#asahi · 2022-01-20 09:49
marcanI just had an idea...
#asahi · 2022-01-20 09:42
marcandigs around a bit more...
#asahi · 2022-01-20 09:15
marcanah, this library looks like it has per-device info, but only for some things, seems related to accumulation? and I don't see the M1 Macs...
#asahi · 2022-01-20 09:15
marcanon linux we can easily peg a core and see what temperature goes up first
#asahi · 2022-01-20 09:15
marcanjoske: doesn't help that macos doesn't let you exercise individual cores I guess
#asahi · 2022-01-20 09:10
marcanthis thing has a gazillion sensors, internal and external
#asahi · 2022-01-20 09:10
marcanpeople think `sensors` gives you fun output on some motherboards... wait until they see an M1
#asahi · 2022-01-20 09:10
marcanI also love just how fine-grained all this stuff is because we're going to be one of the platforms with the most junk in sysfs out there :D
#asahi · 2022-01-20 09:09
marcanyeah, it's a bit weird
#asahi · 2022-01-20 09:08
marcan2x4P 1x2E
#asahi · 2022-01-20 09:08
marcan10
#asahi · 2022-01-20 09:06
marcanlibSMC is in the update/restore ramdisks at least
#asahi · 2022-01-20 09:05
marcanheh, foiled by 7-zip dmg extraction issues... sec
#asahi · 2022-01-20 09:01
marcanlet me take a quick look, see if I can dump it
#asahi · 2022-01-20 09:00
marcannot complete though
#asahi · 2022-01-20 09:00
marcanjoske: there is some key-meaning mapping in a dylib somewhere
#asahi · 2022-01-20 08:59
marcanit's plugged in since yesterday ;)
#asahi · 2022-01-20 08:58
marcando note that some keys are endian-reversed for who knows what reason
#asahi · 2022-01-20 08:57
marcanhttps://mrcn.st/p/Vqx8k9YF here's a dump from the m1pro mbp, fwiw
#asahi · 2022-01-20 08:56
marcanSMC deals more with out-of-SoC measurements
#asahi · 2022-01-20 08:56
marcanthat's the in-SoC power monitor coprocessor
#asahi · 2022-01-20 08:56
marcanI imagine you're also interested in PMP?
#asahi · 2022-01-20 08:56
marcanit's embedded
#asahi · 2022-01-20 08:54
marcanalso I should add a debugfs for this to just read keys
#asahi · 2022-01-20 08:54
marcanyeah
#asahi · 2022-01-20 08:53
marcanleave it to apple to have weird half-broken API abstractions :p
#asahi · 2022-01-20 08:53
marcanhopefully today should be a bit more productive, that GPIO reversing was much more of a rabbit hole than I expected
#asahi · 2022-01-20 08:53
marcannice :)
#asahi · 2022-01-20 08:52
marcangotta catch up!
#asahi · 2022-01-20 08:51
marcanj`ey: I spent >2 weeks without one!
#asahi · 2022-01-20 08:51
marcanbut that shouldn't matter much once cpufreq is done
#asahi · 2022-01-20 08:51
marcanI just picked 2GHz as a nice "faster than low, but not full blast" point, that also happens to make the e-cores and p-cores about ~equal in frequency
#asahi · 2022-01-20 08:50
marcanif you patched m1n1 it can be 3, yes
#asahi · 2022-01-20 08:50
marcanif you're using stock m1n1 and nothing special in the kernel, everything is at 2GHz
#asahi · 2022-01-20 08:50
marcanah, you changed something?
#asahi · 2022-01-20 08:50
marcanpcores can go up to 3.2GHz
#asahi · 2022-01-20 08:50
marcanalso consider you're running at 2GHz right now, still need to rewrite the cpufreq patches
#asahi · 2022-01-20 08:50
marcanyeah

plus ›