Subject: Re: FYI: ENVSYS 2 ready
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 07/02/2007 14:02:49
On Mon, 2 Jul 2007 20:45:00 +0900 (JST)
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
> envstat -r still shows bogus values after boot.
Hmm, perhaps we can get the data before attaching the driver to
sysmon_envsys. Can you please try the following patch:
Index: ipmi.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/ipmi.c,v
retrieving revision 1.6
diff -b -u -r1.6 ipmi.c
--- ipmi.c 1 Jul 2007 07:37:13 -0000 1.6
+++ ipmi.c 2 Jul 2007 12:03:04 -0000
@@ -1756,6 +1756,8 @@
sc->sc_envsys.sme_flags = SME_DISABLE_GTREDATA;
sc->sc_envsys.sme_nsensors = sc->sc_nsensors;
+ ipmi_refresh_sensors(sc);
+
if (sysmon_envsys_register(&sc->sc_envsys))
printf("%s: unable to register with sysmon\n", DEVNAME(sc));
--
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish