Subject: Re: NVIDIA nForce2/3/4 SMBus controller
To: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 07/20/2007 20:11:07
On Sat, Jul 21, 2007 at 02:02:26AM +0900, KIYOHARA Takashi wrote:
> Hi! Nicolas,

Hi,

> > I made some tests with a delay(10) loop on my machine (Tyan S4895
> > motherboard). And the protocol register seems cleared in an interval
> > of 0 to 600 microseconds.
> > 
> > Just to be sure, i checked SMBus/ACPI specifications about this.
> >      SMB_STS:   Status code for transaction.
> >      SMB_PRTCL: 0x00 to indicate command completion.
> > The FreeBSD way looks correct to me (SMB_PRTCL, then SMB_STS).
> 
> Can you try this patch.

It works ! All i2c devices/adresses looks good.

nfsmbc0 at pci0 dev 1 function 1: NVIDIA nForce4 SMBus (rev. 0xa2)
nfsmb0 at nfsmbc0 SMBus 1
iic0 at nfsmb0: I2C bus
iic0: devices at 0x18 0x30 0x31 0x32 0x33 0x50 0x51 0x52 0x53
spdmem0 at iic0 addr 0x50: DDR2 SDRAM memory module
spdmem1 at iic0 addr 0x51: DDR2 SDRAM memory module
spdmem2 at iic0 addr 0x52: DDR2 SDRAM memory module
spdmem3 at iic0 addr 0x53: DDR2 SDRAM memory module
nfsmb1 at nfsmbc0 SMBus 2
iic1 at nfsmb1: I2C bus
iic1: devices at 0x19 0x2d 0x48

Thanks a lot.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.