Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 18:47:06 +0100
From:      Bruce M Simpson <bms@incunabulum.net>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        FreeBSD stable <freebsd-stable@freebsd.org>, Richard Tector <richardtector@thekeelecentre.com>
Subject:   Re: Any working ichsmb(4) platforms out there?
Message-ID:  <48CAAB1A.9070502@incunabulum.net>
In-Reply-To: <20080912072037.GC49512@icarus.home.lan>
References:  <48C927DC.6000202@incunabulum.net> <48C932D9.50604@thekeelecentre.com> <48C934D1.5030703@incunabulum.net> <48C93582.3080107@thekeelecentre.com> <48C93903.5060604@protected-networks.net> <20080912072037.GC49512@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Chadwick wrote:
> I'm trying my best to make things better, doing things purely from a
> userland perspective and using SMBus exclusively (since the interface is
> quite reliable, assuming the SMBus driver used on FreeBSD is working
> correctly).  I understand-- Bruce is having problems with ichsmb(4),
> while on every ICH7 board I have (and I have many), I've had nothing but
> success.  All of bsdhwmon's main development has been done on ICH7
> boards I use and have physical access to, for example.

I fished out the A/Open MX3S board I have. It seems to have an ICH2 
south bridge. An old version of Gentoo I had installed finds the ICH2. 
mbmon is able to talk to a Winbond chip over ISA; it sees an SMBus slave 
0xA0/0x50, I don't know what that is yet.

I got this board years ago, I think because it does actually support 
smbus. I'm just futzing with Gentoo now to get the HWMON and other i2c 
drivers up.

i2c-i801.ko probes and attaches. i2c-dev.ko created /dev/i2c* nodes ok.

I then downloaded i2c-tools from http://www.lm-sensors.org/wiki/I2CTools 
and built it.

%%%
raisin i2c-tools-3.0.1 # /usr/local/sbin/i2cdetect 3
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c/3.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
%%%

%%%
raisin i2c-tools-3.0.1 # mbmon -S -D
Probe Request: none
 >>> Testing Reg's at SMBus <<<
[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5/ICH6), IO-Base:0x5000]
 SMBus slave 0xA0(0x50) found...
SMBus[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5/ICH6)] found, but No HWM 
available on it!!
InitMBInfo: Success
%%%

Likely these are old versions of the mbmon tools.

%%%raisin i2c-tools-3.0.1 # /usr/local/sbin/i2cdump 3 0x50 b 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c/3, address 0x50, mode byte
Continue? [Y/n] Y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 80 08 04 0c 0a 01 40 00 01 80 60 00 80 08 00 01    ??????@.??`.??.?
10: 8f 04 06 01 01 00 0e a0 60 00 00 14 14 14 32 20    ?????.??`..???2
20: 20 10 20 10 00 00 00 00 00 00 00 00 00 00 00 00     ? ?............
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 f6    ..............??
40: 2c ff ff ff ff ff ff ff 08 38 4c 53 44 54 31 36    ,.......?8LSDT16
50: 36 34 41 47 2d 31 30 45 45 31 20 01 00 03 10 6c    64AG-10EE1 ?.??l
60: 08 95 7e 00 00 00 00 00 00 00 00 00 00 00 00 00    ??~.............
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 af    ..............d?
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 ff    ................
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: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
%%%

Hey, that looks like a Micron DIMM.

I didn't see anything on the other two i2c bus addresses.

So I can confirm SMBus works on the MX3S from Linux 2.6.x. I'll blow it 
away with 7.1-BETA and see what happens next.

cheers
BMS





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CAAB1A.9070502>