Sensor support for IBM PC300PL
Hello!
If possible, I'd like to ask a follow-up question to Jean Delvare's reply dated (Wed, 8 Sep 2004 11:01:00 +0100) with the subject "Re: Sensor support
for IBM PC300GL".
I have a number of IBM 300PL's currently running SuSE 9.0 (2.4.21) on which
I'd dearly love to use lmsensors. If I understand Jean's reply correctly, the recommendation is to obtain the latest lmsensors/i2c (v2.8.8), remove the two traps for IBM hardware, compile & install the packages.
Then, it sounds like lmsensors will either work, or not... in the latter case possibly causing damage to the notorious Atmel eeprom.
My questions:
(1) Is this a correct synopsis of Jean's instructions?
(2) Will the absense or presence of the Atmel issue be completely obvious? In other words, is there any possibility of lmsensors appearing to work, while actually malfunctioning in some manner?
(3) My understanding is that the new I2C subsystem is required on a v2.4.21
kernel. Once this new I2C subsystem is installed, however, I'm gathering that there is a possibility that other applications which require the old I2C subsystem may break. Is that correct?
Once I am clear on these points, my intent is to attempt this test and I would be happy to report back to the list if it would be of any use.
I very much appreciate your time, and any insight or advice you can offer.
Hannes.
--<*>--
For reference, this is the previous email to which I am referring:
Quoted 24 lines
* To: "Jim Deij" <jim@xxxxxxxxxxxx>
* Subject: Re: Sensor support for IBM PC300GL
* From: "Jean Delvare" <khali@xxxxxxxxxxxx>
* Date: Wed, 8 Sep 2004 11:01:00 +0100
* Cc: sensors@xxxxxxxxxxxxxxxxxxxx
* In-reply-to: <[email protected]>
* Message-id: <[email protected]>
* References: <[email protected]>
* Reply-to: sensors@xxxxxxxxxxxxxxxxxxxxOn Tue, 7 Sep 2004 21:57:09 +0200, Jim Deij wrote
Quoted 11 lines
I have an IBM PC300GL (6275-500) machine running with Debian unstable (kernel 2.4.26-1-686). I installed your sensor package via apt, but whenever I start the sensors-detect script it tells me:
[code]
System vendor: IBM
BIOS version: PDKT31AUS
Sorry, we won't let you go on. IBM systems are known to have serious problems withlm_sensors, resulting in hardware failures. For more information, see README.thinkpad or
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/README.thinkpad.
[/code]
Quoted 3 lines
True, we have a detection mechanism in sensors-detect.
Quoted 1 line
I see in the release files on your site that you are working on the
IBM
Quoted 1 line
Quoted 1 line
problem, but is there any possibility for you to add in the support
for my
Quoted 1 line
Quoted 1 line
PC300GL machine? This motherboard is (as far as I know) also used in
old
Quoted 1 line
Quoted 1 line
Netfinity 3000 systems, although they had different BIOS'es. So that
would
Quoted 4 lines
Quoted 1 line
help users with those systems aswell.
True, I am working on this for quite some time now. The plan is to transparently workaround the Thinkpad issue (which really is an Atmel
AT24RF08
Quoted 1 line
issue) in the userspace tools (already done) and the 2.6 kernel drivers
(not
Quoted 1 line
done yet). We do *not* plan to do it on the 2.4 kernel drivers because
mixing
Quoted 1 line
an old i2c subsystem with new
lm_sensorsdrivers would then be more
dangerous
Quoted 1 line
than ever (there is no such problem with 2.6 because all drivers are
part of
Quoted 1 line
the main tree so we know for sure that versions won't be mixed. Anyway,
you
Quoted 1 line
can still do the change manually on your 2.4 kernel if you don't want to
move
Quoted 3 lines
to 2.6.
I'm somewhat busy with real life these days, but still I'd like to help
you to
Quoted 1 line
get
lm_sensorsworking on your system. We only had one person trying
this
Quoted 1 line
before (on a PC300PL). If it works for you as well I'll be able to go on
with
Quoted 1 line
removing the detection in sensors-detect and updating the 2.6 kernel
drivers.
Quoted 2 lines
First step is to make sure that you are using
lm_sensors2.8.7 or CVS.
Do NOT
Quoted 1 line
use any earlier version since the hack suggested below would most likely
BREAK
Quoted 1 line
your system. 2.8.7 is the first version including my changes that
supposedly
Quoted 1 line
safely works around the problem. The IBM detection was left in place
just to
Quoted 1 line
make sure the new method had no side effect. I guess it doesn't have any
since
Quoted 3 lines
we had no complaint so far.
Let me insist. DO NOT DO THE FOLLOWING IF YOUR ARE USING AN
LM_SENSORS
VERSION
Quoted 4 lines
EARLIER THAN 2.8.7.
Once you know for sure you are using at least
lm_sensors2.8.7, you can manually disable the IBM check in sensors-detect. Add "return 1;" as the
first
Quoted 1 line
line of sub
safe_system_vendorand you should be done. Then run
sensors-detect
Quoted 1 line
and report the full result. We'll see what your system holds and what
can be
Quoted 3 lines
done with it.
If you confirm that your system reboots fine after doing all this, then
this
Quoted 1 line
means that my changes really work as intended and I'll plain drop the
IBM
Quoted 7 lines
detection from the sensors-detect script. It already lasted too long.
Thanks.
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
Quoted 6 lines
I have a number of IBM 300PL's currently running SuSE 9.0 (2.4.21) on which I'd dearly love to use lmsensors. If I understand Jean's reply correctly, the recommendation is to obtain the latest msensors/i2c (v2.8.8), remove the two traps for IBM hardware, compile & install the packages.
You can alternatively pick lm_sensors CVS, in which I already removed the IBM detection code from sensors-detect, so this is one less change left to you. The IBM detection code in te i2c-piix4 driver is still there though, and will never be removed.
Note that the whole thing should be completely cleaned in the 2.6 kernel in some time though. I'm too busy with other things these days but I definitely plan to do the required changes there so that no corruption can ever happen and no additional constraint is left for the user. I can't tell when this will happen though.
Quoted 6 lines
Then, it sounds like lmsensors will either work, or not... in the latter case possibly causing damage to the notorious Atmel eeprom.
My questions:
(1) Is this a correct synopsis of Jean's instructions?
Yes it is.
Quoted 3 lines
(2) Will the absense or presence of the Atmel issue be completely obvious? In other words, is there any possibility of lmsensors appearing to work, while actually malfunctioning in some manner?
The Atmel EEPROM appears at addresses 0x54-0x57 and 0x5C on the SMBus. If nothing shows there, there is no EEPROM. i2cdetect in lm_sensors 2.8.7 and later are supposedly safe to use even with broken Atmel EEPROMs on the bus.
EEPROM corruption will result in the system not even booting, so you would notice that. It will not prevent lm_sensors from working though (that it, not until the next boot ;)). There is no unnoticeable effect with long run effects as far as we know.
At any rate, do NOT load the eeprom or ddcmon modules on your IBM systems, EVER. This is the only potential corruption cause left in lm_sensors 2.8.7+ as far as I can see.
Quoted 5 lines
(3) My understanding is that the new I2C subsystem is required on a v2.4.21
kernel. Once this new I2C subsystem is installed, however, I'm gathering that there is a possibility that other applications which require the old I2C subsystem may break. Is that correct?
True, except that we have an extended i2c patch here:
http://khali.linux-fr.org/devel/i2c/
which supposedly addresses the issue.
As a side note, I am currently working on reverting our i2c stack to the old model so as to bring compatibility back without any additional changes to the kernel tree. This should be i2c-2.9.0, and should be ready within a month (or so I hope).
Quoted 4 lines
Once I am clear on these points, my intent is to attempt this test and I would be happy to report back to the list if it would be of any use.
I very much appreciate your time, and any insight or advice you can offer.
Keep in mind that you are a pioneer, be VERY careful. I invite you to test a SINGLE machine at first, and make sure it works well for a month or so before even considering installing a second one. Wait another month at this point, and install on the rest of the machines if nothing bad happened after that.
Jean