From owner-freebsd-current@FreeBSD.ORG Sun Dec 18 22:26: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 147F016A420 for ; Sun, 18 Dec 2005 22:26:36 +0000 (GMT) (envelope-from vovkasm@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBFAC43D66 for ; Sun, 18 Dec 2005 22:26:33 +0000 (GMT) (envelope-from vovkasm@gmail.com) Received: by nproxy.gmail.com with SMTP id h2so344841nfe for ; Sun, 18 Dec 2005 14:26:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oVL19zXSDL0X1MJNGGl55c7TcmGxdNxE1T4C4y0UZbtv0p+k5k+JeYc5KIS/UoT6Js3iMt2+sF9NydXNZWlhIFoNzG13ppbzBgcdmp4vkpyTJ/hgQq+G29ng2FCAV2dQD90eM0H6idElp1hTHF9yyIOsYmNPLose6Ea1VN+8vew= Received: by 10.48.240.13 with SMTP id n13mr218827nfh; Sun, 18 Dec 2005 14:26:32 -0800 (PST) Received: by 10.48.144.15 with HTTP; Sun, 18 Dec 2005 14:26:32 -0800 (PST) Message-ID: Date: Mon, 19 Dec 2005 01:26:32 +0300 From: Vladimir Timofeev To: Ruslan Ermilov In-Reply-To: <20051218173028.GV41326@ip.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051218173028.GV41326@ip.net.ua> Cc: current@freebsd.org 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:26:36 -0000 Results for Abit NF7 on resent RELENG_6 2005/12/18, Ruslan Ermilov : > 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. sys/modules/i2c/nfpm/ -> sys/modules/i2c/controllers/nfpm/ ;-) > > 2. Make sure sys/dev/smbus/smbus.c has patched. :-) on RELENG_6 for sys/conf/files: lines in patch: -pci/amdpm.c optional amdpm pci | nfpm pci +pci/amdpm.c optional amdpm pci must be simple -pci/amdpm.c optional nfpm pci > > 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. built with kernel ;-) > > 5. Check if nfpm0 and nfpm1 devices have been created. nfpm0: port 0xe400-0xe41f irq 11 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. yes > > 7. Compile and run the smbtest utility, run it twice, first > with /dev/smb0 and then with /dev/smb1 as the only argument. > root@vov# ./smbtest /dev/smb0 found slave device 8 found slave device 78 found slave device 81 found slave device 82 root@vov# ./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 > > 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 > No need (see output of 'pciconf -lv') > 8. Run mbmon: > > mbmon -S -s0 -d > mbmon -S -s1 -d > root@vov# mbmon -S -s0 -d SMBus[NVidia nForce2] found, but No HWM available on it!! InitMBInfo: Device not configured root@vov# 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 > > 9. Send me the output of "pciconf -lv" and mbmon commands above. root@vov# pciconf -lv agp0@pci0:0:0: class=3D0x060000 card=3D0x1c02147b chip=3D0x01e010de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 AGP Controller' class =3D bridge subclass =3D HOST-PCI none0@pci0:0:1: class=3D0x050000 card=3D0x0c1710de chip=3D0x01eb10de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 Memory Controller 1' class =3D memory subclass =3D RAM none1@pci0:0:2: class=3D0x050000 card=3D0x0c1710de chip=3D0x01ee10de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 Memory Controller 4' class =3D memory subclass =3D RAM none2@pci0:0:3: class=3D0x050000 card=3D0x0c1710de chip=3D0x01ed10de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 Memory Controller 3' class =3D memory subclass =3D RAM none3@pci0:0:4: class=3D0x050000 card=3D0x0c1710de chip=3D0x01ec10de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 Memory Controller 2' class =3D memory subclass =3D RAM none4@pci0:0:5: class=3D0x050000 card=3D0x0c1710de chip=3D0x01ef10de rev=3D= 0xc1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 Memory Controller 5' class =3D memory subclass =3D RAM isab0@pci0:1:0: class=3D0x060100 card=3D0x1c02147b chip=3D0x006010de rev=3D= 0xa4 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP2 ISA Bridge' class =3D bridge subclass =3D PCI-ISA nfpm0@pci0:1:1: class=3D0x0c0500 card=3D0x1c02147b chip=3D0x006410de rev=3D= 0xa2 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP-T? SMBus Controller' class =3D serial bus subclass =3D SMBus ohci0@pci0:2:0: class=3D0x0c0310 card=3D0x1c02147b chip=3D0x006710de rev=3D= 0xa4 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP2 OpenHCI USB Controller' class =3D serial bus subclass =3D USB ohci1@pci0:2:1: class=3D0x0c0310 card=3D0x1c02147b chip=3D0x006710de rev=3D= 0xa4 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP2 OpenHCI USB Controller' class =3D serial bus subclass =3D USB ehci0@pci0:2:2: class=3D0x0c0320 card=3D0x1c02147b chip=3D0x006810de rev=3D= 0xa4 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP2 EHCI USB 2.0 Controller' class =3D serial bus subclass =3D USB nve0@pci0:4:0: class=3D0x020000 card=3D0x1c02147b chip=3D0x006610de rev=3D= 0xa1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP-T Networking Adapter' class =3D network subclass =3D ethernet pcm0@pci0:6:0: class=3D0x040100 card=3D0x1c02147b chip=3D0x006a10de rev=3D= 0xa1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP-T Audio Codec Interface' class =3D multimedia subclass =3D audio pcib1@pci0:8:0: class=3D0x060400 card=3D0x00000000 chip=3D0x006c10de rev=3D= 0xa3 hdr=3D0x01 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP-T CPU to PCI Bridge' class =3D bridge subclass =3D PCI-PCI atapci0@pci0:9:0: class=3D0x01018a card=3D0x1c02147b chip=3D0x006510d= e rev=3D0xa2 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'nForce MCP2 EIDE Controller' class =3D mass storage subclass =3D ATA pcib2@pci0:30:0: class=3D0x060400 card=3D0x00000000 chip=3D0x01e810d= e rev=3D0xc1 hdr=3D0x01 vendor =3D 'NVIDIA Corporation' device =3D 'nForce2 AGP Host to PCI Bridge' class =3D bridge subclass =3D PCI-PCI drm0@pci2:0:0: class=3D0x030000 card=3D0x20021787 chip=3D0x59611002 rev=3D= 0x01 hdr=3D0x00 vendor =3D 'ATI Technologies Inc' device =3D 'Radeon 9200 Series (RV280)' class =3D display subclass =3D VGA > > > Cheers, > -- > Ruslan Ermilov > ru@FreeBSD.org > FreeBSD committer > > > ;-)