#
✕ nick:jannau
#asahi-dev · 2025-09-25 15:26
jannauchadmed: hwmom in that v2 doesn't compile for. gcc fails with "error: case label does not reduce to an integer constant" on 'case _SMC_KEY("flt ")'
#asahi-dev · 2025-09-25 15:20
jannauthat's already in https://lore.kernel.org/asahi/20250827-macsmc-subdevs-v2-0-ce5e99d54c28@gmail.com/ so please do not send it again
#asahi-dev · 2025-09-25 15:18
jannauruicon: what code? note that chadmed is currently upstreaming more of our smc subdevices and has already sent 2 versions
#asahi-dev · 2025-09-25 15:18
jannauchadmed: ^^^ probably not online right now
#asahi-dev · 2025-09-25 11:02
jannauI assume for higher fidelity wooden door creaking sound playback
#asahi-dev · 2025-09-25 11:02
jannausomeone ask how to get more than one sample per second from aop_las
#asahi-dev · 2025-09-23 09:29
jannauare we already reading float values from the ADT?
#asahi-dev · 2025-09-23 09:26
jannauI guess we could/should read them from the ADT
#asahi-dev · 2025-09-23 09:26
jannauat least gpu-ppm-kp and gpu-ppm-ki are in the ADT with appropriate values
#asahi-dev · 2025-09-23 09:24
jannauhmm, aren't those values from the ADT?
#asahi-dev · 2025-09-23 09:21
jannauadding studio specific HWCONFIG_T60x1 or fixing it up later?
#asahi-dev · 2025-09-23 09:17
jannauhttps://github.com/AsahiLinux/linux/blob/5ce014f7fa18021227bf46bd155b4ccf375a9dd3/arch/arm64/boot/dts/apple/t6021-j475c.dts#L118
#asahi-dev · 2025-09-23 09:17
jannausee https://github.com/AsahiLinux/linux/blob/5ce014f7fa18021227bf46bd155b4ccf375a9dd3/arch/arm64/boot/dts/apple/t6001-j375c.dts#L53
#asahi-dev · 2025-09-23 09:17
jannauchaos_princess: any good idea how to override t6001 and t6021 GPU settings in the mac studio?
#asahi-dev · 2025-09-22 21:44
jannauI was just fixing adt_is_compatible() to check all compatibles. that doesn't go well with dt_append_fuses() trying to read t8112 fuses
#asahi-dev · 2025-09-22 21:42
jannausigh: j474s as `compatible = [atc-phy,t6020, atc-phy,t8112]` in the ADT
#asahi-dev · 2025-09-22 16:36
jannauI think the reasoning is not more than "this is not a battery powered device so make the gpu a little faster"
#asahi-dev · 2025-09-22 16:05
jannauI think for j274 as well, DT has 3, it's missing in the ADT and the code uses 1 then
#asahi-dev · 2025-09-22 15:58
jannauhow do we want to deal with the mismatching base pstate? use "1" from the the adt or add a machine compatible override in initdata.rs?
#asahi-dev · 2025-09-22 15:52
jannauconfirmed, after devicing cs/afr volts by 1000 everything matches for m2 pro mac mini
#asahi-dev · 2025-09-22 15:19
jannauoff by factor 1000
#asahi-dev · 2025-09-22 15:03
jannau"8a 02 00 00" vs. "10 eb 09 00" so quite a bit different
#asahi-dev · 2025-09-22 13:32
jannaunext mismatch is "Hwdata B first mismatch: 4308", .aux_ps
#asahi-dev · 2025-09-22 13:31
jannauthat was because we override gpu-perf-base-pstate to 3 for the m2 pro mac mini
#asahi-dev · 2025-09-22 13:21
jannauit's rel_boost_freqs
#asahi-dev · 2025-09-22 13:18
jannauerr, if off course off because it increemnts the offset first
#asahi-dev · 2025-09-22 13:14
jannauthe mismatch is in .rel_max_powers
#asahi-dev · 2025-09-22 13:14
jannau`awk 'BEGIN {offset = 0}; /field/ {offset += $4; print offset, $3, $4}'` on the -Zprint-type-sizes output for the struct works
#asahi-dev · 2025-09-22 13:12
jannaum2 pro
#asahi-dev · 2025-09-22 13:09
jannauI guess it's parsing -Zprint-type-sizes output
#asahi-dev · 2025-09-22 12:48
jannaupahole doesn't work for the rust structs in m1n1
#asahi-dev · 2025-09-22 12:47
jannauI'm looking at m1n1 GPU init and have "Hwdata B first mismatch: 4056" for g14s
#asahi-dev · 2025-09-22 12:46
jannauchaos_princess: how do you determine the fields in the GPU initdata based on the offset?
#asahi-dev · 2025-09-21 20:21
jannaufound a couple of more places but changed those on linux side
#asahi-dev · 2025-09-21 19:59
jannauI think it's only https://github.com/AsahiLinux/linux/commit/4d047f2d271c0e413a0a19984c7dfec29153a0bd but I'm not sure
#asahi-dev · 2025-09-21 19:57
jannaukettenis: yes, fix is s/0/1/ at 3 places. I made the the same changes in the linux code. I also did a few cosmetic changes until I remembered that those increase the diff needlessly
#asahi-dev · 2025-09-21 16:57
jannaunot on that branch, no rust adt code in there
#asahi-dev · 2025-09-21 16:56
jannauI pulled the atc fuses changes as well under the assumption that running upstream linux is more likely on uefi-only
#asahi-dev · 2025-09-21 16:55
jannauI've created https://github.com/AsahiLinux/m1n1/tree/releases/1.5.1 for tagging m1n1 v1.5.1
#asahi-dev · 2025-09-21 15:15
jannaualso not really something to worry about for its use cases
#asahi-dev · 2025-09-21 15:15
jannautps6598x_check_mode() during resume might cause issues when *vdmtool races with suspend
#asahi-dev · 2025-09-21 14:52
jannauI've created https://github.com/AsahiLinux/tuxvdmtool/issues/1
#asahi-dev · 2025-09-21 14:49
jannauit exists at least since 2007 (`git log --follow` doesn't at that point)
#asahi-dev · 2025-09-21 14:45
jannauhttps://docs.kernel.org/i2c/dev-interface.html doesn't mention I2C_SLAVE_FORCE
#asahi-dev · 2025-09-21 14:30
jannauat this point it probably makes sense to integrate macvdmtool as separate backend as well
#asahi-dev · 2025-09-21 14:29
jannauI guess I'll port tuxvdmtool to i2c-client then
#asahi-dev · 2025-09-21 14:28
jannauit works in macvdmtool
#asahi-dev · 2025-09-21 14:28
jannauyes: I2C_SLAVE_FORCE ?* Use this slave address, even if it is already in use by a driver! */
#asahi-dev · 2025-09-21 14:20
jannauI'm not planning to upstream the sysfs interface
#asahi-dev · 2025-09-21 14:20
jannauI did not check the linux source

plus ›