From nobody@FreeBSD.org  Wed Oct 25 17:36:26 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E5ADC16A5C6
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Oct 2006 17:36:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B307F43D5C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Oct 2006 17:36:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9PHaQve003791
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Oct 2006 17:36:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9PHaQNx003789;
	Wed, 25 Oct 2006 17:36:26 GMT
	(envelope-from nobody)
Message-Id: <200610251736.k9PHaQNx003789@www.freebsd.org>
Date: Wed, 25 Oct 2006 17:36:26 GMT
From: Andris<ghostks@inbox.lv>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can't get to work SMBUS or simmilar method for getting thermal sensor data
X-Send-Pr-Version: www-3.0

>Number:         104812
>Category:       i386
>Synopsis:       can't get to work SMBUS or simmilar method for getting thermal sensor data
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 25 17:40:19 GMT 2006
>Closed-Date:    Wed Oct 25 18:04:07 GMT 2006
>Last-Modified:  Wed Oct 25 18:10:24 GMT 2006
>Originator:     Andris
>Release:        RELEASE 6.1
>Organization:
-
>Environment:
FreeBSD asteroid 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #5: Tue Oct 24 21:59:06 UTC 2006     admin@asteroid:/usr/obj/usr/src/sys/PRODUCT  i386
>Description:
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...
>How-To-Repeat:

>Fix:
Write own VT1211 driver or port from the OpenBSD (viasio)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 25 18:03:26 UTC 2006 
State-Changed-Why:  
This is not a problem but a user question / request. Informed the 
submitter to contact the hackers team.  Thanks for the report though. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104812 

From: Remko Lodder <remko@FreeBSD.org>
To: Andris <ghostks@inbox.lv>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/104812: can't get to work SMBUS or simmilar method for getting
 thermal sensor data
Date: Wed, 25 Oct 2006 20:03:33 +0200

 Andris wrote:
 
 Hello,
 
 Thanks for taking the time to write this down, however I do not see
 this as a problem but as a user request, can you please use the
 mailinglists for that? (perhaps freebsd-hackers@ -> 
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers/)
 
 Thanks and I hope your request will be answered upon!
 
 Cheers,
 remko
 
 -- 
 Kind regards,
 
       Remko Lodder               ** remko@elvandar.org
       FreeBSD                    ** remko@FreeBSD.org
 
       /* Quis custodiet ipsos custodes */
>Unformatted:
