Date: Wed, 25 Oct 2006 12:38:58 -0700 From: Julian Elischer <julian@elischer.org> To: Andris <ghostks@inbox.lv> Cc: freebsd-hackers@freebsd.org Subject: Re: can't get to work SMBUS or simmilar method for getting thermal sensor data Message-ID: <453FBD52.40806@elischer.org> In-Reply-To: <22259846.20061025213415@inbox.lv> References: <22259846.20061025213415@inbox.lv>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Andris wrote: > I'm having Asus A7V880 motherboard (AthlonXp, KT880, VT8237) and can't get to work any thermal viewing and control program. I've tried mbmon, healtd, consolehm etc. Some don't work at all (NO HW SENSOR AVAILABLE or simmilar message) or showing constant temperature 255C. > > I'v tried to load smb/smbus/*pm modules - no effect, tried to recompile kernel with: > device smbus > device viapm > device smb > device iic > device ic > device iicbus > device iicbb > device iicsmb > no effect. Even NO /dev/smbX device present and 'dmesg | grep smb' or 'sysctl -a | grep thermal' shows nothing. > Then I found, that this south bridge is using 'VIA VT1211 LPC Super I/O' chip for I/O operations accordingly to thermal sensors and there is no driver support in BSD, so the systems do not understand it. But I found that driver for this chip was introduced in OpenBSD 3.8: > "Modified files: > sys/arch/i386/conf: GENERIC > sys/arch/amd64/conf: GENERIC > sys/dev/isa : files.isa > share/man/man4 : Makefile > Added files: > sys/dev/isa : viasio.c viasioreg.h > share/man/man4 : viasio.4 > Log message: > Add viasio(4), a driver for VIA VT1211 LPC Super I/O found on > some VIA CPU based boards. The driver provides temperature, > voltage and fan tachometers values through the sysctl interface. " > > I've tried to port this driver to FreeBSD but no effect :( can't even compile kernel. > Is it possible to create/port such a driver in FreeBSD? It would be very popular, because I found a lot of simmilar problems on the net... > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" ASUS turn of ftheur SMBUS (Grrr!) you can try the attached script to try turn it on again.... [-- Attachment #2 --] #!/usr/bin/perl -w use strict; my $doit = 1; my $chiptype = `pciconf -r pci0:31:0 0`; if ($chiptype =~ m/^0x24c08086/) { print "Seems to be INTEL ICH4 PCI Bridge Chip\n"; my $bits = oct ((split /\s+/, `pciconf -r pci0:31:0 0xF0`)[0]); my $naughtybits = $bits & 0x00090000; if ($naughtybits) { # We want to clear the bits to enable SMBus for monitoring my $newbits = $bits & 0xFFF6ffff; printf "Old bit flag = 0x%08x, ", $bits; printf "New bit flag = 0x%08x... ", $newbits; print "Enabling SMBus\n"; # turn off the bits my $resuluts = `pciconf -w pci0:31:0 0xF0 $newbits` if $doit; print "$resuluts\n"; } else { print "SMBus already enabled\n"; } } else { print "Not a INTEL ICH4 PCI Bridge Chip\n"; # print ` pciconf -lv | grep -A 3 pci0:0`; # print `pciconf -l`; }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453FBD52.40806>
