From: Darren Hart <dvhart@linux.intel.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] hwmon: (adm1021) Clarify documentation regarding
Date: Sat, 09 Apr 2011 23:15:45 +0000 [thread overview]
Message-ID: <4DA0E8A1.2070000@linux.intel.com> (raw)
In-Reply-To: <20110409183156.215fa01e@endymion.delvare>
On 04/09/2011 01:39 PM, Guenter Roeck wrote:
> On Sat, Apr 09, 2011 at 12:31:56PM -0400, Jean Delvare wrote:
>> Recent Xeon processor thermal sensors are supported by the coretemp
>> driver and not the adm1021 driver. Only one old generation of Xeon
>> processors (the first Netburst ones) are supported by the adm1021
>> driver.
In addition to changing the kernel config help, is there a way to avoid
loading this driver for non netburst type CPUs? Someway to blacklist
later CPUs from using this driver? Seems this would make sensors-detect
and such behave better.
Thanks,
Darren
>>
>> Reported-by: Darren Hart <dvhart@linux.intel.com>
>> Signed-off-by: Jean Delvare <khali@linux-fr.org>
>
> Nitpick below, otherwise
>
> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
>
>> ---
>> Documentation/hwmon/adm1021 | 36 +++++++++++++++++++-----------------
>> drivers/hwmon/Kconfig | 3 +--
>> 2 files changed, 20 insertions(+), 19 deletions(-)
>>
>> --- linux-2.6.39-rc2.orig/Documentation/hwmon/adm1021 2010-08-02 00:11:14.000000000 +0200
>> +++ linux-2.6.39-rc2/Documentation/hwmon/adm1021 2011-04-08 10:11:13.000000000 +0200
>> @@ -14,10 +14,6 @@ Supported chips:
>> Prefix: 'gl523sm'
>> Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
>> Datasheet:
>> - * Intel Xeon Processor
>> - Prefix: - any other - may require 'force_adm1021' parameter
>> - Addresses scanned: none
>> - Datasheet: Publicly available at Intel website
>> * Maxim MAX1617
>> Prefix: 'max1617'
>> Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
>> @@ -91,21 +87,27 @@ will do no harm, but will return 'old' v
>> ADM1021-clones do faster measurements, but there is really no good reason
>> for that.
>>
>> -Xeon support
>> -------------
>>
>> -Some Xeon processors have real max1617, adm1021, or compatible chips
>> -within them, with two temperature sensors.
>> +Netburst-based Xeon support
>> +---------------------------
>>
>> -Other Xeons have chips with only one sensor.
>> +Some Xeon processors based on the Netburst (early Pentium 4, from 2001 to
>> +2003) microarchitecture had real MAX1617, ADM1021, or compatible chips
>> +within them, with two temperature sensors. Other Xeon processors of this
>> +era (with 400 MHz FSB) had chips with only one temperature sensor.
>>
>> -If you have a Xeon, and the adm1021 module loads, and both temperatures
>> -appear valid, then things are good.
>> +If you have such an old Xeon, and you get two valid temperatures when
>> +loading the adm1021 module, then things are good.
>>
>> -If the adm1021 module doesn't load, you should try this:
>> - modprobe adm1021 force_adm1021=BUS,ADDRESS
>> - ADDRESS can only be 0x18, 0x1a, 0x29, 0x2b, 0x4c, or 0x4e.
>> +If nothing happens when loading the adm1021 module, are you are certain
>
> are you are -> and you are
>
>> +that your specific Xeon processor model includes compatible sensors, you
>> +will have to explicitly instantiate the sensor chips from user-space. See
>> +method 4 in Documentation/i2c/instantiating-devices. Possible slave
>> +addresses are 0x18, 0x1a, 0x29, 0x2b, 0x4c, or 0x4e. It is likely that
>> +only temp2 will be correct and temp1 will have to be ignored.
>>
>> -If you have dual Xeons you may have appear to have two separate
>> -adm1021-compatible chips, or two single-temperature sensors, at distinct
>> -addresses.
>> +Previous generations of the Xeon processor (based on Pentium II/III)
>> +didn't have these sensors. Next generations of Xeon processors (533 MHz
>> +FSB and faster) lost them, until the Core-based generation which
>> +introduced integrated digital thermal sensors. These are supported by
>> +the coretemp driver.
>> --- linux-2.6.39-rc2.orig/drivers/hwmon/Kconfig 2011-04-07 18:51:51.000000000 +0200
>> +++ linux-2.6.39-rc2/drivers/hwmon/Kconfig 2011-04-08 09:36:50.000000000 +0200
>> @@ -110,8 +110,7 @@ config SENSORS_ADM1021
>> help
>> If you say yes here you get support for Analog Devices ADM1021
>> and ADM1023 sensor chips and clones: Maxim MAX1617 and MAX1617A,
>> - Genesys Logic GL523SM, National Semiconductor LM84, TI THMC10,
>> - and the XEON processor built-in sensor.
>> + Genesys Logic GL523SM, National Semiconductor LM84 and TI THMC10.
>>
>> This driver can also be built as a module. If so, the module
>> will be called adm1021.
>>
>>
>> --
>> Jean Delvare
>>
>> _______________________________________________
>> lm-sensors mailing list
>> lm-sensors@lm-sensors.org
>> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2011-04-09 23:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-09 16:31 [lm-sensors] hwmon: (adm1021) Clarify documentation regarding Xeon Jean Delvare
2011-04-09 20:39 ` [lm-sensors] hwmon: (adm1021) Clarify documentation regarding Guenter Roeck
2011-04-09 21:29 ` Jean Delvare
2011-04-09 23:15 ` Darren Hart [this message]
2011-04-10 7:08 ` Jean Delvare
2011-04-15 4:57 ` Darren Hart
2011-04-15 7:32 ` Jean Delvare
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=4DA0E8A1.2070000@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=lm-sensors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.