[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080429170824.09540206@hyperion.delvare>
Date: Tue, 29 Apr 2008 17:08:24 +0200
From: Jean Delvare <khali@...ux-fr.org>
To: trenn@...e.de
Cc: Kasper Sandberg <lkml@...anurb.dk>,
Maxim Levitsky <maximlevitsky@...il.com>,
Len Brown <lenb@...nel.org>, Matthew <jackdachef@...il.com>,
linux-acpi@...r.kernel.org, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org, "Zhang, Rui" <rui.zhang@...el.com>,
Rudolf Marek <r.marek@...embler.cz>
Subject: Re: Linux 2.6.25 (coretemp reads high temperatures)
Hi all,
Adding Rudolf Marek to the thread, as he wrote the coretemp driver and
is maintaining it. He was really the first person to contact about your
problem...
On Tue, 29 Apr 2008 15:07:03 +0200, Thomas Renninger wrote:
> On Mon, 2008-04-28 at 20:19 +0200, Kasper Sandberg wrote:
> > On Wed, 2008-04-23 at 11:43 +0300, Maxim Levitsky wrote:
> > > On Saturday, 19 April 2008 04:51:48 Len Brown wrote:
> > > > On Friday 18 April 2008, Matthew wrote:
> > > > > Hi everyone, hi Linus,
> > > > >
> > > > > congratulations on this new great kernel-release :)
> > > > >
> > > > > I've another "regression" to report for 2.6.25:
> > > > >
> > > > > it's concerning much higher temperatures being read out by the
> > > > > "coretemp" kernel-module in comparison to 2.6.24* series
> > > > >
> > > > > e.g. where temperatures were around 40-47°C they are now constantly
> > > > > jumping around 55-70°C (even in idle !)
> > >
> > > I just updated from 2.6.24 to 2.6.25
> > > (I usually follow whole development cycle, but I was very busy, so I skipped 2.6.25 cycle)
> > >
> > > I confirm this.
> > > I *know* that temperatures reported now are wrong.
And how do you know? The newly reported temperatures could be correct
and the previous ones were incorrect (that's actually the case.) The
thing is, the temperature is stored as a relative value in the CPU.
Relative to what, depends on the CPU model, can be 85°C or 100°C. Up to
kernel 2.6.24 we had a set of rules to find out, in 2.6.25 we have a
presumably better heuristic. So some people have seen their CPU
temperature climb by 15°C and others drop by 15°C, that's expected.
> >
> > I too can confirm that it reports incorrect temperatures.
> >
> > I have a Q9450, and this is my "sensors" output:
> > it8718-isa-0290
> > Adapter: ISA adapter
> > <snip>
> > temp1: +44°C (low = +127°C, high = +127°C) sensor = thermistor
> > temp2: +22°C (low = +127°C, high = +60°C) sensor = diode
> > temp3: -2°C (low = +127°C, high = +127°C) sensor = thermistor
> > vid: +0.000 V
> >
> > coretemp-isa-0000
> > Adapter: ISA adapter
> > Core 0: +44°C (high = +100°C)
> >
> > coretemp-isa-0001
> > Adapter: ISA adapter
> > Core 1: +44°C (high = +100°C)
> >
> > coretemp-isa-0002
> > Adapter: ISA adapter
> > Core 2: +43°C (high = +100°C)
> >
> > coretemp-isa-0003
> > Adapter: ISA adapter
> > Core 3: +41°C (high = +100°C)
> >
> >
> > temp2 is the cpu temperature(matches bios), temp1 is the northbridge(i
> > think, bios says "system temp").
> >
> > i have watercooling, and well :P when i touch the "tube", its normal
> > room temperature, and believe me, i would notice if it was 45.. this is
> > with my cpu at idle - at full load on all 4 cores, temp2 says 35, and
> > ~60 on coretemp, and THIS i would surely be able to notice over room
> > temp :)
The coretemp driver reports the CPU _core_ temperature. That's not
something you can touch, believe me (unless you are an electron.)
Also note that the CPU temperature reported by the IT8718F may or may
not match the reality. To make sure, you'd need to know the type of
thermal diode expected by the IT8718F, the type of thermal diode in
your CPU, compute the correction factor if there is one. And you'd need
to know where the thermal diode is exactly. It is most certainly built
into the CPU, but some motherboard makers are doing weird things.
22°C seems very low to me, even for water-cooling. Note that
non-linearity of thermal diodes makes measurements inaccurate as they
get away from the expected operating point. I guess that thermal diodes
used in CPUs are calibrated for best results around the expected
temperature when using air-cooling, rather than water-cooling.
> >
> > any progress on this bug?
I still need to be convinced that there is a bug here.
> >
> > >
> > > The reason is that bios did report same temperatures as coretemp in 2.6.24,
> > > moreover some time ago I have run a cpu tool (don't remember its name) on windows
In my experience, the BIOS is more likely to get the information from
the on-board hardware monitoring chip than from the CPU MSRs as the
coretemp driver does.
> > > which similar to coretemp reads from each core directly, sensor data ,
> > > and I noticed that temperature that bios reports is exactly the average
If that windows tool was not written by Intel, then chances are that
the author had as much difficulties as we did to get the correct TJmax
values for the different CPU models, so it's hardly meaningful. And
even a tool written by Intel themselves, I wouldn't necessarily trust
it, given how hard it was to get the information from them.
> > > temperature of both cores
> > > (I had to run this on windows - intel haven't released
> > > drivers for their QST for temperature monitoring from bios - very sad)
> > >
> > > And the driver did say in kernel log that TJMAX is 85C
Which driver, which kernel? As I wrote above, the coretemp heuristic
changed in kernel 2.6.25, so the fact that a previous kernel was
reporting a different tjmax value is irrelevant. Unless you have
additional documentation from Intel, I would tend to believe that the
coretemp driver in 2.6.25 is correct. But feel free to report the exact
CPU model you have (with CPUID info) to Rudolf, if he gets enough
reports about a specific CPU model which most people believe gets the
wrong tjmax, he can fix the driver.
> > >
> > > Lets at least make a kernel option to override tjmax?
That's a possibility for sure, but what we would really need is to
adjust the coretemp driver heuristics to always get it right - if
that's not already the case, that is. I'll let Rudolf decide anyway.
Note that all in all, the absolute temperature doesn't really matter
anyway. What matters is how far you are from TJmax.
> Could it be that due to latest thermal changes ACPI is reading
> temperatures more often, or started to read sensors that interfere with
> libsensors?
No, there's a much more simple explanation for this change users are
reporting, see above. Plus, I fail to see how ACPI could interfere with
the coretemp driver as all, as it gets its values from MSRs and not I/O
ports.
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists