All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Support for Family 10h CPUs - Not all sensors are
@ 2009-11-21 17:28 Jan Bessai
  2009-11-21 20:11 ` Jean Delvare
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jan Bessai @ 2009-11-21 17:28 UTC (permalink / raw)
  To: lm-sensors

Hi,

according to AMD (
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41322.pdf
) not all AMD K10 CPUs have defect sensors. In fact only DR-* revisions
are affected. All CPUs with Socket AM3 as well as all Phenom II Processors
and some Opterons are unaffected (DA-*, RB-*, HY-*).
Please reconsider the statement "Embedded sensors are known to be
unreliable, and won't be supported ever.". Linux should not lack
temperature sensor support for such popular Processors.

Kind regards,

 Jan


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
@ 2009-11-21 20:11 ` Jean Delvare
  2009-11-22 20:18 ` Jan Bessai
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2009-11-21 20:11 UTC (permalink / raw)
  To: lm-sensors

On Sat, 21 Nov 2009 18:28:25 +0100, Jan Bessai wrote:
> according to AMD (
> http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41322.pdf
> ) not all AMD K10 CPUs have defect sensors. In fact only DR-* revisions
> are affected. All CPUs with Socket AM3 as well as all Phenom II Processors
> and some Opterons are unaffected (DA-*, RB-*, HY-*).
> Please reconsider the statement "Embedded sensors are known to be
> unreliable, and won't be supported ever.".

We can do that. But how does this translate into CPUID numbers? That's
all we can check.

> Linux should not lack temperature sensor support for such popular
> Processors.

This is a pointless statement, I hope you realize it. There are a lot
of things that should not be, but are still, for various reasons. Want
an example? A big company such as AMD shouldn't have released millions
of CPUs with broken thermal sensors. As it stands, we do what we can to
cope with their mistake.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
  2009-11-21 20:11 ` Jean Delvare
@ 2009-11-22 20:18 ` Jan Bessai
  2009-11-23  7:58 ` Clemens Ladisch
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jan Bessai @ 2009-11-22 20:18 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:
>> Linux should not lack temperature sensor support for such popular
>> Processors.
>>     
>
> This is a pointless statement, I hope you realize it. There are a lot
> of things that should not be, but are still, for various reasons. Want
> an example? A big company such as AMD shouldn't have released millions
> of CPUs with broken thermal sensors. As it stands, we do what we can to
> cope with their mistake.
Pardon, this was meant to be an argument for adding the drivers -
without any critical intention. I appreciate your work, I see that it
was AMD who released broken products and I just wanted to give a reason
for not dropping support for the complete k10 cpu family.



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
  2009-11-21 20:11 ` Jean Delvare
  2009-11-22 20:18 ` Jan Bessai
@ 2009-11-23  7:58 ` Clemens Ladisch
  2009-11-23  9:28 ` Jean Delvare
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Clemens Ladisch @ 2009-11-23  7:58 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:
> On Sat, 21 Nov 2009 18:28:25 +0100, Jan Bessai wrote:
> > according to AMD (
> > http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41322.pdf
> > ) not all AMD K10 CPUs have defect sensors. In fact only DR-* revisions
> > are affected. All CPUs with Socket AM3 as well as all Phenom II Processors
> > and some Opterons are unaffected (DA-*, RB-*, HY-*).
> > Please reconsider the statement "Embedded sensors are known to be
> > unreliable, and won't be supported ever.".
>  
> We can do that. But how does this translate into CPUID numbers?

Family 0xF, extended family 1, model 2.

Or, to quote a certain driver that happend to be posted on this list
recently:

static bool __devinit has_erratum_319(void)
{
	/*
	 * Erratum 319: The thermal sensor of older Family 10h processors
	 *              (B steppings) may be unreliable.
	 */
	return boot_cpu_data.x86 = 0x10 && boot_cpu_data.x86_model <= 2;
}


HTH
Clemens

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
                   ` (2 preceding siblings ...)
  2009-11-23  7:58 ` Clemens Ladisch
@ 2009-11-23  9:28 ` Jean Delvare
  2009-11-23 11:27 ` Clemens Ladisch
  2009-11-23 12:22 ` Jean Delvare
  5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2009-11-23  9:28 UTC (permalink / raw)
  To: lm-sensors

On Mon, 23 Nov 2009 08:58:37 +0100, Clemens Ladisch wrote:
> Jean Delvare wrote:
> > On Sat, 21 Nov 2009 18:28:25 +0100, Jan Bessai wrote:
> > > according to AMD (
> > > http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41322.pdf
> > > ) not all AMD K10 CPUs have defect sensors. In fact only DR-* revisions
> > > are affected. All CPUs with Socket AM3 as well as all Phenom II Processors
> > > and some Opterons are unaffected (DA-*, RB-*, HY-*).
> > > Please reconsider the statement "Embedded sensors are known to be
> > > unreliable, and won't be supported ever.".
> >  
> > We can do that. But how does this translate into CPUID numbers?
> 
> Family 0xF, extended family 1, model 2.
> 
> Or, to quote a certain driver that happend to be posted on this list
> recently:
> 
> static bool __devinit has_erratum_319(void)
> {
> 	/*
> 	 * Erratum 319: The thermal sensor of older Family 10h processors
> 	 *              (B steppings) may be unreliable.
> 	 */
> 	return boot_cpu_data.x86 = 0x10 && boot_cpu_data.x86_model <= 2;
> }

OK, this would lead to the following patch for sensors-detect. Can you
please test it?

Index: CHANGES
=================================--- CHANGES	(révision 5799)
+++ CHANGES	(copie de travail)
@@ -25,7 +25,7 @@
                   The SMSC LPC47M233 isn't currently supported
                   Support upcoming sysfs path to i2c adapters
                   Rename the modprobe configuration file to lm_sensors.conf
-                  Drop AMD K10 detection (unreliable sensors)
+                  Only report AMD Family 10h CPU with model > 2
                   Add detection for AMD Family 11h thermal sensors
                   Add detection for Intel Atom thermal sensors
                   Add detection for National Semiconductor LM73
Index: prog/detect/sensors-detect
=================================--- prog/detect/sensors-detect	(révision 5799)
+++ prog/detect/sensors-detect	(copie de travail)
@@ -1878,6 +1878,10 @@
 		driver => "k8temp",
 		detect => \&k8temp_pci_detect,
 	}, {
+		name => "AMD Family 10h thermal sensors",
+		driver => "to-be-written",
+		detect => \&fam10h_pci_detect,
+	}, {
 		name => "AMD Family 11h thermal sensors",
 		driver => "to-be-written",
 		detect => \&fam11h_pci_detect,
@@ -5334,6 +5338,25 @@
 	return 9;
 }
 
+sub fam10h_pci_detect
+{
+	return unless exists $pci_list{'1022:1203'};
+
+	# Errata 319 (Inaccurate Temperature Measurement) affects
+	# revisions DR-BA, DR-B2 and DR-B3, all have model number = 2.
+	# So we only pick CPU with model number > 2.
+	my $probecpu;
+	foreach $probecpu (@cpu) {
+		if ($probecpu->{vendor_id} eq 'AuthenticAMC' &&
+				$probecpu->{'cpu family'} = 0x10 &&
+				$probecpu->{model} > 2) {
+			return 9;
+		}
+	}
+	
+	return;
+}
+
 sub fam11h_pci_detect
 {
 	return unless exists $pci_list{'1022:1303'};

I have also updated wiki/Devices.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
                   ` (3 preceding siblings ...)
  2009-11-23  9:28 ` Jean Delvare
@ 2009-11-23 11:27 ` Clemens Ladisch
  2009-11-23 12:22 ` Jean Delvare
  5 siblings, 0 replies; 7+ messages in thread
From: Clemens Ladisch @ 2009-11-23 11:27 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:
> +		if ($probecpu->{vendor_id} eq 'AuthenticAMC' &&

  +		if ($probecpu->{vendor_id} eq 'AuthenticAMD' &&

-- 
Clemens

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] Support for Family 10h CPUs - Not all sensors are
  2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
                   ` (4 preceding siblings ...)
  2009-11-23 11:27 ` Clemens Ladisch
@ 2009-11-23 12:22 ` Jean Delvare
  5 siblings, 0 replies; 7+ messages in thread
From: Jean Delvare @ 2009-11-23 12:22 UTC (permalink / raw)
  To: lm-sensors

On Mon, 23 Nov 2009 12:27:54 +0100, Clemens Ladisch wrote:
> Jean Delvare wrote:
> > +		if ($probecpu->{vendor_id} eq 'AuthenticAMC' &&
> 
>   +		if ($probecpu->{vendor_id} eq 'AuthenticAMD' &&

Oops, thanks. Fixed and committed.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-23 12:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-21 17:28 [lm-sensors] Support for Family 10h CPUs - Not all sensors are Jan Bessai
2009-11-21 20:11 ` Jean Delvare
2009-11-22 20:18 ` Jan Bessai
2009-11-23  7:58 ` Clemens Ladisch
2009-11-23  9:28 ` Jean Delvare
2009-11-23 11:27 ` Clemens Ladisch
2009-11-23 12:22 ` Jean Delvare

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.