From: Rudolf Marek <r.marek@assembler.cz>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] AMD K10 (Phenom) Sensor Module
Date: Wed, 16 Apr 2008 16:07:02 +0000 [thread overview]
Message-ID: <48062426.5040603@assembler.cz> (raw)
In-Reply-To: <47642FDA.6000801@cox.net>
[-- Attachment #1: Type: text/plain, Size: 2580 bytes --]
Hi Fred,
I think we can CC the list too, so others know that we work on this. I'm CCing
some people which got interrested too.
> Now I'm down to the specifics peculiar to the k10 family. I see that
> the calculation for CurTmp is different for k10,
> but am a bit confused on the core selection code as pertains to the k10
> and a bit lost in the AMD BKDG. Seems to
> be a bit of conflict on how many sensors there are (1 vs. 4). It also
I think it is just one, It might be undocumented for any other sensors.
> appears that the k10 reports a relative temp rather
> than an absolute (referenced to 49) like the k8's did.
Yes the temperature is just non-physical. So to make the driver sense we need to
know the MAX value. The thermal guide is still not published, but Jordan is
hopefully still trying ;) There is some suspicion that it is 70C (TControlMAX
from older processor family).
I'm trying too, but now I want to get sorted some errata problems - k8temps are
sometimes wrong. Btw all K10 processors still suffers from errata 319 Inaccurate
Temperature Measurement
Description
The internal thermal sensor used for CurTmp (F3xA4[31:21]), hardware thermal
control (HTC), software thermal control (STC), and the sideband temperature
sensor interface (SB-TSI) may report inconsistent values.
So question is if to go for the driver at all :/
> Eventually, I was thinking that this driver should be called kxtemp, or
> something similar and support both k8/k10.
> There would need to be a bit more work on CPUID, but that shouldn't be
> too difficult. Anyway, as an example, I have:
>
> #define TEMP_FROM_REG_K08(val) (((((val) >> 16) & 0xff) - 49) * 1000)
> #define TEMP_FROM_REG_K10(val) (((((val) >> 16) & 0xff) / 8) * 1000)
Hmm the reg is 0xA4 and temp is in bits 31:21 so perhaps >>16 is wrong too?
> Haven't subscribed to lm-sensors since it appears that you are basically
> the only one working on this. I need some guidance,
> but am willing to help. Am an old (rusty) kernel hacker, though have
> not played with CPU/NB registers before. Mostly
> peripheral drivers and tcp/ip stack code tuning.
Well never mind I can certainly help.
> Look forward to working with you on this,
Question is if we can go just for one driver, it depends on amount of changes.
I'm attaching some striped down version driver, which MIGHT work. Quick hack,
but well will see.
Just replace your k8temp.c with one attached and recompile kernel. Run
sufficiently knew 'sensors' command, maybe it will print something useful ;)
Thanks,
Rudolf
[-- Attachment #2: k8temp.c --]
[-- Type: application/octet, Size: 4652 bytes --]
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-04-16 16:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-15 19:49 [lm-sensors] AMD K10 (Phenom) Sensor Module Michael C Castle
2007-12-15 21:45 ` Rudolf Marek
2008-04-16 16:07 ` Rudolf Marek [this message]
2008-04-16 22:48 ` Rudolf Marek
2008-04-19 5:44 ` Fred R. Beck
2008-04-19 8:58 ` Jean Delvare
2008-04-19 15:53 ` Fred R. Beck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48062426.5040603@assembler.cz \
--to=r.marek@assembler.cz \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.