Skip to contentSkip to conversation

k8temp, BE-2350 CPU

lm-sensors Rudolf Marek 8 participants 14 messages Aug 9, 2007 – Nov 26, 2007

Subsystems (2)
lore
Share & tools
lore

Rudolf Marek

author maintainer
#0 lore raw

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

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 13 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

Quoted 8 lines
root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Or even better output of cpuid utillity?

Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuqvT3J9wPJqZRNURAl22AKCrWdYSRaU7yWQ8W8YXQ6kuMbWzJgCeJfwg kyqz2BC9CRDjeNY37zDE+8s=Ig1D
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 5 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

root@joyeuse:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 107
model name      : AMD Athlon(tm) X2 Dual Core Processor BE-2350
stepping        : 1
cpu MHz         : 2099.919
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy misalignsse
bogomips        : 4202.60
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps

processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) X2 Dual Core Processor BE-2350
stepping : 1
cpu MHz : 2099.919
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy misalignsse
bogomips : 4200.00
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps

Quoted 1 line

Or even better output of cpuid utillity?

root@joyeuse:~# cpuid
 eax in    eax      ebx      ecx      edx
00000000 00000001 68747541 444d4163 69746e65
00000001 00060fb1 01020800 00002001 178bfbff
80000000 80000018 68747541 444d4163 69746e65
80000001 00060fb1 0000464a 0000011f ebd3fbff
80000002 20444d41 6c687441 74286e6f 5820296d
80000003 75442032 43206c61 2065726f 636f7250
80000004 6f737365 45422072 3533322d 00000030
80000005 ff08ff08 ff20ff20 40020140 40020140
80000006 00000000 42004200 02008140 00000000
80000007 00000000 00000000 00000000 0000007f
80000008 00003028 00000000 00000001 00000000
80000009 00000000 00000000 00000000 00000000
8000000a 00000001 00000040 00000000 00000002
8000000b 00000000 00000000 00000000 00000000
8000000c 00000000 00000000 00000000 00000000
8000000d 00000000 00000000 00000000 00000000
8000000e 00000000 00000000 00000000 00000000
8000000f 00000000 00000000 00000000 00000000
80000010 00000000 00000000 00000000 00000000
80000011 00000000 00000000 00000000 00000000
80000012 00000000 00000000 00000000 00000000
80000013 00000000 00000000 00000000 00000000
80000014 00000000 00000000 00000000 00000000
80000015 00000000 00000000 00000000 00000000
80000016 00000000 00000000 00000000 00000000
80000017 00000000 00000000 00000000 00000000
80000018 00000000 00000000 00000000 00000000

Vendor ID: "AuthenticAMD"; CPUID level 1

AMD-specific functions
Version 00060fb1:
Family: 15 Model: 11 []

Standard feature flags 178bfbff:
Floating Point Unit
Virtual Mode Extensions
Debugging Extensions
Page Size Extensions
Time Stamp Counter (with RDTSC and CR4 disable bit) Model Specific Registers with RDMSR & WRMSR PAE - Page Address Extensions
Machine Check Exception
COMPXCHG8B Instruction
APIC
SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions MTRR - Memory Type Range Registers
Global paging extension
Machine Check Architecture
Conditional Move Instruction
PAT - Page Attribute Table
PSE-36 - Page Size Extensions
19 - reserved
MMX instructions
FXSAVE/FXRSTOR
25 - reserved
26 - reserved
28 - reserved
Generation: 15 Model: 11
Extended feature flags ebd3fbff:
Floating Point Unit
Virtual Mode Extensions
Debugging Extensions
Page Size Extensions
Time Stamp Counter (with RDTSC and CR4 disable bit) Model Specific Registers with RDMSR & WRMSR PAE - Page Address Extensions
Machine Check Exception
COMPXCHG8B Instruction
APIC
SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions MTRR - Memory Type Range Registers
Global paging extension
Machine Check Architecture
Conditional Move Instruction
PAT - Page Attribute Table
PSE-36 - Page Size Extensions
20 - reserved
AMD MMX Instruction Extensions
MMX instructions
FXSAVE/FXRSTOR
25 - reserved
27 - reserved
29 - reserved
3DNow! Instruction Extensions
3DNow instructions

Processor name string: AMD Athlon(tm) X2 Dual Core Processor BE-2350 L1 Cache Information:
2/4-MB Pages:
Data TLB: associativity 255-way #entries 8
Instruction TLB: associativity 255-way #entries 8
4-KB Pages:
Data TLB: associativity 255-way #entries 32 Instruction TLB: associativity 255-way #entries 32
L1 Data cache:
size 64 KB associativity 2-way lines per tag 1 line size 64
L1 Instruction cache:
size 64 KB associativity 2-way lines per tag 1 line size 64

L2 Cache Information:
2/4-MB Pages:
Data TLB: associativity L2 off #entries 0 Instruction TLB: associativity L2 off #entries 0
4-KB Pages:
Data TLB: associativity 2-way #entries 0 Instruction TLB: associativity 2-way #entries 0 size 2 KB associativity L2 off lines per tag 129 line size 64

Advanced Power Management Feature Flags
Has temperature sensing diode
Supports Frequency ID control
Supports Voltage ID control
Maximum linear address: 48; maximum phys address 40

Signature · 10 lines
Cheers,
Alistair.

137/1 Warrender Park Road, Edinburgh, UK.


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Rudolf Marek

Hi Bernhard!

Sooo... the 49 needs to be substracted even from the LSB bits! Does it really work then ;) ? If so then cool,
I will find out what are the CPUIDs for the revF.

Quoted 11 lines

The formula has changed indeed, see page 181 of:

http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf

I wrote a quick and dirty patch. It works for me on both an old Sempron and a Brisbane, but it's not yet production quality ;)

It uses the cpuid "100mhzsteps" flag to decide which formula to use, because I couldn't find any information about existing cpuid "model" values.

I think I overseen that information, I simply though that the temperature will be just truncated to nearest degC.

Please CC the list too. Unfortunately I dont know if I will be online in the evening, I moved to flat and still no internet.
For the CPUID range of revF I would suggest to check the
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/33610.pdf

Page 7, I think you may use > operator in IF to check if CPUID is bigger or equal than first CPUID of the revF series.

Gotta work now ;)

Signature · 17 lines
S přátelským pozdravem / Best regards / Mit freundlichen Grüßen

Ing. Rudolf Marek
SYSGO s.r.o.
Zelený pruh 99
CZ-14800 Praha 4
Phone: +420 222138 627, +49 6136 9948 627
Fax: +420 296374890, +49 6136 9948 1 627
[email protected]

http://www.sysgo.com | http://www.elinos.com | http://www.pikeos.com


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Rudolf Marek

Hi!

Quoted 2 lines · Rudolf Marek

Sooo... the 49 needs to be substracted even from the LSB bits! Does it really work then ;) ? If so then cool,

Seems to works on my Brisbane BE-2350, the reported temperatures look reasonable.

Quoted 5 lines

For the CPUID range of revF I would suggest to check the
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/33610.pdf

Page 7, I think you may use > operator in IF to check if CPUID is bigger or equal than first CPUID of the revF series.

Thanks, that's what I was looking for.

I revised my patch to use the CPUID model to determine the CPU revision.

The patch now uses a function pointer for the selected conversion formula. Not sure if you'll like it, but to me it looks better than using "if" and a macro.

Regards,
Bernhard

drivers/hwmon/k8temp.c +26 -5
@@ -32,7 +32,6 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 
-#define TEMP_FROM_REG(val)	(((((val) >> 16) & 0xff) - 49) * 1000)
 #define REG_TEMP	0xe4
 #define SEL_PLACE	0x40
 #define SEL_CORE	0x04
@@ -47,6 +46,7 @@ struct k8temp_data {
 	/* registers values */
 	u8 sensorsp;		/* sensor presence bits - SEL_CORE & SEL_PLACE */
 	u32 temp[2][2];		/* core, place */
+	u32 (*convert)(u32);
 };
 
 static struct k8temp_data *k8temp_update_device(struct device *dev)
@@ -94,6 +94,16 @@ static struct k8temp_data *k8temp_update
 	return data;
 }
 
+static u32 convert_rev_f(u32 val)
+{
+	return (((((val) >> 16) & 0xff) - 49) * 1000);
+}
+
+static u32 convert_rev_g(u32 val)
+{
+	return (((((val) >> 14) & 0x3ff) - 49) * 250);
+}
+
 /*
  * Sysfs stuff
  */
@@ -116,8 +126,8 @@ static ssize_t show_temp(struct device *
 	int place = attr->index;
 	struct k8temp_data *data = k8temp_update_device(dev);
 
-	return sprintf(buf, "%d\n",
-		       TEMP_FROM_REG(data->temp[core][place]));
+	u32 temp = data->convert(data->temp[core][place]);
+	return sprintf(buf, "%d\n", temp);
 }
 
 /* core, place */
@@ -142,10 +152,15 @@ static int __devinit k8temp_probe(struct
 	u8 scfg;
 	u32 temp;
 	struct k8temp_data *data;
-	u32 cpuid = cpuid_eax(1);
+	struct cpuinfo_x86 *c = cpu_data;
+
+	if (c->x86 != 15) {
+		err = -ENODEV;
+		goto exit;
+	}
 
 	/* this feature should be available since SH-C0 core */
-	if ((cpuid == 0xf40) || (cpuid == 0xf50) || (cpuid == 0xf51)) {
+	if (c->x86_model < 6 && c->x86_mask < 8) {
 		err = -ENODEV;
 		goto exit;
 	}
@@ -155,6 +170,12 @@ static int __devinit k8temp_probe(struct
 		goto exit;
 	}
 
+	if (c->x86_model < 96) {			/* up to core F */
+		data->convert = &convert_rev_f;
+	} else {
+		data->convert = &convert_rev_g;
+	}
+		
 	pci_read_config_byte(pdev, REG_TEMP, &scfg);
 	scfg &= ~(SEL_PLACE | SEL_CORE);		/* Select sensor 0, core0 */
 	pci_write_config_byte(pdev, REG_TEMP, scfg);

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Rudolf Marek

Hi Bernhard,

+static u32 convert_rev_f(u32 val)
+{
+ return (((((val) >> 16) & 0xff) - 49) * 1000);
+}
+
+static u32 convert_rev_g(u32 val)
+{
+ return (((((val) >> 14) & 0x3ff) - 49) * 250);
+}

Are you sure those are correct? The datasheets suggest that you need first extract the 0.25 degC from two lowest bits and THEN subtract 49.

Your code does it first. Your method will work only if AMD made a mistake in documentation. Are you sure?

Thanks,

Rudolf

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Rudolf Marek
Quoted 5 lines · Rudolf Marek

Are you sure those are correct? The datasheets suggest that you need first extract the 0.25 degC from two lowest bits and THEN subtract 49.

Your code does it first. Your method will work only if AMD made a mistake in documentation. Are you sure?

You're right, it should be (raw * 250) - 49000, as M. G. Berberich also pointed out to me.

This means the original formula should have worked, so either the documentation is wrong, or the sensors are broken (as someone at the AMD forums claims).

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw
In reply to Rudolf Marek
Quoted 7 lines · Bernhard Seibold
Quoted 5 lines · Rudolf Marek

Are you sure those are correct? The datasheets suggest that you need first extract the 0.25 degC from two lowest bits and THEN subtract 49.

Your code does it first. Your method will work only if AMD made a mistake in documentation. Are you sure?

Quoted 6 lines

You're right, it should be (raw * 250) - 49000, as M. G. Berberich also pointed out to me.

This means the original formula should have worked, so either the documentation is wrong, or the sensors are broken (as someone at the AMD forums claims).

Yes it is broken, some Errata suggests this :/

Rudolf

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#7 lore raw
In reply to Rudolf Marek
Quoted 9 lines · Rudolf Marek <rudolf.marek <at> sysgo.com> writes:
Quoted 7 lines · Bernhard Seibold
Quoted 5 lines · Rudolf Marek

Are you sure those are correct? The datasheets suggest that you need first extract the 0.25 degC from two lowest bits and THEN subtract 49.

Your code does it first. Your method will work only if AMD made a mistake in documentation. Are you sure?

Quoted 9 lines
Quoted 6 lines

You're right, it should be (raw * 250) - 49000, as M. G. Berberich also pointed out to me.

This means the original formula should have worked, so either the documentation is wrong, or the sensors are broken (as someone at the AMD forums claims).

Yes it is broken, some Errata suggests this :/

I just installed the patch on my BE-2350 system and the results seem reasonable. Does this mean that the hardware sensor itself is broken and that the results are reasonable by chance?

Juergen

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author maintainer
#8 lore raw
In reply to Rudolf Marek

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

Quoted 3 lines

I just installed the patch on my BE-2350 system and the results seem reasonable. Does this mean that the hardware sensor itself is broken and that the results are reasonable by chance?

No it seems that only certain CPUs have problems. If it is reasonable than it probably works. What is your CPUID? (cat /proc/cpuinfo or run cpuid util)

Thanks,
Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG36p/3J9wPJqZRNURAvveAJ93MDSGly9HBs4LQyO6PI56Hqc4hACeMs/h C5dEUHaCnW5Mlf44yezRq88=Vm+M
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#9 lore raw
In reply to Rudolf Marek
Quoted 26 lines · On Thursday 09 August 2007 07:38:29 Alistair John Strachan wrote:
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Sorry to nag, Rudolf, but has there been any progress on this issue?

Signature · 9 lines
Cheers,
Alistair.

137/1 Warrender Park Road, Edinburgh, UK.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#10 lore raw
In reply to Rudolf Marek

Hi Alistair,

Quoted 27 lines · Alistair John Strachan
Quoted 26 lines · On Thursday 09 August 2007 07:38:29 Alistair John Strachan wrote:
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Sorry to nag, Rudolf, but has there been any progress on this issue?

My understanding is that some K8 CPU series simply have broken thermal sensors and there's not much we can do about it. In some cases you may try applying arbitrary offsets to get somewhat realistic (yet incorrect) values, in others even that won't work.

Maybe we will have to blacklist some CPU series from the k8temp driver to avoid the confusion.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#11 lore raw
In reply to Rudolf Marek

For me (AMD Athlon x2 64 4400+ and a asus MNPV-VM motherboard) it gives :

cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp* -9000
-11000
2000
-15000

and the sensors command seems to give a temp1 value (witch is supposed to be the cpu one) lower than the one given by bios when I reboot (don't know how to get the bios given temperature without rebooting and seeing it in the bios setup)

Welle that's strange and insecure to configure something confident

cordialement,

Quoted 36 lines · Jean Delvare

Hi Alistair,

Quoted 27 lines · Alistair John Strachan
Quoted 26 lines · On Thursday 09 August 2007 07:38:29 Alistair John Strachan wrote:
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Sorry to nag, Rudolf, but has there been any progress on this issue?

Quoted 8 lines

My understanding is that some K8 CPU series simply have broken thermal sensors and there's not much we can do about it. In some cases you may try applying arbitrary offsets to get somewhat realistic (yet incorrect) values, in others even that won't work.

Maybe we will have to blacklist some CPU series from the k8temp driver to avoid the confusion.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#12 lore raw
In reply to Rudolf Marek

seems I have such a CPU, too:
cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp* 16000
-6000
5000
5000

from /proc/cpuinfo:
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
stepping : 1

Board: Asrock AM2NF3-VSTA

regards

Quoted 13 lines · Moebius

For me (AMD Athlon x2 64 4400+ and a asus MNPV-VM motherboard) it gives :

cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp* -9000
-11000
2000
-15000

and the sensors command seems to give a temp1 value (witch is supposed to be the cpu one) lower than the one given by bios when I reboot (don't know how to get the bios given temperature without rebooting and seeing it in the bios setup)

Quoted 48 lines

Welle that's strange and insecure to configure something confident

cordialement,

Quoted 42 lines · Jean Delvare

Hi Alistair,

Quoted 27 lines · Alistair John Strachan
Quoted 26 lines · On Thursday 09 August 2007 07:38:29 Alistair John Strachan wrote:
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Sorry to nag, Rudolf, but has there been any progress on this issue?

My understanding is that some K8 CPU series simply have broken thermal sensors and there's not much we can do about it. In some cases you may try applying arbitrary offsets to get somewhat realistic (yet incorrect) values, in others even that won't work.

Maybe we will have to blacklist some CPU series from the k8temp driver to avoid the confusion.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#13 lore raw
In reply to Rudolf Marek

I precise with /proc/cpuinfo :

Quoted 4 lines

cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
stepping : 2

very similar....

Quoted 78 lines · Gerold Gruber

seems I have such a CPU, too:
cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp* 16000
-6000
5000
5000

from /proc/cpuinfo:
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
stepping : 1

Board: Asrock AM2NF3-VSTA

regards

Quoted 59 lines · Moebius

For me (AMD Athlon x2 64 4400+ and a asus MNPV-VM motherboard) it gives :

cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp* -9000
-11000
2000
-15000

and the sensors command seems to give a temp1 value (witch is supposed to be the cpu one) lower than the one given by bios when I reboot (don't know how to get the bios given temperature without rebooting and seeing it in the bios setup)

Welle that's strange and insecure to configure something confident

cordialement,

Quoted 40 lines · Jean Delvare

Hi Alistair,

Quoted 27 lines · Alistair John Strachan
Quoted 26 lines · On Thursday 09 August 2007 07:38:29 Alistair John Strachan wrote:
Quoted 25 lines · On Thursday 09 August 2007 06:53:23 Rudolf Marek wrote:

Hi,

Sorry for the delay. I'm CCing the list too please do too.

Quoted 20 lines · Alistair John Strachan

Hi,

I've noticed a problem with the k8temp driver on a new BE-2350 processor. It seems the sensors report bogus values on this CPU. This is when it is idling:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
-5000
-5000
-3000
1000

And this is under load:

root@joyeuse:~# cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp*
7000
12000
11000
17000
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

This is a socket AM2 processor. Any idea what's wrong? Using kernel 2.6.23-rc1, but it's also broken on Debian's 2.6.22.

Hmm perhaps the formula does not work anymore :/ Can you send me output of cat /proc/cpuinfo?

Sorry to nag, Rudolf, but has there been any progress on this issue?

My understanding is that some K8 CPU series simply have broken thermal sensors and there's not much we can do about it. In some cases you may try applying arbitrary offsets to get somewhat realistic (yet incorrect) values, in others even that won't work.

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

Maybe we will have to blacklist some CPU series from the k8temp driver to avoid the confusion.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors