Skip to contentSkip to conversation

Found unknown SMBus adapter 10de:0aa2 at

lm-sensors Jean Delvare 1 participant 5 messages Jan 13, 2010 – Jan 14, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 15 lines · Manuel Lamotte-Schubert

Hi all,

I have an ZOTAC ION ITX-B mainboard.
(http://pden.zotac.com/index.php?page=shop.product_details&flypage=flypage_images.tpl&product_id8&category_id&option=com_virtuemart&Itemid=1)

I'm running Debian Lenny stable, having lm-sensors installed, Version:
1:3.0.2-1+b2.
The kernel version is 2.6.32, self-compiled

Here's some output I get:

# lspci
...
00:03.2 SMBus: nVidia Corporation Device 0aa2 (rev b1)
...
Quoted 4 lines
# sensors-detect
...
Found unknown SMBus adapter 10de:0aa2 at 0000:00:03.2.
...

A more recent version of sensors-detect (lm-sensors 3.1.0 or later) would not show this message. Anyway, as long as the kernel itself knows about the device (and this is your case) it doesn't really matter.

Quoted 9 lines
# lspci -vv -s 00:03.2
00:03.2 SMBus: nVidia Corporation Device 0aa2 (rev b1)
        Subsystem: Device 19da:a108
        Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSELúst >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at 4900 [sized]
Quoted 8 lines
        Region 4: I/O ports at 4d00 [sized]
        Region 5: I/O ports at 4e00 [sized]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: nForce2_smbus
        Kernel modules: i2c-nforce2

The i2c-nforce2 is used for the device, so it's OK.

Quoted 16 lines
# i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: 50 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Quoted 1 line

Any help would be appreciated, maybe I can help supporting it!

You did not tell us which I2C/SMBus adapter i2c-0 was. But seeing the chips at 0x50-0x57, I would guess this is your graphics adapter, rather than the SMBus (unless you have 8 memory modules, but I wouldn't expect that on any Zotac product.) The chip at 0x4c could be a temperature monitoring chip, we'd need a dump to tell. But first just try a more recent version of sensors-detect:
http://dl.lm-sensors.org/lm-sensors/files/sensors-detect

And report the full output.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 18 lines · Manuel Lamotte-Schubert

In fact, actually some minutes before your repsonse I've already run the most recent version of sensors-detect as you suggested.

Here's the output:
...
Intel Atom thermal sensor... Success!
(driver `coretemp')
...
Using driver `i2c-nforce2' for device 0000:00:03.2: nVidia Corporation nForce SMBus (MCP79)
...
Next adapter: SMBus nForce2 adapter at 4d00 (i2c-0)
Probing for `Winbond W83L771AWG/ASG'... Success!
(confidence 6, driver `to-be-written')
...
Driver `to-be-written':
* Bus `SMBus nForce2 adapter at 4d00'

    Busdriver `i2c_nforce2', I2C address 0x4c
    Chip `Winbond W83L771AWG/ASG' (confidence: 6)
Quoted 8 lines

Driver `coretemp':
* Chip `Intel Atom thermal sensor' (confidence: 9)

Note: there is no driver for Winbond W83L771AWG/ASG yet. Check http://www.lm-sensors.org/wiki/Devices for updates.

This means that the sensor could be detected but there is no driver for using it?

Yes. For the Atom CPU, support is in coretemp since kernel 2.6.32, so you should have it already. For the W83L771AWG/ASG, support can probably be added to the lm90 driver. I hoped that someone would send me a board with this chip, so that I could work on it, but it did not happen. If you send me a dump of your chip, I can give it a try.

Install i2c-tools, then as root:

# modprobe i2c-dev
# i2cdump 0 0x4c b

And send me the output.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Jean Delvare
Quoted 24 lines · Manuel Lamotte-Schubert

Here's the output.

# i2cdump 0 0x4c b
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x4c, mode byte
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 2d 37 80 01 08 46 d8 46 d8 ff ff ff ff ff ff ff    -7???F?F?.......
10: 00 00 00 00 00 00 00 04 00 6e 6e 46 d8 00 00 ff    .......?.nnF?...
20: 55 0a ff ff 7f e0 ff ff ff ff ff ff ff ff ff ff    U?..??..........
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: 00 00 00 84 84 84 00 00 55 00 00 ff ff ff ff ff    ...???..U.......
f0: 08 00 00 00 84 00 00 36 80 fc 36 83 37 ff 5c 11    ?...?..6??6?7.\?
Quoted 5 lines
Quoted 3 lines

I hoped that someone would send
me a board with this chip, so that I could work on it, but it did not happen. If you send me a dump of your chip, I can give it a try.

What do you need else for working on it except the board itself? Would an account on my machine be sufficient? What command do you need to run?

If you can rebuild a kernel with a patch applied, then you should be able to do the tests for me. I'll post a patch in a few minutes.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Jean Delvare

Hi Manuel,

Quoted 4 lines · Manuel Lamotte-Schubert

I've downloaded the 2.6.33-rc4 kernel and integrated your patch. Please note, that I could not apply the patch automatically. I had to apply it by hand because the line numbers from the patch file didn't match the numbers in the target files.

I'm surprised. For one thing, "patch" is smart and can apply patches even when line numbers don't match. For another, my patch was generated exactly on top of 2.6.33-rc4, so it should have applied perfectly.

Quoted 1 line

Which tests shall I run now?

Just load the lm90 driver then run "sensors", you should see an entry for the W83L771 with two temperature. temp1 would be the board temperature and temp2 the CPU temperature.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Jean Delvare
Quoted 7 lines · Manuel Lamotte-Schubert

Hi Jean,

Quoted 3 lines

I'm surprised. For one thing, "patch" is smart and can apply patches even when line numbers don't match. For another, my patch was generated exactly on top of 2.6.33-rc4, so it should have applied perfectly.

The response from the patch program was something like "Patch failed" and it created the rejected files lm90.c.rej and KConfig.rej.

I don't know what you did, but I just double-checked and my patch applies just fine on top of 2.6.33-rc4.

Quoted 19 lines
Quoted 3 lines

Just load the lm90 driver then run "sensors", you should see an entry for the W83L771 with two temperature. temp1 would be the board temperature and temp2 the CPU temperature.

Thats what I have already did but I was confused about the messages. Here's the output:

# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +52.0°C  (crit = +90.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1: +52.0°C (crit = +90.0°C)

w83l771-i2c-0-4c
Can't get adapter name
temp1: +51.0°C (low = -40.0°C, high = +70.0°C)

Quoted 7 lines
                      (crit = +85.0°C, hyst = +75.0°C)
temp2:       +68.5°C  (low  = -40.0°C, high = +70.0°C)
                      (crit = +110.0°C, hyst = +100.0°C)

I guess, the values temp1 and temp2, respectively, below the w83l771-i2c-0-4c are the board and CPU temperature. But what are the other temperatures, core 0 and core 1?

Core 0 and Core 1 are reported by the digital thermal sensors that are built into your CPU.

w83l771/temp1 is a temperature sensor integrated into the W83L771 chip, so it basically gives you the temperature of the mainboard.

w83l771/temp2 is a remote sensor, it could be monitoring virtually everything. The most common would be the CPU, but the difference between temp2 and the values reported by coretemp are suspicious. Maybe it's monitoring something else, like the GPU. You'd have to ask the Zotac folks. Or maybe either coretemp or the W83L771's remote sensor is horribly wrong.

Quoted 2 lines

Yet another question: will the patch be automatically integrated into the next kernel version or was it something special for me?

It was special for you. I'll send you the bill tomorrow.

OK, just kidding. Of course I'll push the patch in the next kernel version. In fact it's already queued [1].

[1] ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-hwmon/

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors