From owner-freebsd-current@FreeBSD.ORG Sun Dec 18 22:12:22 2005 Return-Path: X-Original-To: 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 C332216A41F; Sun, 18 Dec 2005 22:12:22 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao02.cox.net (centrmmtao02.cox.net [70.168.83.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2106D43D46; Sun, 18 Dec 2005 22:12:18 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051218221209.ICIW8484.centrmmtao02.cox.net@mezz.mezzweb.com>; Sun, 18 Dec 2005 17:12:09 -0500 Date: Sun, 18 Dec 2005 16:13:03 -0600 To: "Ruslan Ermilov" References: <20051218173028.GV41326@ip.net.ua> 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: <20051218173028.GV41326@ip.net.ua> User-Agent: Opera M2/8.51 (Linux, build 1462) Cc: current@freebsd.org, Vladimir Timofeev Subject: Re: New nfpm.c driver available for testing 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: Sun, 18 Dec 2005 22:12:22 -0000 On Sun, 18 Dec 2005 11:30:28 -0600, Ruslan Ermilov wrote: > Hi, > > A new nfpm(4) driver is available for testing: > > http://people.freebsd.org/~ru/patches/nfpm.patch For any 6.x users, replace above's conf/files patch to here. http://people.freebsd.org/~mezz/diff/patch-sys_conf_files The rest applied just fine beside that conf/files. > http://people.freebsd.org/~ru/patches/smbtest.c > > This driver supports nVidia nForce2/3/4 and AMD-8111 SMBus 2.0 > controllers. > > 1. Make sure to create an empty sys/modules/i2c/nfpm/ directory > before you apply the patch. I am sure you mean by sys/modules/i2c/controllers/nfpm/ . > 2. Make sure sys/dev/smbus/smbus.c has patched. :-) > > 3. Recompile and reinstall everything in /sys/modules/i2c/: > > cd /sys/modules/i2c && make obj && make && make install > > 4. Reboot and load nfpm.ko and smb.ko from loader(8). NB: > On my machine, kldload/kldunload/kldload of nfpm.ko results > in non-working driver, due to some yet to be solved I/O > resource problem. The smb_load="YES" and nfpm_load="YES" have been added in loader.conf. > 5. Check if nfpm0 and nfpm1 devices have been created. dmesg: ========================================== nfpm0: port 0xc400-0xc41f irq 23 at device 1.1 on pci0 smbus0: on nfpm0 smb0: on smbus0 nfpm1: on nfpm0 smbus1: on nfpm1 smb1: on smbus1 ========================================== > 6. Make sure /dev/smb[01] nodes exist. ========================================== # ls /dev | grep smb smb0 smb1 ========================================== > 7. Compile and run the smbtest utility, run it twice, first > with /dev/smb0 and then with /dev/smb1 as the only argument. > > # ./smbtest /dev/smb0 > found slave device 8 > found slave device 80 > found slave device 81 > # ./smbtest /dev/smb1 > found slave device 8 ========================================== # ./smbtest /dev/smb0 found slave device 8 found slave device 80 found slave device 81 # ./smbtest /dev/smb1 found slave device 8 found slave device 27 found slave device 47 ========================================== > 8. Patch sysutils/xmbmon sources and substitute the PCI ID of > your SMBus 2.0 controller (see "pciconf -lv", "nfpm0"): > > cd /usr/ports/sysutils/xmbmon > make patch > vi /pci_pm.h > > make install ========================================== # grep 0084 work/xmbmon205/* work/xmbmon205/pci_pm.h:#define ID_NFORCE2 0x008410DE ========================================== > 8. Run mbmon: > > mbmon -S -s0 -d > mbmon -S -s1 -d ========================================== # mbmon -S -s0 -d SMBus[NVidia nForce2] found, but No HWM available on it!! InitMBInfo: Device not configured # mbmon -S -s1 -d SMBus[NVidia nForce2] found, but No HWM available on it!! InitMBInfo: Device not configured ========================================== > If any sensors are detected, e.g. on /dev/smb1 (-s1) try > them: > > mbmon -S -s1 -c8 1 ========================================== # mbmon -S -s1 -c8 1 InitMBInfo: Device not configured ========================================== Umm, do I need to configure something else? > 9. Send me the output of "pciconf -lv" and mbmon commands above. pciconf: ========================================== nfpm0@pci0:1:1: class=0x0c0500 card=0x57001462 chip=0x008410de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'nForce MCP2S PCI System Management' class = serial bus subclass = SMBus ========================================== kldstat: ========================================== # kldstat Id Refs Address Size Name 1 14 0xc0400000 3b3960 kernel 2 2 0xc07b4000 1aeac linux.ko 3 1 0xc07cf000 3124 smb.ko 4 3 0xc07d3000 3764 smbus.ko 5 1 0xc07d7000 2f2c nfpm.ko 6 1 0xc07da000 429d40 nvidia.ko 7 1 0xc0c04000 5b734 acpi.ko ========================================== Thanks! /me goes back to watch football (NFL) game... Wow, Colt doesn't win (haha)! Cheers, Mezz > Cheers, -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org