Skip to contentSkip to conversation

adm9240 chip on a intel se440bx-2

DISCUSSION Bert Gevers 3 participants 10 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Skipped content of type multipart/alternative

#1 lore raw

I know it wasn't officially in, but I didn't find any feedback email and thought that it could be handy for you guys.
Like I said, I got Adm9240.c from solar.xs4all.nl/sensors/.

Now that I look more closely there was an email there:
[email protected], but I suppose that that is Michiel Rook.

Quoted 22 lines

Original message from: [email protected]
To [email protected]

I got the adm9240 to work with a 2.6.7 kernel (custom build debian), but there are still errors and I thought that maybe you could use some feedback on this.

Kconfig, Makefile and adm9240.c are from /usr/src/linux/drivers/i2c/chips/ .

Adm9240.c came from solar.xs4all.nl/sensors/ (as most of the things came from there).
Chips.c is the change in the lm-sensors2.8.7 driver from your site. It
was based on solar.xs4all.nl but contained some errors (in my humble
opinion).

After installation, I get the following info:
Sensors -v: Sensorsversion
Sensors adm9240-i2c-1-2d: sensorsoutputknown

Sensors -u adm9240-i2c-1-2d: Sensorsoutput

Quoted 7 lines

Things that are still wrong:
* 2.5V is on the intel se440bx-2 only 1.5V.
* (I dunnot understand the difference between Vccp1 and 2 but that seems all right)
* fans are correct (fan 1 is in fact not the cpu, but the case fan which isn't present)
temperature is correct except for the hysteresis temp which is a factor

100 too big

Quoted 1 line

analog out isn't configured (and I dunnot understand what the meaning of

this can be)

Quoted 1 line

That is about it. I hope I helped u guys a little bit with this

#2 lore raw
In reply to Bert Gevers
Quoted 3 lines

I got the adm9240 to work with a 2.6.7 kernel (custom build debian), but there are still errors and I thought that maybe you could use some feedback on this.

Where is the feedback supposed to be?

Quoted 1 line

Kconfig, Makefile and adm9240.c are from /usr/src/linux/drivers/i2c/chips/

There's no adm9240.c there yet, since it has not officially been ported. Michiel Rook had been working on it some times ago, I don't know if the driver is ready for incorporation, or not.

Michiel, are we ready ?

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#3 lore raw
In reply to Bert Gevers
Quoted 9 lines
Quoted 9 lines

Original message from: [email protected]
To [email protected]

I got the adm9240 to work with a 2.6.7 kernel (custom build debian), but there are still errors and I thought that maybe you could use some feedback on this.

Kconfig, Makefile and adm9240.c are from
/usr/src/linux/drivers/i2c/chips/.

Aha. We *never* got the part below on the list. Your message was truncated here. No attachement either. Something must have gone wrong at the moment you sent your mail. This is why I was surprised about what your mail was for.

You should not use Outlook, see how bad it is ;)

Quoted 11 lines
Quoted 11 lines

Adm9240.c came from solar.xs4all.nl/sensors/ (as most of the things came from there).
Chips.c is the change in the lm-sensors2.8.7 driver from your site. It was based on solar.xs4all.nl but contained some errors (in my humble opinion).

After installation, I get the following info:
Sensors -v: Sensorsversion
Sensors adm9240-i2c-1-2d: sensorsoutputknown

Sensors -u adm9240-i2c-1-2d: Sensorsoutput

Care to resend all the files?

Please let us know what you fixed from Michiel's files.

Quoted 2 lines
Quoted 2 lines

Things that are still wrong:
* 2.5V is on the intel se440bx-2 only 1.5V.

According to the doc, it really does monitor +1.5V:
"* Voltage sense (+12 V, -12 V, +5 V, -5 V, +3.3 V, +1.5 V, and VCCP) to detect out of range values"
so it's OK. Just edit the label.

Quoted 2 lines
Quoted 2 lines

* (I dunnot understand the difference between Vccp1 and 2 but that seems all right)

Vccp2 is meant for dual-CPU system (or maybe dual-plane CPUs, but it only existed for a short time). It may be used for something different on your board (it even must be, since there's no VCCP2 in Intel's list).

Quoted 2 lines
Quoted 2 lines

* fans are correct (fan 1 is in fact not the cpu, but the case fan which isn't present)

Again, simply edit the label.

Quoted 2 lines
Quoted 2 lines

temperature is correct except for the hysteresis temp which is a factor 100 too big

I saw several magnitude problems in Michiel's files. Don't know what you fixed or not.

Quoted 2 lines
Quoted 2 lines

analog out isn't configured (and I dunnot understand what the meaning of this can be)

I don't know either, I guess we can ignore that.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#4 lore raw
In reply to Bert Gevers

Additional note: I just committed the necessary stuff in libsensors for the 2.6 adm9240 driver to work. Note however that I did change the magnitudes of Michiel's original patch so as to respect the standard sysfs interface. This means that changes to the drivers will most certainly be necessary. I also renamed vid to in1_ref, again in order to respect the new standard.

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#5 lore raw
In reply to Bert Gevers
Quoted 4 lines

There are one or two errors in the build, which surfaced when I upgraded to gcc-3.3, I'll fix them tonight and resubmit the adm9240.c file. Magnitude problems are fixed, most issues you mentioned some time ago too.

OK. As a reminder, please make sure that:

1* Magnitudes for temperatures and voltages are 3. It's the standard and that's how I tweaked the library in CVS.
2* Chip drivers should *NOT* set limits at init time unless default limits for the chip are known to be broken (which is rare but happens).

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#6 lore raw
In reply to Bert Gevers
Quoted 2 lines

Michiel, are we ready ?

There are one or two errors in the build, which surfaced when I upgraded to gcc-3.3, I'll fix them tonight and resubmit the adm9240.c file. Magnitude problems are fixed, most issues you mentioned some time ago too.

Cheers,

Michiel

#7 lore raw
In reply to Bert Gevers

Sorry for the late reply, I have been awfully busy. Anyway, adm9240.c is up at http://solar.xs4all.nl/share/ with most of the fixes.

Cheers,

Michiel

Quoted 5 lines · Jean Delvare
Quoted 4 lines

There are one or two errors in the build, which surfaced when I upgraded to gcc-3.3, I'll fix them tonight and resubmit the adm9240.c file. Magnitude problems are fixed, most issues you mentioned some time ago too.

Quoted 8 lines

OK. As a reminder, please make sure that:

1* Magnitudes for temperatures and voltages are 3. It's the standard and that's how I tweaked the library in CVS.
2* Chip drivers should *NOT* set limits at init time unless default limits for the chip are known to be broken (which is rare but happens).

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040719/063e357d/attachment.html

#8 lore raw
In reply to Bert Gevers

Sorry for the delay too.

Quoted 2 lines

Sorry for the late reply, I have been awfully busy. Anyway, adm9240.c is up at http://solar.xs4all.nl/share/ with most of the fixes.

It's not there. Is it supposed to be the one in /sensors/? Doesn't seem ready to me. At least alignment is not compliant with kernel rules, and the driver seems to init limits while we dropped that in all driver for quite some times now.

I may have some spare time these days for code review. Please point me to the latest version of your work, so that I can comment on it.

Thanks.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#9 lore raw
In reply to Bert Gevers
Quoted 5 lines

It's not there. Is it supposed to be the one in /sensors/? Doesn't seem ready to me. At least alignment is not compliant with kernel rules, and the driver seems to init limits while we dropped that in all driver for quite some times now.

I mean http://solar.xs4all.nl/sensors/ ofcourse. It's ready as far as I'm concerned. The only limits set are the chassis intrusion pin, which keeps flipping back to "on" on my system.

Michiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040811/6c79b487/attachment.html