Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Dec 2005 13:15:57 -0600
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Artemiev Igor" <ai@bmc.brk.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [PATCH] nForce2 SMBus support - nForce3/4 support added. Not tested yet
Message-ID:  <op.s1hbsvus9aq2h7@mezz.mezzweb.com>
In-Reply-To: <20051208125359.17d7f47a.ai@bmc.brk.ru>
References:  <20051206093020.691e1483.ai@bmc.brk.ru> <c26b523e0512061718m7a10eea0u@mail.gmail.com> <20051207095818.0b307c89.ai@bmc.brk.ru> <c26b523e0512070156t4c58a4bdj@mail.gmail.com> <20051208091422.4d1a3ee0.ai@bmc.brk.ru> <op.s1gg37ii9aq2h7@mezz.mezzweb.com> <20051208125359.17d7f47a.ai@bmc.brk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 08 Dec 2005 03:53:59 -0600, Artemiev Igor <ai@bmc.brk.ru> wrote:

> On Thu, 08 Dec 2005 02:13:09 -0600
> "Jeremy Messenger" <mezz7@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:
> MODULE_DEPEND(amdpmsub, smbus, SMBUS_MINVER, SMBUS_PREFVER,
> SMBUS_MAXVER)

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
smb0
smb1

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

/var/log/messages:
===============================
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.

Cheers,
Mezz

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


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org



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