* Re: [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys
[not found] ` <20261029085504.3547-15-atharvatiwarilinuxdev@gmail.com>
@ 2026-10-29 9:22 ` Sasha Finkelstein
2026-10-29 14:39 ` Atharva Tiwari
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Finkelstein @ 2026-10-29 9:22 UTC (permalink / raw)
To: Atharva Tiwari
Cc: Bjorn Helgaas, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, H. Peter Anvin, Rafael J. Wysocki, Len Brown,
Linus Walleij, Bartosz Golaszewski, Sven Peter, Janne Grunau,
Neal Gompa, Guenter Roeck, Jonathan Cameron, David Lechner,
Nuno Sá, Andy Shevchenko, Lee Jones, Pavel Machek,
Griffin Kroah-Hartman, Hans de Goede, Ilpo Järvinen,
Sebastian Reichel, Alexandre Belloni, Wim Van Sebroeck,
Jarkko Sakkinen, Mimi Zohar, Roberto Sassu, Dmitry Kasatkin,
Eric Snowberg, Paul Moore, James Morris, Serge E. Hallyn,
linux-kernel, linux-pci, linux-acpi, linux-gpio, asahi,
linux-arm-kernel, linux-hwmon, mfd, platform-driver-x86, linux-pm,
linux-rtc, linux-watchdog
On Oct 29, 2026, at 09:52, Atharva Tiwari <atharvatiwarilinuxdev@gmail.com> wrote:
>
> Add a /dev/smc device so userspace can talk to the SMC
> directly.
This should either be dropped from the series, or be hidden behind a
`melt_my_mac`-style module flag, or switched to a whitelist approach.
We do not know what keys will be introduced in new smc firmware
versions, and there are already keys that should not be randomly poked
at.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys
2026-10-29 9:22 ` [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys Sasha Finkelstein
@ 2026-10-29 14:39 ` Atharva Tiwari
2026-10-29 14:53 ` Sasha Finkelstein
0 siblings, 1 reply; 4+ messages in thread
From: Atharva Tiwari @ 2026-10-29 14:39 UTC (permalink / raw)
To: k
Cc: alexandre.belloni, andy, asahi, atharvatiwarilinuxdev, bhelgaas,
bp, brgl, dave.hansen, dlechner, dmitry.kasatkin, eric.snowberg,
griffin, hansg, hpa, ilpo.jarvinen, j, jarkko, jic23, jmorris,
lee, lenb, linusw, linux-acpi, linux-arm-kernel, linux-gpio,
linux-hwmon, linux-kernel, linux-pci, linux-pm, linux-rtc,
linux-watchdog, linux, mfd, mingo, neal, nuno.sa, paul, pavel,
platform-driver-x86, rafael, roberto.sassu, serge, sre, sven,
tglx, wim, x86, zohar
> This should either be dropped from the series, or be hidden behind a
> `melt_my_mac`-style module flag, or switched to a whitelist approach.
> We do not know what keys will be introduced in new smc firmware
> versions, and there are already keys that should not be randomly poked
> at.
1. The patch is required, atleast on intel macs, as without writing GPU and CPU
states to smc, the system gives PROCHOT signal under small load
, and heats up a lot.
2. the smc dosent expose keys of nature that can physically damage the system
it only exposes power/volt data, and the most you can poke is reboot
keys and gpu/cpu p-states.
3. If a person is randomly touching keys, Its their problem and not ours.
4. There are a lot of things that can mess the system way more and permanently
than smc (undervolting for example), but they are not safe guarded, why
should this be then?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys
2026-10-29 14:39 ` Atharva Tiwari
@ 2026-10-29 14:53 ` Sasha Finkelstein
2026-10-29 15:25 ` Aditya Garg
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Finkelstein @ 2026-10-29 14:53 UTC (permalink / raw)
To: Atharva Tiwari
Cc: alexandre.belloni, andy, asahi, bhelgaas, bp, brgl, dave.hansen,
dlechner, dmitry.kasatkin, eric.snowberg, griffin, hansg, hpa,
ilpo.jarvinen, j, jarkko, jic23, jmorris, lee, lenb, linusw,
linux-acpi, linux-arm-kernel, linux-gpio, linux-hwmon,
linux-kernel, linux-pci, linux-pm, linux-rtc, linux-watchdog,
linux, mfd, mingo, neal, nuno.sa, paul, pavel,
platform-driver-x86, rafael, roberto.sassu, serge, sre, sven,
tglx, wim, x86, zohar
On Oct 29, 2026, at 15:39, Atharva Tiwari <atharvatiwarilinuxdev@gmail.com> wrote:
> 1. The patch is required, atleast on intel macs, as without writing GPU and CPU
> states to smc, the system gives PROCHOT signal under small load
> , and heats up a lot.
In that case, why are you exposing a generic smc key interface instead
of one that just does that? If you think that this data should be set
from userspace - whitelist the set of keys that are needed.
> 2. the smc dosent expose keys of nature that can physically damage the system
> it only exposes power/volt data, and the most you can poke is reboot
> keys and gpu/cpu p-states.
Are you willing to make that claim for every smc-equipped device, not
just T2? Are you willing to make the same claim for future versions of
smc firmware?
> 3. If a person is randomly touching keys, Its their problem and not ours.
>
> 4. There are a lot of things that can mess the system way more and permanently
> than smc (undervolting for example), but they are not safe guarded, why
> should this be then?
I think it is inadvisable to leave a loaded footgun around and then
blame the user for using it. As an "OS Vendor" you have a duty of care
to your users.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys
2026-10-29 14:53 ` Sasha Finkelstein
@ 2026-10-29 15:25 ` Aditya Garg
0 siblings, 0 replies; 4+ messages in thread
From: Aditya Garg @ 2026-10-29 15:25 UTC (permalink / raw)
To: Sasha Finkelstein, Atharva Tiwari
Cc: alexandre.belloni, andy, asahi, bhelgaas, bp, brgl, dave.hansen,
dlechner, dmitry.kasatkin, eric.snowberg, griffin, hansg, hpa,
ilpo.jarvinen, j, jarkko, jic23, jmorris, lee, lenb, linusw,
linux-acpi, linux-arm-kernel, linux-gpio, linux-hwmon,
linux-kernel, linux-pci, linux-pm, linux-rtc, linux-watchdog,
linux, mfd, mingo, neal, nuno.sa, paul, pavel,
platform-driver-x86, rafael, roberto.sassu, serge, sre, sven,
tglx, wim, x86, zohar
On 10/29/26 8:23 PM, Sasha Finkelstein wrote:
> On Oct 29, 2026, at 15:39, Atharva Tiwari <atharvatiwarilinuxdev@gmail.com> wrote:
>> 1. The patch is required, atleast on intel macs, as without writing GPU and CPU
>> states to smc, the system gives PROCHOT signal under small load
>> , and heats up a lot.
>
> In that case, why are you exposing a generic smc key interface instead
> of one that just does that? If you think that this data should be set
> from userspace - whitelist the set of keys that are needed.
>
Whitelisting will create an endless cycle of upstreaming new keys. But
considering T2 no longer is receiving updates, Asahi would be happy to
send their keys they wish to be whitelisted right ;)>
>> 2. the smc dosent expose keys of nature that can physically damage the system
>> it only exposes power/volt data, and the most you can poke is reboot
>> keys and gpu/cpu p-states.
>
> Are you willing to make that claim for every smc-equipped device, not
> just T2? Are you willing to make the same claim for future versions of
> smc firmware?
Fair enough. We can restrict it to T2 Macs, and Asahi can later adopt if
useful?>
>> 3. If a person is randomly touching keys, Its their problem and not ours.
>>
>> 4. There are a lot of things that can mess the system way more and permanently
>> than smc (undervolting for example), but they are not safe guarded, why
>> should this be then?
>
> I think it is inadvisable to leave a loaded footgun around and then
> blame the user for using it. As an "OS Vendor" you have a duty of care
> to your users.
It would say the "duty of care" argument is more of a philosophical
thing than a technical argument here. Still, I respect that but there
needs to be a balance between adding features and respecting the duty.
It seems various vendors have different views in determining the
balance. The above 2 arguments look like a good balance. What do you think?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-29 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261029085504.3547-1-atharvatiwarilinuxdev@gmail.com>
[not found] ` <20261029085504.3547-15-atharvatiwarilinuxdev@gmail.com>
2026-10-29 9:22 ` [RFC PATCH 14/14] mfd/macsmc: add ioctl to access smc keys Sasha Finkelstein
2026-10-29 14:39 ` Atharva Tiwari
2026-10-29 14:53 ` Sasha Finkelstein
2026-10-29 15:25 ` Aditya Garg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox