x86/Kconfig: move and modify CONFIG_I8K
Subsystems (2)
PATCH 1/2 x86/Kconfig: move and modify CONFIG_I8K
In Kconfig, inside the "Processor type and features" menu, there is the CONFIG_I8K option: "Dell i8k legacy laptop support". This is very confusing - enabling CONFIG_I8K is not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.
This option is misplaced, so move CONFIG_I8K to drivers/hwmon/Kconfig, where it belongs.
Also, modify the dependency order - change
select SENSORS_DELL_SMM
to
depends on SENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could select CONFIG_SENSORS_DELL_SMM=m .
When running "make oldconfig" on configurations with CONFIG_SENSORS_DELL_SMM enabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.
Next patch tweaks the description of CONFIG_I8K.
--- arch/x86/Kconfig | 17 ----------------- drivers/hwmon/Kconfig | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-)
arch/x86/Kconfig +0 -17
@@ -1275,23 +1275,6 @@ config TOSHIBA Say Y if you intend to run this kernel on a Toshiba portable. Say N otherwise. -config I8K - tristate "Dell i8k legacy laptop support" - depends on HWMON - depends on PROC_FS - select SENSORS_DELL_SMM - help - This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. - - Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. - Say N otherwise. - config X86_REBOOTFIXUPS bool "Enable X86 board specific fixups for reboot" depends on X86_32
drivers/hwmon/Kconfig +15 -0
@@ -505,6 +505,21 @@ config SENSORS_DELL_SMM When option I8K is also enabled this driver provides legacy /proc/i8k userspace interface for i8kutils package. +config I8K + bool "Dell i8k legacy laptop support" + depends on SENSORS_DELL_SMM + help + This option enables legacy /proc/i8k userspace interface in hwmon + dell-smm-hwmon driver. Character file /proc/i8k reports bios version, + temperature and allows controlling fan speeds of Dell laptops via + System Management Mode. For old Dell laptops (like Dell Inspiron 8000) + it reports also power and hotkey status. For fan speed control is + needed userspace package i8kutils. + + Say Y if you intend to run this kernel on old Dell laptops or want to + use userspace package i8kutils. + Say N otherwise. + config SENSORS_DA9052_ADC tristate "Dialog DA9052/DA9053 ADC" depends on PMIC_DA9052
Signature · 1 line
2.25.1
PATCH 2/2 dell-smm-hwmon: rewrite CONFIG_I8K description
It is not the laptops, but the /proc/i8k interface that is legacy. The old description was confusing, fix this.
I'm not a native English speaker, so I'd like that someone proofread this description.
--- drivers/hwmon/Kconfig | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-)
drivers/hwmon/Kconfig +8 -9
@@ -506,18 +506,17 @@ config SENSORS_DELL_SMM userspace interface for i8kutils package. config I8K - bool "Dell i8k legacy laptop support" + bool "Legacy /proc/i8k interface of Dell laptop SMM BIOS hwmon driver" depends on SENSORS_DELL_SMM help - This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. + This option enables the legacy /proc/i8k userspace interface of the + dell-smm-hwmon driver. The character file /proc/i8k exposes the BIOS + version, temperatures and allows control of fan speeds of some Dell + laptops. Sometimes, it reports also power and hotkey status. - Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. + This interface is required to run programs from the i8kutils package. + + Say Y if you intend to run userspace programs that use this interface. Say N otherwise. config SENSORS_DA9052_ADC
Signature · 1 line
2.25.1
Re: [PATCH 2/2] dell-smm-hwmon: rewrite CONFIG_I8K description
Hi--
Quoted 28 lines · Mateusz Jończyk
It is not the laptops, but the
/proc/i8kinterface that is legacy. The old description was confusing, fix this.I'm not a native English speaker, so I'd like that someone proofread this description.
Signed-off-by Mateusz Jończyk <[email protected]>Cc Pali Rohár <[email protected]>Cc Jean Delvare <[email protected]>Cc Guenter Roeck <[email protected]>Cc Hans de Goede <[email protected]>Cc Mark Gross <[email protected]>--- drivers/hwmon/Kconfig | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-)drivers/hwmon/Kconfig +1
-1@@ -506,18 +506,17 @@ config SENSORS_DELL_SMM userspace interface for i8kutils package. config I8K - bool "Dell i8k legacy laptop support" + bool "Legacy /proc/i8k interface of Dell laptop SMM BIOS hwmon driver" depends on SENSORS_DELL_SMM help
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 515
Quoted 10 lines
drivers/hwmon/Kconfig +4
-6- This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. + This option enables the legacy /proc/i8k userspace interface of the + dell-smm-hwmon driver. The character file /proc/i8k exposes the BIOS + version, temperatures and allows control of fan speeds of some Dell + laptops. Sometimes, it reports also power and hotkey status.
Comma not needed ^^^; "it also reports ..." would be more common.
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 522
Quoted 9 lines
drivers/hwmon/Kconfig +3
-2- Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. + This interface is required to run programs from the i8kutils package. + + Say Y if you intend to run userspace programs that use this interface. Say N otherwise. config SENSORS_DA9052_ADC
thanks.
Signature · 1 line
~Randy
Hi--
I like it. (I had a note to myself to do this also.)
Quoted 74 lines · Mateusz Jończyk
In
Kconfig, inside the "Processor type and features" menu, there is theCONFIG_I8Koption: "Dell i8k legacy laptop support". This is very confusing - enablingCONFIG_I8Kis not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.This option is misplaced, so move
CONFIG_I8Ktodrivers/hwmon/Kconfig, where it belongs.Also, modify the dependency order - change
selectSENSORS_DELL_SMM
to
depends onSENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could selectCONFIG_SENSORS_DELL_SMM=m.When running "make oldconfig" on configurations with
CONFIG_SENSORS_DELL_SMMenabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.Next patch tweaks the description of
CONFIG_I8K.Signed-off-by Mateusz Jończyk <[email protected]>Cc Pali Rohár <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Cc Jean Delvare <[email protected]>Cc Guenter Roeck <[email protected]>Cc Hans de Goede <[email protected]>Cc Mark Gross <[email protected]>--- arch/x86/Kconfig | 17 ----------------- drivers/hwmon/Kconfig | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-)arch/x86/Kconfig +0
-17@@ -1275,23 +1275,6 @@ config TOSHIBA Say Y if you intend to run this kernel on a Toshiba portable. Say N otherwise. -config I8K - tristate "Dell i8k legacy laptop support" - depends on HWMON - depends on PROC_FS - select SENSORS_DELL_SMM - help - This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. - - Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. - Say N otherwise. - config X86_REBOOTFIXUPS bool "Enable X86 board specific fixups for reboot" depends on X86_32drivers/hwmon/Kconfig +0
-0
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 513
Quoted 9 lines
drivers/hwmon/Kconfig +6
-0@@ -505,6 +505,21 @@ config SENSORS_DELL_SMM When option I8K is also enabled this driver provides legacy /proc/i8k userspace interface for i8kutils package. +config I8K + bool "Dell i8k legacy laptop support" + depends on SENSORS_DELL_SMM + help + This option enables legacy /proc/i8k userspace interface in hwmon + dell-smm-hwmon driver. Character file /proc/i8k reports bios version,
BIOS
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 517
Quoted 4 lines
drivers/hwmon/Kconfig +4
-0+ temperature and allows controlling fan speeds of Dell laptops via + System Management Mode. For old Dell laptops (like Dell Inspiron 8000) + it reports also power and hotkey status. For fan speed control is + needed userspace package i8kutils.
Last sentence above is awkward. How about:
it also reports power and hotkey status. For fan speed control, the i8kutils userspace package is needed.
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 525
Quoted 8 lines
drivers/hwmon/Kconfig +5
-0+ + Say Y if you intend to run this kernel on old Dell laptops or want to + use userspace package i8kutils. + Say N otherwise. + config SENSORS_DA9052_ADC tristate "Dialog DA9052/DA9053 ADC" depends on PMIC_DA9052
thanks.
Signature · 1 line
~Randy
Hi,
Quoted 26 lines · Mateusz Jończyk
In
Kconfig, inside the "Processor type and features" menu, there is theCONFIG_I8Koption: "Dell i8k legacy laptop support". This is very confusing - enablingCONFIG_I8Kis not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.This option is misplaced, so move
CONFIG_I8Ktodrivers/hwmon/Kconfig, where it belongs.Also, modify the dependency order - change
selectSENSORS_DELL_SMM
to
depends onSENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could selectCONFIG_SENSORS_DELL_SMM=m.When running "make oldconfig" on configurations with
CONFIG_SENSORS_DELL_SMMenabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.Next patch tweaks the description of
CONFIG_I8K.
Quoted 10 lines
Signed-off-by Mateusz Jończyk <[email protected]>Cc Pali Rohár <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Cc Jean Delvare <[email protected]>Cc Guenter Roeck <[email protected]>Cc Hans de Goede <[email protected]>Cc Mark Gross <[email protected]>
For other reviewers, the only consumer of the CONFIG_I8K option is drivers/hwmon/dell-smm-hwmon.c
which has a couple of:
"#if IS_ENABLED(CONFIG_I8K)" checks to enable its old legacy /proc/i8k interface.
So this move definitely makes sense.
I wonder if it would not be better to just completely drop the old /proc/i8k interface though ?
With that said, this series looks good to me, so:
for the series.
Regards,
Hans
Quoted 60 lines
--- arch/x86/Kconfig | 17 ----------------- drivers/hwmon/Kconfig | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-)arch/x86/Kconfig +0
-17@@ -1275,23 +1275,6 @@ config TOSHIBA Say Y if you intend to run this kernel on a Toshiba portable. Say N otherwise. -config I8K - tristate "Dell i8k legacy laptop support" - depends on HWMON - depends on PROC_FS - select SENSORS_DELL_SMM - help - This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. - - Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. - Say N otherwise. - config X86_REBOOTFIXUPS bool "Enable X86 board specific fixups for reboot" depends on X86_32drivers/hwmon/Kconfig +15
-0@@ -505,6 +505,21 @@ config SENSORS_DELL_SMM When option I8K is also enabled this driver provides legacy /proc/i8k userspace interface for i8kutils package. +config I8K + bool "Dell i8k legacy laptop support" + depends on SENSORS_DELL_SMM + help + This option enables legacy /proc/i8k userspace interface in hwmon + dell-smm-hwmon driver. Character file /proc/i8k reports bios version, + temperature and allows controlling fan speeds of Dell laptops via + System Management Mode. For old Dell laptops (like Dell Inspiron 8000) + it reports also power and hotkey status. For fan speed control is + needed userspace package i8kutils. + + Say Y if you intend to run this kernel on old Dell laptops or want to + use userspace package i8kutils. + Say N otherwise. + config SENSORS_DA9052_ADC tristate "Dialog DA9052/DA9053 ADC" depends on PMIC_DA9052
Quoted 7 lines · Hans de Goede
For other reviewers, the only consumer of the
CONFIG_I8Koption isdrivers/hwmon/dell-smm-hwmon.c
which has a couple of:
"#ifIS_ENABLED(CONFIG_I8K)" checks to enable its old legacy/proc/i8kinterface.So this move definitely makes sense.
I love patches removing code from arch/x86/ so for the move:
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteW dniu 07.02.2022 o 19:51, Hans de Goede pisze:
Quoted 36 lines
Hi,
Quoted 24 lines · Mateusz Jończyk
In
Kconfig, inside the "Processor type and features" menu, there is theCONFIG_I8Koption: "Dell i8k legacy laptop support". This is very confusing - enablingCONFIG_I8Kis not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.This option is misplaced, so move
CONFIG_I8Ktodrivers/hwmon/Kconfig, where it belongs.Also, modify the dependency order - change
selectSENSORS_DELL_SMM
to
depends onSENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could selectCONFIG_SENSORS_DELL_SMM=m.When running "make oldconfig" on configurations with
CONFIG_SENSORS_DELL_SMMenabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.Quoted 3 lines
Next patch tweaks the description of
CONFIG_I8K.[snip]
For other reviewers, the only consumer of the
CONFIG_I8Koption isdrivers/hwmon/dell-smm-hwmon.c
which has a couple of:
"#ifIS_ENABLED(CONFIG_I8K)" checks to enable its old legacy/proc/i8kinterface.
Quoted 4 lines
So this move definitely makes sense.
I wonder if it would not be better to just completely drop the old
/proc/i8kinterface though ?
No!!! I use it. The problem is that the laptop (2010-ish Dell Latitude E6500) has only three fan power levels: off, mild and full. So I think it is not well-suited to traditional fancontrol. On the other hand,
i8kmon (slightly modified), which is designed for a small number of fan power levels, works well.
Quoted 5 lines
With that said, this series looks good to me, so:
Reviewed-by Hans de Goede <[email protected]>for the series.
Thanks,
Mateusz
Quoted 5 lines
Regards,
Hans
Hi,
Quoted 39 lines · Mateusz Jończyk
W dniu 07.02.2022 o 19:51, Hans de Goede pisze:
Quoted 38 lines
Hi,
Quoted 24 lines · Mateusz Jończyk
In
Kconfig, inside the "Processor type and features" menu, there is theCONFIG_I8Koption: "Dell i8k legacy laptop support". This is very confusing - enablingCONFIG_I8Kis not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.This option is misplaced, so move
CONFIG_I8Ktodrivers/hwmon/Kconfig, where it belongs.Also, modify the dependency order - change
selectSENSORS_DELL_SMM
to
depends onSENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could selectCONFIG_SENSORS_DELL_SMM=m.When running "make oldconfig" on configurations with
CONFIG_SENSORS_DELL_SMMenabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.Quoted 3 lines
Next patch tweaks the description of
CONFIG_I8K.[snip]
For other reviewers, the only consumer of the
CONFIG_I8Koption isdrivers/hwmon/dell-smm-hwmon.c
which has a couple of:
"#ifIS_ENABLED(CONFIG_I8K)" checks to enable its old legacy/proc/i8kinterface.So this move definitely makes sense.
Quoted 8 lines
Quoted 2 lines
I wonder if it would not be better to just completely drop the old
/proc/i8kinterface though ?No!!! I use it. The problem is that the laptop (2010-ish Dell Latitude E6500) has only three fan power levels: off, mild and full. So I think it is not well-suited to traditional fancontrol. On the other hand,
i8kmon (slightly modified), which is designed for a small number of fan power levels, works well.
Ok, I was wondering if there would still be any users and usually the best way to find out is just remove something and revert the removal if it turns out there are still users...
But since you still use it the question if there are still users is answered now :)
Regards,
Hans
W dniu 07.02.2022 o 19:29, Mateusz Jończyk pisze:
Quoted 74 lines
In
Kconfig, inside the "Processor type and features" menu, there is theCONFIG_I8Koption: "Dell i8k legacy laptop support". This is very confusing - enablingCONFIG_I8Kis not required for the kernel to support old Dell laptops. This option is specific to the dell-smm-hwmon driver, which mostly exports some hardware monitoring information and allows the user to change fan speed.This option is misplaced, so move
CONFIG_I8Ktodrivers/hwmon/Kconfig, where it belongs.Also, modify the dependency order - change
selectSENSORS_DELL_SMM
to
depends onSENSORS_DELL_SMM
as it is just a configuration option of dell-smm-hwmon. This includes changing the option type from tristate to bool. It was tristate because it could selectCONFIG_SENSORS_DELL_SMM=m.When running "make oldconfig" on configurations with
CONFIG_SENSORS_DELL_SMMenabled , this change will result in an additional question (which could be printed several times during bisecting). I think that tidying up the configuration is worth it, though.Next patch tweaks the description of
CONFIG_I8K.Signed-off-by Mateusz Jończyk <[email protected]>Cc Pali Rohár <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Cc Jean Delvare <[email protected]>Cc Guenter Roeck <[email protected]>Cc Hans de Goede <[email protected]>Cc Mark Gross <[email protected]>--- arch/x86/Kconfig | 17 ----------------- drivers/hwmon/Kconfig | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-)arch/x86/Kconfig +0
-17@@ -1275,23 +1275,6 @@ config TOSHIBA Say Y if you intend to run this kernel on a Toshiba portable. Say N otherwise. -config I8K - tristate "Dell i8k legacy laptop support" - depends on HWMON - depends on PROC_FS - select SENSORS_DELL_SMM - help - This option enables legacy /proc/i8k userspace interface in hwmon - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, - temperature and allows controlling fan speeds of Dell laptops via - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) - it reports also power and hotkey status. For fan speed control is - needed userspace package i8kutils. - - Say Y if you intend to run this kernel on old Dell laptops or want to - use userspace package i8kutils. - Say N otherwise. - config X86_REBOOTFIXUPS bool "Enable X86 board specific fixups for reboot" depends on X86_32drivers/hwmon/Kconfig +0
-0
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 510
Quoted 6 lines
drivers/hwmon/Kconfig +3
-0@@ -505,6 +505,21 @@ config SENSORS_DELL_SMM When option I8K is also enabled this driver provides legacy /proc/i8k userspace interface for i8kutils package. +config I8K + bool "Dell i8k legacy laptop support" + depends on SENSORS_DELL_SMM
Oops, I dropped "depends on PROC_FS". Will fix this in next revision.
Quoted 5 lines
drivers/hwmon/Kconfig +5
-0+ help + This option enables legacy /proc/i8k userspace interface in hwmon + dell-smm-hwmon driver. Character file /proc/i8k reports bios version, + temperature and allows controlling fan speeds of Dell laptops via + System Management Mode. For old Dell laptops (like Dell Inspiron 8000)
drivers/hwmon/Kconfig config SENSORS_DELL_SMM · line 525
Quoted 10 lines
drivers/hwmon/Kconfig +7
-0+ it reports also power and hotkey status. For fan speed control is + needed userspace package i8kutils. + + Say Y if you intend to run this kernel on old Dell laptops or want to + use userspace package i8kutils. + Say N otherwise. + config SENSORS_DA9052_ADC tristate "Dialog DA9052/DA9053 ADC" depends on PMIC_DA9052
Greetings,
Mateusz