The patch below fixes various nits (mostly adding locking) in most of the smbus controller drivers we have in the tree. It should apply to both HEAD and RELENG_6 with the exception that the intpm(4) driver will require the style fixes to be applied to RELENG_6 first. If you aren't using intpm and want to test on RELENG_6, you can just ignore that part of the patch. Please test, thanks. http://www.FreeBSD.org/~jhb/patches/smbus_locking.patch -- John Baldwin
At 03:53 PM 10/2/2006, John Baldwin wrote:>The patch below fixes various nits (mostly adding locking) in most of the >smbus controller drivers we have in the tree. It should apply to both HEAD >and RELENG_6 with the exception that the intpm(4) driver will require the >style fixes to be applied to RELENG_6 first. If you aren't using intpm and >want to test on RELENG_6, you can just ignore that part of the patch. Please >test, thanks. > >http://www.FreeBSD.org/~jhb/patches/smbus_locking.patch >Compiles and seems to run on my TYAN Tomcat K8E S2865 BIOS V3.02 nfsmb0: <nForce2/3/4 MCP SMBus Controller> port 0xfc00-0xfc1f,0x1c00-0x1c3f,0x1c40-0x1c7f irq 20 at device 1.1 on pci0 smbus0: <System Management Bus> on nfsmb0 smb0: <SMBus generic I/O> on smbus0 nfsmb1: <nForce2/3/4 MCP SMBus Controller> on nfsmb0 smbus1: <System Management Bus> on nfsmb1 smb1: <SMBus generic I/O> on smbus1 isab0@pci0:1:0: class=0x060100 card=0x286510f1 chip=0x005010de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'nForce4 PCI to ISA Bridge' class = bridge subclass = PCI-ISA nfsmb0@pci0:1:1: class=0x0c0500 card=0x286510f1 chip=0x005210de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'nForce4 SMBus' class = serial bus subclass = SMBus Dont have any apps that can talk to it as mbmon doesnt understand this chipset [tyan-1u]# mbmon -S -s0 -d No SMBus HWM available!! InitMBInfo: Unknown error: 0 [tyan-1u]# mbmon -S -s1 -d No SMBus HWM available!! InitMBInfo: Unknown error: 0 [tyan-1u]#>-- >John Baldwin >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Torfinn Ingolfsen
2006-Oct-03 12:00 UTC
[PATCH] Various smbus(4) driver fixups and locking
On Mon, 02 Oct 2006 15:53:26 -0400 John Baldwin <jhb@freebsd.org> wrote:> http://www.FreeBSD.org/~jhb/patches/smbus_locking.patchHmm, I have a Nforce4-based maonboard, and went looking for nfsmb, but I can't find it anywhere on my system. My system is: root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 6.1-STABLE FreeBSD 6.1-STABLE #9: Wed Sep 20 22:59:59 CEST 2006 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 Isn't that strange? Or is nfsmb only an i386-thing? -- Regards, Torfinn Ingolfsen, Norway