From: Guenter Roeck <linux@roeck-us.net>
To: "Pali Rohár" <pali.rohar@gmail.com>,
"Steven Honeyman" <stevenhoneyman@gmail.com>
Cc: Paul Bolle <pebolle@tiscali.nl>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jean Delvare <jdelvare@suse.de>,
Valdis Kletnieks <Valdis.Kletnieks@vt.edu>,
Jochen Eisinger <jochen@penguin-breeder.org>,
Gabriele Mazzotta <gabriele.mzt@gmail.com>,
linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org
Subject: Re: [PATCH 2/2] hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k
Date: Sat, 28 Mar 2015 15:20:41 -0700 [thread overview]
Message-ID: <55172939.4070100@roeck-us.net> (raw)
In-Reply-To: <201503282300.48749@pali>
On 03/28/2015 03:00 PM, Pali Rohár wrote:
> On Saturday 28 March 2015 13:54:51 Steven Honeyman wrote:
>> On 28 March 2015 at 11:04, Paul Bolle <pebolle@tiscali.nl>
> wrote:
>>> On Sat, 2015-03-28 at 11:24 +0100, Pali Rohár wrote:
>>>> --- a/drivers/hwmon/Kconfig
>>>> +++ b/drivers/hwmon/Kconfig
>>>> @@ -1703,6 +1703,17 @@ config SENSORS_ULTRA45
>>>>
>>>> This driver provides support for the Ultra45
>>>> workstation environmental sensors.
>>>>
>>>> +config SENSORS_DELL_SMM
>>>> + tristate "Dell laptop SMM BIOS hwmon driver"
>>>> + depends ON X86
>>>
>>> How did this past your testing?
>>>
>>>> + ---help---
>>>> + This hwmon driver adds support for reporting
>>>> temperature of different + sensors and controls the
>>>> fans on Dell laptops via System Management + Mode
>>>> provided by Dell BIOS.
>>>> +
>>>> + When option I8K is also enabled this driver
>>>> provides legacy /proc/i8k + userspace interface for
>>>> i8kutils package.
>>>> +
>>
>> It's working OK for me (after fixing the mistake pointed out
>> above).
>>
>> [Latitude e6540]
>> -----
>> coretemp-isa-0000
>> Adapter: ISA adapter
>> Physical id 0: +53.0°C (high = +84.0°C, crit = +100.0°C)
>> Core 0: +51.0°C (high = +84.0°C, crit = +100.0°C)
>> Core 1: +53.0°C (high = +84.0°C, crit = +100.0°C)
>>
>> i8k-virtual-0
>> Adapter: Virtual device
>> Processor Fan: 3171 RPM
>> CPU: +52.0°C
>> Ambient: +46.0°C
>> SODIMM: +40.0°C
>> -----
>>
>> Ambient and SODIMM look swapped - but it's probably just
>> another Dell error. I really need to look at getting coreboot
>> on this thing.
>>
>
> Both patches do not change any code. So there should not be any
> type swapped with or without my patch.
>
> Cpu type is requested via SMM in same way as it is doing old DOS
> executable. So there can be maybe problem in DELL SMM handler too
> or maybe just I did not understand correctly assembler dump of
> DOS executable...
>
>> On 28 March 2015 at 10:24, Pali Rohár <pali.rohar@gmail.com>
>> wrote: ...
>>
>>> config I8K
>>>
>>> - tristate "Dell laptop support"
>>> - select HWMON
>>> + bool "Dell i8k legacy laptop support"
>>> + select SENSORS_DELL_SMM
>>
>> ...
>>
>>> +config SENSORS_DELL_SMM
>>> + tristate "Dell laptop SMM BIOS hwmon driver"
>>
>> The only change I'd suggest is not to change the tristate to
>> bool for I8K. Forcing that to bool means that
>> SENSORS_DELL_SMM can't be compiled as a module if the user
>> wishes to keep i8k hanging around "just in case". It'll
>> probably annoy distro kernel packagers too.
>>
>>
>> Thanks,
>> Steven
>
> My idea was:
>
> SENSORS_DELL_SMM enable/disable compilation of kernel driver
> (ether statically link into kernel image or as external module)
>
> CONFIG_I8K just enable /proc/i8k code in SENSORS_DELL_SMM -- no
> additional driver, just boolean switch which has effect only iff
> SENSORS_DELL_SMM is Y or M
>
Maybe that is the plan, but it is not what is happening.
I8K selects SENSORS_DELL_SMM, so a boolean I8K forces SENSORS_DELL_SMM
to be built into the kernel.
What you suggest would work if I8K would depend on SENSORS_DELL_SMM,
but then the symbols would not be backward-compatible.
Guenter
next prev parent reply other threads:[~2015-03-28 22:21 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 10:24 [PATCH 0/2] i8k.c => dell-smm-hwmon.c Pali Rohár
2015-03-28 10:24 ` [PATCH 1/2] hwmon: Rename i8k driver to dell-smm-hwmon and move it to hwmon tree Pali Rohár
2015-03-28 14:31 ` Guenter Roeck
2015-03-28 10:24 ` [PATCH 2/2] hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k Pali Rohár
2015-03-28 11:04 ` Paul Bolle
2015-03-28 12:54 ` Steven Honeyman
2015-03-28 14:13 ` Guenter Roeck
2015-03-28 22:00 ` Pali Rohár
2015-03-28 22:20 ` Guenter Roeck [this message]
2015-03-28 22:44 ` Paul Bolle
2015-03-29 0:55 ` Guenter Roeck
2015-03-30 8:01 ` Paul Bolle
2015-03-28 21:55 ` Pali Rohár
2015-03-28 22:06 ` Paul Bolle
2015-03-28 22:19 ` Steven Honeyman
2015-03-28 22:33 ` Pali Rohár
2015-03-30 7:44 ` Jean Delvare
2015-03-28 14:23 ` Guenter Roeck
2015-03-28 22:04 ` Pali Rohár
2015-03-29 12:57 ` [PATCH v2 0/2] i8k.c => dell-smm-hwmon.c Pali Rohár
2015-03-29 12:57 ` [PATCH v2 1/2] hwmon: Rename i8k driver to dell-smm-hwmon and move it to hwmon tree Pali Rohár
2015-03-29 12:57 ` [PATCH v2 2/2] hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k Pali Rohár
2015-04-28 12:38 ` Greg Kroah-Hartman
2015-04-29 11:41 ` [PATCH v3 1/2] hwmon: Rename i8k driver to dell-smm-hwmon and move it to hwmon tree Pali Rohár
2015-04-29 11:41 ` [PATCH v3 2/2] hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k Pali Rohár
2015-06-27 11:34 ` Gabriele Mazzotta
2015-06-27 12:47 ` Pali Rohár
2015-06-27 12:55 ` Gabriele Mazzotta
2015-06-27 13:01 ` Pali Rohár
2015-06-27 13:21 ` Gabriele Mazzotta
2015-04-29 12:07 ` [PATCH v3 1/2] hwmon: Rename i8k driver to dell-smm-hwmon and move it to hwmon tree Greg Kroah-Hartman
2015-03-31 3:32 ` [PATCH v2 0/2] i8k.c => dell-smm-hwmon.c Guenter Roeck
2015-03-31 13:56 ` Greg Kroah-Hartman
2015-04-09 14:02 ` Pali Rohár
2015-04-21 13:30 ` Pali Rohár
2015-04-21 13:40 ` Guenter Roeck
2015-04-21 13:52 ` Greg Kroah-Hartman
2015-04-21 15:24 ` Guenter Roeck
2015-04-21 15:30 ` Greg Kroah-Hartman
2015-04-27 18:39 ` Pali Rohár
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55172939.4070100@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Valdis.Kletnieks@vt.edu \
--cc=arnd@arndb.de \
--cc=gabriele.mzt@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jdelvare@suse.de \
--cc=jochen@penguin-breeder.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=pali.rohar@gmail.com \
--cc=pebolle@tiscali.nl \
--cc=stevenhoneyman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome