From owner-freebsd-current@FreeBSD.ORG Thu Dec 8 19:15:20 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9402F16A41F for ; Thu, 8 Dec 2005 19:15:20 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao04.cox.net (centrmmtao04.cox.net [70.168.83.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 090A243D70 for ; Thu, 8 Dec 2005 19:15:15 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051208191332.SDGZ8318.centrmmtao04.cox.net@mezz.mezzweb.com>; Thu, 8 Dec 2005 14:13:32 -0500 Date: Thu, 08 Dec 2005 13:15:57 -0600 To: "Artemiev Igor" References: <20051206093020.691e1483.ai@bmc.brk.ru> <20051207095818.0b307c89.ai@bmc.brk.ru> <20051208091422.4d1a3ee0.ai@bmc.brk.ru> <20051208125359.17d7f47a.ai@bmc.brk.ru> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20051208125359.17d7f47a.ai@bmc.brk.ru> User-Agent: Opera M2/8.51 (Linux, build 1462) Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] nForce2 SMBus support - nForce3/4 support added. Not tested yet X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 19:15:20 -0000 On Thu, 08 Dec 2005 03:53:59 -0600, Artemiev Igor wrote: > On Thu, 08 Dec 2005 02:13:09 -0600 > "Jeremy Messenger" 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: port 0xc400-0xc41f,0x5000-0x501f irq 23 at device 1.1 on pci0 Dec 8 13:04:51 mezz kernel: smbus0: on amdpm0 Dec 8 13:04:51 mezz kernel: smb0: on smbus0 Dec 8 13:04:51 mezz kernel: amdpmsub0: on amdpm0 Dec 8 13:04:51 mezz kernel: smbus1: on amdpmsub0 Dec 8 13:04:51 mezz kernel: smb1: 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