ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
jnn has joined #asahi-dev
elros has joined #asahi-dev
jn has quit [Ping timeout: 480 seconds]
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
chadmed_ has joined #asahi-dev
elros has joined #asahi-dev
<chadmed_>
j`ey: oooh per-core temperature sensors nice find
drubrkletern has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
drubrkletern has quit [Remote host closed the connection]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
gabuscus has quit []
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi-dev
<chadmed_>
Tamtrist: i should not be anyones hero i suck at everything literally everyone in here is more deserving of that status
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
tristan2_ has joined #asahi-dev
tristan2 has quit [Ping timeout: 480 seconds]
crabbedhaloablut has joined #asahi-dev
loki_val has joined #asahi-dev
crabbedhaloablut has quit [Read error: Connection reset by peer]
ellyq has quit [Read error: Connection reset by peer]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Quit: Konversation terminated!]
<sven>
aw, as expected swd doesn’t come up on the cd3217 without that resistor to gnd used for its internal oscillator. guess I have to a few more days for that thing to arrive :(
lewurm has joined #asahi-dev
elros has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
<chadmed>
j`ey: not sure those SMC keys are actually the cores. the key that's supposed to be p core 2 on t8112 is invalid on j415
<chadmed>
all the others look kinda like cores (low 40s celsius) but that dodgy one makes me sus on the others too
<j`ey>
:<
<j`ey>
the m1 ones might be correct?
<chadmed>
i dont have an m1 machine to test :c
<chadmed>
i can push the branch and someone else can if they want
<j`ey>
chadmed: what happened to your m1?
qyliss has quit [Quit: bye]
<chadmed>
never had one, i have a t6000, t6020 and t8112
<j`ey>
oh ok, I thought your laptop was an m1
<chadmed>
nah i got the 14" pro, more interesting speakers :)
<chadmed>
oh that smctemp thing is for t6000 anyway lol
<chadmed>
let me test it
qyliss has joined #asahi-dev
<j`ey>
now I'm confused, t6000 *is* M1?
<chadmed>
no t6000 is m1 pro, t8103 is m1
<chadmed>
but the code under // M1 has 8 pcores and 2 ecores, which is what m1 pro has
<chadmed>
so i might as well give it a shot
<j`ey>
ok right, I was using M1 to mean !M2, hence the confusion!
<chadmed>
ah gotcha, makes sense
SuperED has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
SuperED has quit []
elros has joined #asahi-dev
chadmed has joined #asahi-dev
<chadmed>
ok yeah same issue on m1 pro
<chadmed>
one of the keys is busted
<chadmed>
luckily this has revealed one of the myriad ways my driver sucks (still creates a pointer for keys that are invalid) so now i can fix that
<j`ey>
nice :)
loki_val has quit []
hightower2 has joined #asahi-dev
crabbedhaloablut has joined #asahi-dev
<kettenis>
chadmed: I can help with figuring some of this out on machines you don't have
<kettenis>
adding a key to my openbsd driver is really easy
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
<chadmed>
kettenis: oh excellent, thanks :)
<kettenis>
guess for the core ones the thing to do is to pin a cpu-intensive process to a particular core and see if the corresponding temp sensor changes?
<chadmed>
yeah that will work for the ones that are valid, but one of the keys in that program is invalid on both socs ive tested
chadmed has quit [Remote host closed the connection]
<kettenis>
hmm, my m1 mini doesn't enumerate any of the Tp0* keys
chadmed has joined #asahi-dev
<chadmed>
im only missing Tp0d
<chadmed>
apple create sane and standard firmware challenge (impossible challenge)
<chadmed>
oh no nvm on t6000 im also missing all the Tp0* keys
<kettenis>
m2 pro mini has the Tp0* keys
<chadmed>
yeah base m2 has them as well
<chadmed>
its only missing Tp0d
amarioguy has quit [Remote host closed the connection]
<chadmed>
pushed some fixes to wip/hwmon too
<chadmed>
the driver should gracefully handle invalid keys in the device tree now
eldriitch has joined #asahi-dev
ellyq has joined #asahi-dev
jeisom has quit [Quit: Leaving]
jeisom has joined #asahi-dev
lewurm has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
<sven>
Info : SWD DPIDR 0x0bc11477 \o/
<sven>
looks like it just needs any resistor to GND and doesn't quite care about the value
<sven>
let's see if i can dump the rom now
<maz>
it's usually just a weak pull-down. anything between 2 and 10k should do the trick. now let's find about this ROM... :D
VinDuv has quit [Ping timeout: 480 seconds]
<sven>
the connection seems to be rather unstable. the ti datasheets for the closest match claims it requires 15kohm with 1% tolerance. it's either that or a bad solder joint somewhere
<sven>
0.2% even
<PaulFertser>
Is that OpenOCD? Cool to see it working for that purpose :)
<PaulFertser>
Instability can be worked around by scripting probably.
<sven>
the instability is likely caused by that invalid resistor or by bad soldering, i don't think that can be worked around in software
<PaulFertser>
I mean if it's working at least somehow probably automating read attempts can get you all the data eventually.
<sven>
nope
<sven>
i can't even read a single byte, it doesn't get much further than trying to identify the cpu
<PaulFertser>
Are you probably able to "halt" it?
<sven>
no
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
cylm_ has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
elros has quit [Ping timeout: 480 seconds]
mps has quit [Quit: leaving]
elros has joined #asahi-dev
mps has joined #asahi-dev
lewurm has joined #asahi-dev
lewurm`` has joined #asahi-dev
lewurm has quit [Ping timeout: 480 seconds]
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
Adilpickles has joined #asahi-dev
ah- has quit [Remote host closed the connection]
ah- has joined #asahi-dev
Adilpickles has quit [Remote host closed the connection]
Adilpickles has joined #asahi-dev
Adilpickles has quit [Remote host closed the connection]
VinDuv has joined #asahi-dev
Adilpickles has joined #asahi-dev
Adilpick1es has joined #asahi-dev
Adilpickles has quit [Ping timeout: 480 seconds]
Adilpickles has joined #asahi-dev
Adilpick1es has quit [Ping timeout: 480 seconds]
Adilpick1es has joined #asahi-dev
Adilpickles has quit [Ping timeout: 480 seconds]
lena6 has joined #asahi-dev
<jannau>
chadmed: https://github.com/exelban/stats might be interesting as well, some/all sensors on M1 are apparently HID devices
<jannau>
unclear how that is supposed to work on non-laptops, afaik there's no hint of HID on desktop systems
Adilpickles has joined #asahi-dev
Adilpick1es has quit [Ping timeout: 480 seconds]
<ChaosPrincess>
jannau: aop has a hid endpoint, no?
Adilpick1es has joined #asahi-dev
Adilpick1es has quit [Remote host closed the connection]
Adilpickles has quit [Ping timeout: 480 seconds]
nicolas17 has joined #asahi-dev
crabbedhaloablut has quit []
balrog has quit [Quit: Bye]
balrog has joined #asahi-dev
yaboishady33 has joined #asahi-dev
darkapex3 has quit [Remote host closed the connection]
darkapex3 has joined #asahi-dev
yaboishady3 has quit [Ping timeout: 480 seconds]
VinDuv has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
VinDuv has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
eldriitch has quit [Quit: Leaving...]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
skipwich has quit [Ping timeout: 480 seconds]
skipwich has joined #asahi-dev
elros has joined #asahi-dev
Adilpickles has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
elros has joined #asahi-dev
elros has quit [Ping timeout: 480 seconds]
joske has joined #asahi-dev
<joske>
I wrote the sensor code for btop++ for macos (and free/openBSD). On apple silicon machines, you can't get the temperature via the SMC API, but you must use CoreFoundation