On Sun, 18 Dec 2005 11:30:28 -0600, Ruslan Ermilov <ru_at_FreeBSD.org> 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: <nForce2/3/4 MCP SMBus Controller> port 0xc400-0xc41f irq 23 at device 1.1 on pci0 smbus0: <System Management Bus> on nfpm0 smb0: <SMBus generic I/O> on smbus0 nfpm1: <nForce2/3/4 MCP SMBus Controller> on nfpm0 smbus1: <System Management Bus> on nfpm1 smb1: <SMBus generic I/O> 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 <port_working_directory>/pci_pm.h > <search for ID_NFORCE2> > 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_at_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_at_cox.net - mezz_at_FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome_at_FreeBSD.orgReceived on Sun Dec 18 2005 - 21:12:22 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC