[PATCH] nForce2 SMBus support - nForce3/4 support added. Not tested yet

Jeremy Messenger mezz7 at cox.net
Thu Dec 8 11:15:20 PST 2005

On Thu, 08 Dec 2005 03:53:59 -0600, Artemiev Igor <ai at bmc.brk.ru> wrote:

> On Thu, 08 Dec 2005 02:13:09 -0600
> "Jeremy Messenger" <mezz7 at cox.net> wrote:
>> Thanks, I see you have added one of chipset (0x0084) that is what I
>> have but mbmon couldn't pick up. Also, there is no /dev/smb*.
> It's my mistake - i haven`t put MODULE_DEPEND for amdpmsub into amdp.c.
> You need kldload smb BEFORE amdpm. Or add this line:

I can see /dev/smb* now, but I still can't use -S in mbmon.

# kldstat
Id Refs Address    Size     Name
  1   15 0xc0400000 3b35a0   kernel
  2    2 0xc07b4000 1aeac    linux.ko
  3    1 0xc07cf000 3bdffc   nvidia.ko
  4    1 0xc0b8d000 5b6b4    acpi.ko
  5    1 0xc4419000 3000     smb.ko
  6    3 0xc441c000 3000     smbus.ko
  7    1 0xc441f000 3000     iicbus.ko
  8    1 0xc4422000 4000     amdpm.ko

# ls /dev | grep smb

# mbmon -S
No SMBus HWM available!!
InitMBInfo: Unknown error: 0

Dec  8 13:04:51 mezz kernel: amdpm0: <nForce2/3/4 MCP SMBus Controller>  
port 0xc400-0xc41f,0x5000-0x501f irq 23 at device 1.1 on pci0
Dec  8 13:04:51 mezz kernel: smbus0: <System Management Bus> on amdpm0
Dec  8 13:04:51 mezz kernel: smb0: <SMBus generic I/O> on smbus0
Dec  8 13:04:51 mezz kernel: amdpmsub0: <nForce2/3/4 MCP Slave SMBus  
Controller> on amdpm0
Dec  8 13:04:51 mezz kernel: smbus1: <System Management Bus> on amdpmsub0
Dec  8 13:04:51 mezz kernel: smb1: <SMBus generic I/O> on smbus1

Have you tried to do the kldunload amdpm yet? It will get FreeBSD crash  
and forced me to reboot. I don't have any debug in my kernel, so I can't  
provide the backtraces. Does amdpm needs the iic* stuff? I remember that  
one of my dead motherboard that use viapm required the iic* stuff.


>> Without use -S in mbmon, mbmon always work fine with and without
>> your patch.
> See above. I`ve updated the patch.

mezz7 at cox.net  -  mezz at FreeBSD.org
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org

More information about the freebsd-current mailing list