2025-09-25
00:06zumi_ has joined #asahi-dev
00:10zumi has quit [Ping timeout: 480 seconds]
00:11zumi_ is now known as zumi
00:59lockbox_ has quit [Read error: Connection reset by peer]
01:00lockbox has joined #asahi-dev
02:10tobhe_ has joined #asahi-dev
02:17tobhe has quit [Ping timeout: 480 seconds]
02:56hexdump02 has joined #asahi-dev
02:58hexdump0815 has quit [Ping timeout: 480 seconds]
03:35nora_ has joined #asahi-dev
03:37nora has quit [Ping timeout: 480 seconds]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
05:32seb__ has quit [Quit: Konversation terminated!]
06:04zumi_ has joined #asahi-dev
06:08zumi has quit [Ping timeout: 480 seconds]
06:09zumi_ is now known as zumi
07:02ravikant_ has joined #asahi-dev
07:32snklp has joined #asahi-dev
08:25seb__ has joined #asahi-dev
09:27seb__ has quit [Ping timeout: 480 seconds]
09:35pb17 has quit [Ping timeout: 480 seconds]
09:37pb17 has joined #asahi-dev
09:39seb__ has joined #asahi-dev
09:47snklp has quit [Ping timeout: 480 seconds]
09:47seb_ has joined #asahi-dev
09:48seb__ has quit [Remote host closed the connection]
09:49seb_ has quit []
09:54seb_ has joined #asahi-dev
10:23coolshaurya has quit [Read error: Connection reset by peer]
10:23aleksrutins has quit [Read error: Connection reset by peer]
10:23coder_kalyan has quit [Read error: Connection reset by peer]
10:23jacksonchen666 has quit [Read error: Connection reset by peer]
10:23geep has quit [Read error: Connection reset by peer]
10:23coder_kalyan has joined #asahi-dev
10:23aleksrutins has joined #asahi-dev
10:23geep has joined #asahi-dev
10:23coolshaurya has joined #asahi-dev
10:23jacksonchen666 has joined #asahi-dev
10:23kyberkiwi has quit [Read error: Network is unreachable]
10:23kyberkiwi has joined #asahi-dev
10:23lederstr- has joined #asahi-dev
10:23nela2 has joined #asahi-dev
10:23nela has quit [Read error: Connection reset by peer]
10:23nela2 is now known as nela
10:23lederstrumpf has quit [Read error: Connection reset by peer]
10:23maettu1022 has joined #asahi-dev
10:24LarstiQ has quit [Quit: ZNC - http://znc.in]
10:24maettu102 has quit [Read error: Connection reset by peer]
10:24maettu1022 is now known as maettu102
10:25LarstiQ has joined #asahi-dev
10:39snklp has joined #asahi-dev
10:47ravikant_ has quit [Ping timeout: 480 seconds]
10:59ravikant_ has joined #asahi-dev
11:08chaos_princessunknown if such command exists
11:11snklp has quit [Ping timeout: 480 seconds]
11:12ravikant_ has quit [Ping timeout: 480 seconds]
11:15fossdd has quit [Ping timeout: 480 seconds]
11:24maettu1029 has joined #asahi-dev
11:24nela5 has joined #asahi-dev
11:24nela has quit [Read error: Connection reset by peer]
11:24nela5 is now known as nela
11:24fossdd has joined #asahi-dev
11:24maettu102 has quit [Read error: Connection reset by peer]
11:24maettu1029 is now known as maettu102
11:25LarstiQ has quit [Quit: ZNC - http://znc.in]
11:25LarstiQ has joined #asahi-dev
11:52opticron has quit [Remote host closed the connection]
11:53opticron has joined #asahi-dev
12:05zumi_ has joined #asahi-dev
12:07ravikant_ has joined #asahi-dev
12:09zumi has quit [Ping timeout: 480 seconds]
12:10zumi_ is now known as zumi
12:58cylm has joined #asahi-dev
13:08cylm_ has joined #asahi-dev
13:14cylm has quit [Ping timeout: 480 seconds]
13:33Halian has quit [Quit: I'll be back.]
13:59john-cabaj has joined #asahi-dev
14:28mripard has joined #asahi-dev
14:59cylm has joined #asahi-dev
15:01cylm_ has quit [Ping timeout: 480 seconds]
15:07CME has quit [Ping timeout: 480 seconds]
15:07cylm_ has joined #asahi-dev
15:09CME has joined #asahi-dev
15:09cylm has quit [Ping timeout: 480 seconds]
15:13ruicon has joined #asahi-dev
15:16ruiconIf you are James Calligeros, would you be okay with me using part of your code in my SMC implementation and upstreaming it, provided I give you proper credit?
15:18jannauruicon: what code? note that chadmed is currently upstreaming more of our smc subdevices and has already sent 2 versions
15:20jannauthat's already in https://lore.kernel.org/asahi/20250827-macsmc-subdevs-v2-0-ce5e99d54c28@gmail.com/ so please do not send it again
15:25fossdd has quit [Ping timeout: 480 seconds]
15:26jannauchadmed: 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 ")'
15:32fossdd has joined #asahi-dev
15:54mattia013 has quit [Remote host closed the connection]
15:56mattia013 has joined #asahi-dev
16:06ravikant_ has quit []
16:32verlio has joined #asahi-dev
16:35verlio has quit []
16:35verlio has joined #asahi-dev
16:35verlio has quit [Remote host closed the connection]
16:35verlio has joined #asahi-dev
16:38verlio has quit []
16:44rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:44Guest27106 has quit [Quit: Bridge terminating on SIGTERM]
16:46rhysmdnz has joined #asahi-dev
16:47Jamie has joined #asahi-dev
16:47Jamie is now known as Guest27650
17:04balrog has quit []
17:20okb has joined #asahi-dev
17:24roxfan2 has joined #asahi-dev
17:26balrog has joined #asahi-dev
17:27roxfan has quit [Ping timeout: 480 seconds]
18:03okb has quit [Ping timeout: 480 seconds]
18:04zumi_ has joined #asahi-dev
18:09zumi has quit [Ping timeout: 480 seconds]
18:09zumi_ is now known as zumi
18:15ruicon_ has joined #asahi-dev
18:16ruicon has quit [Remote host closed the connection]
18:18ruicon_uhm, would it be ok if i removed dt from macsmc-hwmon after it has been upstream (i am asking cuz i dont want to create 2 different dt entries for same thing, and if i just hardcoded the keys, it would be better)? if not can anyone please recommend any other meathod?
18:20jannauI don't see how you can hardcode the keys as they differ per model / soc (on apple silicon side)
18:22jannauplease reply now to the v2 hwmon driver patch that there is a use case for non-DT macsmc HW mon support
18:23jannauon apple silicon side DT is preferred because it means that we do not have to modify the driver when a new model arrives. just the DT which we have to add anyway
18:26ruicon_jannau: it wouldnt be too hard tbh, we already know fan keys and i already know that keys that start with 'I' are current keys, keys that start with 'P' are power keys, same for 'T' for temp and 'V' for voltage
18:28chaos_princessRight, but seeing "it is some temp sensor, which one? - you tell me", is not helpful
18:28chaos_princessi guess you can hardcode it in driver for x86 macs and match on smbios
18:28jannauyes, but it's not clear/constant what the individual keys are. you can't (shouldn't) just expose all because at least on apple silicon there are keys either reporting constant 0 or bogus values
18:31ruicon_so i can use compiler flags to differeniate x86 and arm, and use of on arm and hardcoding keys on x86?
18:44svenessentially yes, you need a mfd cell entry and it’s gonna probe the sub driver then no matter what
18:45svenso if it shares code with x86 hwmon just branch off that and select a hardcoded table instead of parsing from the DT
18:47Extern has joined #asahi-dev
18:50ruicon_so bascially check if has dt, if has use dt, if not use hardcoded table which i meationed above?
18:53ruicon_ has quit [Remote host closed the connection]
19:13jannauthe keys aren't fully though but in the case of hwmon that's delegated directly into the DT
19:15ketteniswell, some of the keys are universal, some of the keys depend on the firmware version, some of the keys are SoC-specific, some of the keys are machine-specific
19:19ruicon has joined #asahi-dev
19:21ruicon has quit [Remote host closed the connection]
19:22jannauis it possible that trhe sub drivers are probed before the smc driver set its driver data?
19:24jannauI'm seing this https://paste.debian.net/1398135/ and saw essentially the same with smc-hid before
19:45chadmedruicon_: unfortunately we cant really decouple hwmon from dt for the reasons mentioned without abusing dt compatibles and having a giant header file full of tables which is really gross
19:47jannauchadmed: it's the reason why I added the __SMC_KEY macro in the downstream driver. I think gcc had this issue always
19:59sveni e.g. have a dart as a subside of my tbt main node and that certainly doesn’t get probed automatically
20:00nickchan has quit [Quit: ZNC 1.9.1+deb2+b3 - https://znc.in]
20:00nickchan has joined #asahi-dev
20:04jannaualso afaik core isn't supposed to probe childrens before the their parent's probe finished
21:11chadmedi can only assume that the subsystem waaay back when was designed around some piece of hardware that only did voltage monitoring and so "in" was just the input
21:16Extern has quit [Ping timeout: 480 seconds]
22:10fugi has quit [Quit: bye]
22:11fugi has joined #asahi-dev
23:03rivendell has joined #asahi-dev
23:46mixi has quit [Ping timeout: 480 seconds]
23:56mixi has joined #asahi-dev