Skip to contentSkip to conversation

Iwill MPX2 - LM83/LM90 confusion

DISCUSSION Jean Delvare 3 participants 6 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

I believe there is some confusion about what chips are on the Iwill MPX2. I obviously own one, and I'm guilty of looking at it to try and see what chips are on it (it's already installed in the case!) but I've done a bit of research, and I strongly believe that the MPX2 has a LM90, not LM83 on board.

I wouldn't be surprised. The confusion comes from two different facts:
1* The LM83 data sheet is missing the device ID.
2* Both chips are partly compatible.

Quoted 2 lines

The best evidence is the Motherboard Monitor, MBM
(http://mbm.livewiredev.com/) site (undoubtedly you've heard of it);

Sure I have, we are sometimes working together with Alex van Kaam, MBM's author, and share our views and experiences.

Quoted 1 line

it lists the MPX2 as having a LM90.

This is no proof. Both chips being partly compatible, one can use a lm90 driver on a LM83 and get reasonable results. I remember Alex told me he wasn't really interested in having a separate lm83 driver.

Quoted 2 lines

Furthermore, I have installed the MBM and it does show temperatures for both CPUs.

More interesting. Incidentally, Alex and I were discussing about that some days ago. He uses special tricks to handle that (and kindly shared that information with me). I had some difficulties understanding it at first, because I had never seen systems requiring the trick, maybe you'll make me change my mind.

Quoted 2 lines

On the other hand, only temp1 and temp3 on lm_sensors LM83 show temperatures for the MPX2; temp 2 and temp4 both report 0C.

This is definitely the sign that this isn't a LM83 - unless the motherboard designer was crazy enough to solder a 4-temp sensor where a 2-temp one would suffice.

Quoted 2 lines

I am willing to test whatever LM90 software you may have. (...) I currently have 2.8.0, i2c and lm_sensors, installed.

To the good news now...

LM Sensors 2.8.1, which was released yesterday, has full support for the LM90 :) Please give it a try, and tell me how it works for you.

If Alex's trick is required for the MPX2, you'll see only the temperature for one CPU. In that case, I'll think of a way to use the trick in lm_sensors so that you can access both. (Don't know how at all for now, we'll see that later.)

Thanks a lot for your feedback. Comments about how the detection works, how the driver works, how accurate/useful the docs are, are always welcome :)

Signature · 5 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
#1 lore raw
Quoted 3 lines

One more item, I hope this isn't noise, but there may be two(!) LM90s/LM83s on the MPX2.

Maybe, maybe not. Running 2.8.1's sensors-detect will tell you that (and possibly more).

Quoted 3 lines

At any rate, I had seen the 2.8.1 but was loathe to install it because:
1) I'd just installed 2.8.0

This means you'd have installed 2.8.1 easily, since the procedure hasn't changed ;)

Quoted 1 line

2) 2.8.1 was beta

In now way it is. What made you think it could be?

Quoted 2 lines

But if you invested the time to write it the least I can do is install and test it.

If you wan't LM90 support, you want 2.8.1. It's that simple ;)

Quoted 2 lines

Question: why does the i2c version always have to increase to support lm_sensors?

Because most sensor chips are located on the I2C bus (aka SMBus).

Quoted 1 line

Are you upgrading i2c to handle devices that lm_sensors will use?

Yes, sort of. We add utility functions, remove unused ones, adapt internal structures to reflect kernel policy changes, and so on. You do not always need the exact same version of i2c and lm_sensors, but since we also fix bugs it i2c, you always want to update i2c to match the version of lm_sensors you plan to install.

Let us know how 2.8.1 does work for you :)
Thanks.

Signature · 5 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
#2 lore raw
In reply to Jean Delvare
Quoted 2 lines

the LM90 only allows 1 smbus adress and thus there can not be 2

Yeah, you're perfectly right. Not having the data sheet before my eyes, I had almost forgotten that detail. That may explain why they are using the switching trick instead of using two monitoring chips. That said, they obviously should have used a LM83 instead.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Jean Delvare

the LM90 only allows 1 smbus adress and thus there can not be 2

Iwill switches the input from the 2 cpu's, put a certain pin high and you get cpu0, put it low and you get cpu1 on the SAME LM90

Jean has the code and it is based on info gotten from IWill

Regards, Alex

- Please always attach all previous mails !
----------------------------------------------------------------------
The Motherboard Monitor:
http://mbm.livewiredev.com/
----------------------------------------------------------------------
For long you live and high you fly,
And smiles you'll give and tears you'll cry,
And all you touch and all you see,
Is all your life will ever be.
----------------------------------------------------------------------

-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: dinsdag 7 oktober 2003 17:20
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: Iwill MPX2 - LM83/LM90 confusion

Quoted 2 lines

One more item, I hope this isn't noise, but there may be two(!) LM90s/LM83s on the MPX2.

Maybe, maybe not. Running 2.8.1's sensors-detect will tell you that (and possibly more).

Quoted 3 lines

At any rate, I had seen the 2.8.1 but was loathe to install it because:
1) I'd just installed 2.8.0

This means you'd have installed 2.8.1 easily, since the procedure hasn't changed ;)

Quoted 1 line

2) 2.8.1 was beta

In now way it is. What made you think it could be?

Quoted 2 lines

But if you invested the time to write it the least I can do is install and test it.

If you wan't LM90 support, you want 2.8.1. It's that simple ;)

Quoted 2 lines

Question: why does the i2c version always have to increase to support lm_sensors?

Because most sensor chips are located on the I2C bus (aka SMBus).

Quoted 1 line

Are you upgrading i2c to handle devices that lm_sensors will use?

Yes, sort of. We add utility functions, remove unused ones, adapt internal structures to reflect kernel policy changes, and so on. You do not always need the exact same version of i2c and lm_sensors, but since we also fix bugs it i2c, you always want to update i2c to match the version of lm_sensors you plan to install.

Let us know how 2.8.1 does work for you :)
Thanks.

--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

#4 lore raw
In reply to Jean Delvare
Quoted 5 lines

Jean,
Was support for the Iwill MPX2's particular method of switching
LM90s ever incorporated into lm_sensors? I could not find any indication that it had been. If not, I am interested in helping implement that feature.

Unfortunately (for you) it was not. Only the method for the Gigabyte board was, because it relies on a more standard (Philips) chip.

However, Alex van Kaam provided me with some code explaining how to do it. As I read it, it looks like the board uses a GPIO pin of the Super-I/O chipset. So it's heavily motherboard dependant and as such it doesn't belong to the lm90 driver IMHO. We better do an external tool to handle that specific case.

Here's the code (original by Alex, simplified by me):

begin

    // Enter Super-I/O
    WritePortByte($2E,$87);
    WritePortByte($2E,$87);

    // Select logical device 7
    WritePortByte($2E,$07);
    WritePortByte($2F,$07);

    // now we need to set the GPIO10 to high or low
    WritePortByte($2E,$F1);
    X:=ReadPortByte($2F);

    if (X and $01) then
    begin
      X:=X and $FE;                // if we want it low
    end
    else
    begin
      X:=X or $01;                // if we want it high
    end;

    WritePortByte($2F,X);

    // exit Super-I/O
    WritePortByte($2E,$AA);

end;

You should be able to easily convert this to user-space C code (see proc/dump/isadump.c for an example). Then running that new tool will switch which CPU is monitored.

You could then add functionality to the tool (force one given CPU, show selected CPU, etc...).

Once the tool is working we could integrate it into our package.

Remember that there really is only one LM90 on the board, and the lm90 driver doesn't know about the tweak, so:
1* You must ensure that you are not switching while the lm90 driver is updating its data. This excludes the use of any app repeatedly updating the data.
2* Since the lm90 caches the data it reads, it may take up to 2 seconds before you will get the data from the CPU you just switched to.

Good luck, let us know if you need additional help.

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

Jean,
Was support for the Iwill MPX2's particular method of switching
LM90s ever incorporated into lm_sensors? I could not find any indication that it had been. If not, I am interested in helping implement that feature.

Lamar

Quoted 94 lines

the LM90 only allows 1 smbus adress and thus there can not be 2

Iwill switches the input from the 2 cpu's, put a certain pin high and you get cpu0, put it low and you get cpu1 on the SAME LM90

Jean has the code and it is based on info gotten from IWill

Regards, Alex

- Please always attach all previous mails !
----------------------------------------------------------------------
The Motherboard Monitor:
http://mbm.livewiredev.com/
----------------------------------------------------------------------
For long you live and high you fly,
And smiles you'll give and tears you'll cry,
And all you touch and all you see,
Is all your life will ever be.
----------------------------------------------------------------------

-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: dinsdag 7 oktober 2003 17:20
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: Iwill MPX2 - LM83/LM90 confusion

Quoted 4 lines

One more item, I hope this isn't noise, but there may be two(!) LM90s/LM83s on the MPX2.

Maybe, maybe not. Running 2.8.1's sensors-detect will tell you that (and possibly more).

Quoted 5 lines

At any rate, I had seen the 2.8.1 but was loathe to install it because:
1) I'd just installed 2.8.0

This means you'd have installed 2.8.1 easily, since the procedure hasn't changed ;)

Quoted 3 lines

2) 2.8.1 was beta

In now way it is. What made you think it could be?

Quoted 4 lines

But if you invested the time to write it the least I can do is install and test it.

If you wan't LM90 support, you want 2.8.1. It's that simple ;)

Quoted 4 lines

Question: why does the i2c version always have to increase to support lm_sensors?

Because most sensor chips are located on the I2C bus (aka SMBus).

Quoted 3 lines

Are you upgrading i2c to handle devices that lm_sensors will use?

Yes, sort of. We add utility functions, remove unused ones, adapt internal structures to reflect kernel policy changes, and so on. You do not always need the exact same version of i2c and lm_sensors, but since we also fix bugs it i2c, you always want to update i2c to match the version of lm_sensors you plan to install.

Let us know how 2.8.1 does work for you :)
Thanks.

Quoted 8 lines

--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040715/7e7029a7/attachment.html