From owner-freebsd-current@FreeBSD.ORG Sun Dec 18 17:33:36 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 7D06316A41F for ; Sun, 18 Dec 2005 17:33:36 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A54543D5F for ; Sun, 18 Dec 2005 17:33:34 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBIHXGeR073757; Sun, 18 Dec 2005 19:33:16 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 14333-04; Sun, 18 Dec 2005 19:33:11 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBIHUPCX073674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Dec 2005 19:30:25 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jBIHUXqA099886; Sun, 18 Dec 2005 19:30:33 +0200 (EET) (envelope-from ru) Date: Sun, 18 Dec 2005 19:30:28 +0200 From: Ruslan Ermilov To: Jeremy Messenger , Vladimir Timofeev Message-ID: <20051218173028.GV41326@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cjVziHhGDpplWqiR" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: current@FreeBSD.org Subject: 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 17:33:36 -0000 --cjVziHhGDpplWqiR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, A new nfpm(4) driver is available for testing: http://people.freebsd.org/~ru/patches/nfpm.patch 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. 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. 5. Check if nfpm0 and nfpm1 devices have been created. 6. Make sure /dev/smb[01] nodes exist. 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 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 8. Run mbmon: mbmon -S -s0 -d mbmon -S -s1 -d If any sensors are detected, e.g. on /dev/smb1 (-s1) try them: mbmon -S -s1 -c8 1 9. Send me the output of "pciconf -lv" and mbmon commands above. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --cjVziHhGDpplWqiR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDpZyzqRfpzJluFF4RAqGGAJwIuiNH0XWJVWq6D8zLwJJkfOAbdACdEqez khSlU74cqG/ZSVEHZjwubl4= =n25t -----END PGP SIGNATURE----- --cjVziHhGDpplWqiR--