NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Sporadic envstat(8)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 2, 2010, at 8:53 AM, Sad Clouds wrote:

On Thu, 2 Dec 2010 07:39:44 -0500
Michael <macallan%netbsd.org@localhost> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 2, 2010, at 5:47 AM, Sad Clouds wrote:

Hi, on my nettop with Intel Atom D510 CPU, envstat() seems to behave
a bit sporadically. If I boot the machine from cold and run
envstat() it reports no drivers registered. However if I let the
machine run for a few minutes and reboot it, then envstat() reports
CPU temperature.

Anyone knows why NetBSD envsys does not pick up temperature sensors
when booting from cold?

Which driver is it? One possibility would be that the sensor takes a
while to (literally) warm up and provide valid output which an over
eager driver might interpret as malfunction and therefore doesn't
attach.
I've seen this with the built-in thermal sensor in PowerPC G3 CPUs -
up to a few minutes after power up it reads temperatures barely above
freezing.

Which driver? I don't know, it doesn't say much. When sensors are working, running 'envstat -D' gives the following:

coretemp0 (checking events every 30 seconds)
coretemp1 (checking events every 30 seconds)
coretemp2 (checking events every 30 seconds)
coretemp3 (checking events every 30 seconds)

Your point about sensor taking a while to warm up is what I was thinking, however if that's the case, envsys framework should be intelligent enough to figure this out.

My other thought was maybe the hardware was hiding the sensors, until the temperature was high enough that they were usable. Maybe envsys framework cannot cope with such dynamic actions? Who knows...

'envsys framework' has nothing to do with this. It's whatever driver registers or doesn't register the sensors.

have fun
Michael


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBTPgYSspnzkX8Yg2nAQKoCwgApq7lmQHUX7cXbdCIYfVuA7fJlycyC/tu
KSdE8FLLqE1+9/NmfBVRqCzLalpPmWqA5t9nMKFw3QQ3La0oIGQ408dmZ0ttjp8T
IXeqRa9n6qsMbIeZ4pCIDArAi4+lfTZq4qCaiv5EA/9yleex1rsraI7pG/eLl4tx
DTtD7QGfeQ/0T7hjkO37UDPIObH26C52SB/vzHcH/eUkCSPz8jRjFq4OAvC7ae+V
qWLTPE8Wfa1D35jBtejzwcdhEkcldZakX93az9y4QZdTaw/2rLEdlmgoUJHs/FP4
D5FVHqc+3g9yJhdi519gynn+rtBiTDE/irZjh4ToEsYciLTqR6AybQ==
=qq/w
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index