#
#asahi-dev · 2023-02-12 12:43
chadmeddoes smc work? i tried tracing it today but the machine hard rebooted trying to start the endpoint
#asahi-dev · 2023-02-12 12:43
kettenisthere are some incompatible changes there and this probably needs some deective work with macos running under the hypervisor
#asahi-dev · 2023-02-12 12:42
kettenisI got stuck on the pcie stuff
#asahi-dev · 2023-02-12 12:40
kettenisthe cpu frequencies/latencies in my tree are just copied from M2
#asahi-dev · 2023-02-12 12:39
kettenisthat's what I currently have
#asahi-dev · 2023-02-12 12:39
kettenishttps://github.com/AsahiLinux/u-boot/tree/t6020
#asahi-dev · 2023-02-12 12:29
kettenisspmi reads work it seems, but writes fail
#asahi-dev · 2023-02-12 12:28
kettenisI also added the smc and spmi stuff
#asahi-dev · 2023-02-12 12:28
kettenisthere are no longer lock-gate/power-gate references for ANS2 in the ADT, but it seems something is still needed
#asahi-dev · 2023-02-12 12:26
chadmedi just clicked add file at the bottom of the new gist page then copy-pasted the contexts of each file in manually :P
#asahi-dev · 2023-02-12 12:26
kettenisif only I knew how to create a gost from a bunch of files like you did...
#asahi-dev · 2023-02-12 12:25
kettenisyeah, not 100% sure about the pmgr stuff, but I can use the nvme in OpenBSD
#asahi-dev · 2023-02-12 12:24
chadmedi couldnt wrap my head around pmgr or gpio
#asahi-dev · 2023-02-12 12:24
chadmedoh nice!
#asahi-dev · 2023-02-12 12:24
kettenischadmed: I have device trees with a bit more stuff in them
#asahi-dev · 2023-02-12 11:11
jeffmiwchamed: the keys I have in my patch are more for testing the DT format/logic than representative values
#asahi-dev · 2023-02-12 07:00
chadmednot too sure on the nvme nodes but everything else gets picked up correctly and works
#asahi-dev · 2023-02-12 06:58
chadmedhere is juuuust enough devicetree to get to a console in the hypervisor
#asahi-dev · 2023-02-12 06:58
chadmedhttps://gist.github.com/chadmed/cb7e75606ed041cd0a1b52e5fd8f3a6f
#asahi-dev · 2023-02-12 04:44
chadmed[ 0.000000] Machine model: Apple Mac Mini (M2 Pro, 2023)
#asahi-dev · 2023-02-12 04:44
chadmed[ 0.000000] random: crng init done
#asahi-dev · 2023-02-12 04:43
chadmed[ 0.000000] Linux version 6.2.0-rc3-asahi (root@usagi) (clang version 15.0.7, LLD 15.0.7) #10 SMP PREEMPT_DYNAMIC Sun Feb 12 14:30:40 AEST 2023
#asahi-dev · 2023-02-12 01:00
chadmedso thats nice
#asahi-dev · 2023-02-12 01:00
chadmedquick perusal of the adt seems to suggest a whole bunch of stuff is just copy-pasted from t6000 with the addresses moved around
#asahi-dev · 2023-02-12 00:56
chadmedhttps://gist.github.com/chadmed/2101227831c0af272bcfcdb8326a57ea buenos dias t6020
#asahi-dev · 2023-02-11 22:42
chadmedalso aiui nonstandard bindings should be prefixed with the vendor, so like apple,pwr-keys not just pwr-keys
#asahi-dev · 2023-02-11 22:27
chadmedjeffmiw: i would maybe look at using a compatible like "apple,t8103-hwmon" or something just in case things need to change between socs
#asahi-dev · 2023-02-11 22:26
chadmedi need a coffee...
#asahi-dev · 2023-02-11 22:25
chadmedoh yeah nvm, i was playing around with different keys and not changing the label
#asahi-dev · 2023-02-11 22:19
jannau[645234.462464] macsmc-power macsmc-power: In 63.589W Sys 16.781W 3V8 7.851W MPMU 1.507W SPMU 3.331W CLVR 6.099W CPU 9.922W Batt 42.482W 85% Tfull 47m
#asahi-dev · 2023-02-11 22:17
chadmedat least it does on j314
#asahi-dev · 2023-02-11 22:16
chadmed"power draw" actually
#asahi-dev · 2023-02-11 22:16
chadmedPSTR counts charging as
#asahi-dev · 2023-02-11 22:12
jannauisn't PSTR that? see https://github.com/AsahiLinux/linux/commit/8176397c3effd46c61da0747583379a3413ca09a
#asahi-dev · 2023-02-11 22:07
chadmedit would be nice if there was a key that did not count battery charging as system power draw
#asahi-dev · 2023-02-11 22:06
chadmedfwiw im pretty sure PSTR is total platform power draw
#asahi-dev · 2023-02-11 22:06
chadmedjeffmiw: thats pretty great
#asahi-dev · 2023-02-11 17:56
jeffmiwchamed: let me know if the dt format is close to what you had in mind
#asahi-dev · 2023-02-11 17:55
jeffmiwhere is new version of the hwmon driver with smc key support, now with keys and label in the dt. https://github.com/jfbortolotti/linux/commit/dac5c2b060d3201ee3de26da64a0c2ba3c36dca1 . feedback welcome :)
#asahi-dev · 2023-02-11 10:19
jannauno, dcp iboot still works on the m1 mini with my wip branch
#asahi-dev · 2023-02-11 09:37
jannauI haven't yet checked if my WIP tree works on the m1 mini with the 13.2 fw. I might broke the iboot interface
#asahi-dev · 2023-02-11 09:34
marcanthe iboot interface is a bit special, but iboot itself also uses AFK/EPIC
#asahi-dev · 2023-02-11 09:33
jannaumacos 13.2 uses afk/epic version 4 instead of 3 and I switched m1n1's implmentation to that. I haven't verified if that require changes in the dcp iboot interface
#asahi-dev · 2023-02-11 09:29
marcanbut yeah
#asahi-dev · 2023-02-11 09:29
marcanI'm still hoping it works because iBoot needs enough to bring up DP on the laptops still, and the dp2hdmi stuff is controlled via EPIC and not dcpep as far as I know
#asahi-dev · 2023-02-11 09:29
jannauI haven't given up on m1n1 hdmi display out completely but it seems more productive to verify first what's necessary to make it work
#asahi-dev · 2023-02-11 09:28
marcanugh.
#asahi-dev · 2023-02-11 09:25
chadmed(at some point)
#asahi-dev · 2023-02-11 09:25
chadmedor rather we will need to bring up dcp in m1n1
#asahi-dev · 2023-02-11 09:25
chadmedah so you reckon we've just lost m1n1 display out entirely on these machines? that's a bit annoying

plus ›