From owner-freebsd-stable@FreeBSD.ORG Sun Oct 21 07:11:03 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19889F10; Sun, 21 Oct 2012 07:11:03 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 69F958FC08; Sun, 21 Oct 2012 07:11:01 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 16so1400373wgi.31 for ; Sun, 21 Oct 2012 00:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7Dn0BKNvbMJnNRDEnghqyqIDg19NslCf4hI7E/BVmVM=; b=qNEKBd183BY4CA+ehyoOyYCVWHDFTUDEdtIlXalEiz4PsxtUNaU/iM9M42de9sR3Q3 3wMF+I3JsJYUMg72lZaFWYa60YcgByYwoIf63ktEdbJsuWd1PRQX7G7AgyXz0YTP8VVW RSHac0VTrKcpEpZzJRp0kBpfQLPaY0oaug3sYofJUaDoxl3eLrojejSBG92RtUn6QPU/ Ae5OaZX2EbWH8/EQwJEWdGdyMczyV5U0u50Bn/yyzMc2WBFBR0MSoEzuRfKWiR8IWMO5 UEGo9hp7Ce77x79B6wKeG6OcHGaouv/F7m2R+QiXV+pND4pj7klctrtxPKaX5lgtNQJa QJcw== MIME-Version: 1.0 Received: by 10.180.80.33 with SMTP id o1mr13319727wix.14.1350803460736; Sun, 21 Oct 2012 00:11:00 -0700 (PDT) Received: by 10.223.87.2 with HTTP; Sun, 21 Oct 2012 00:11:00 -0700 (PDT) In-Reply-To: <508304E6.6020202@FreeBSD.org> References: <1286515493.20121017131543@takeda.tk> <507F1761.1010202@FreeBSD.org> <20121017205147.GB36106@chinatsu.takeda.tk> <5081552F.2050303@FreeBSD.org> <771658188.20121019205010@takeda.tk> <508254AF.7040709@FreeBSD.org> <994545137.20121020010809@takeda.tk> <50826040.6010106@FreeBSD.org> <55342693.20121020103732@takeda.tk> <5082EEC8.2080307@FreeBSD.org> <198684285.20121020122034@takeda.tk> <5082FEA8.3050600@FreeBSD.org> <508304E6.6020202@FreeBSD.org> Date: Sun, 21 Oct 2012 02:11:00 -0500 Message-ID: Subject: Re: Problem reading vitals from Gigabyte H77-DH3H From: Scot Hetzel To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: Derek Kulinski , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2012 07:11:03 -0000 On Sat, Oct 20, 2012 at 3:09 PM, Andriy Gapon wrote: > on 20/10/2012 22:42 Andriy Gapon said the following: >> on 20/10/2012 22:20 Derek Kulinski said the following: >>> I have three questions though: >>> 1. The motherboard has 4 fan sockets (as far as I can tell), CPU_FAN, >>> and SYS_FAN[1-3]. SYS_FAN1 currently is not connected. >>> Seems like: >>> fan0 -> CPU_FAN (did not try to disconnect it to check :) >>> fan1 -> SYS_FAN1 >>> fan2 -> SYS_FAN2 >>> There is no entry for SYS_FAN3. I disconnected it temporarily but >>> it did not seem to affect the output. Is it possible to get that >>> information from the motherboard? >> >> The driver would have to be updated for that. >> Unfortunately ITE does not provide public datasheets. >> We could pick up some new bits from the Linux driver though. >> http://lxr.linux.no/#linux+v3.6.2/drivers/hwmon/it87.c > > In fact, here is a completely untested patch: > http://people.freebsd.org/~avg/it-fans-0x80.diff > @@ -354,12 +372,15 @@ static void it_refresh_sensor_data(struct it_softc *sc) { /* Refresh our stored data for every sensor */ - it_generic_stemp(sc, &sc->sensors[12]); - it_generic_svolt(sc, &sc->sensors[3]); - if (sc->fan16bit) + if (sc->fan16bit) { it_16bit_fanrpm(sc, &sc->sensors[0]); - else + it_generic_svolt(sc, &sc->sensors[5]); + it_generic_svolt(sc, &sc->sensors[14]); <- Looks to be a copy/paste bug ;-) + } else { it_generic_fanrpm(sc, &sc->sensors[0]); + it_generic_svolt(sc, &sc->sensors[3]); + it_generic_stemp(sc, &sc->sensors[12]); + } }