Skip to contentSkip to conversation

hwmon: (coretemp) Add support for Atom D2000 and N2000 series CPU models

PATCH Applied Guenter Roeck 3 participants 3 messages Jun 6, 2012 – Jun 11, 2012

Subsystems (3)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH v2 2/3 hwmon: (coretemp) Add support for Atom D2000 and N2000 series CPU models

Document the Atom series D2000 and N2000 (Cedar Trail) as being supported. List and set TjMax for those series.

Cc Fenghua Yu <[email protected]>
Cc "R, Durgadoss" <[email protected]>

---
Still not clear if this is needed, or if the CPUs support the IA32_TEMPERATURE_TARGET register. I didn;t find anything in the documentation, so I suspect it is necessary. Would be nice to get it confirmed, though.

v2: Tjmax is 100 degrees C for all D2000 and N2000 CPU variants.
Update code to reflect it.

 Documentation/hwmon/coretemp |    5 ++++-
 drivers/hwmon/coretemp.c     |    8 +++++---
 2 files changed, 9 insertions(+), 4 deletions(-)
Documentation/hwmon/coretemp +4 -1
index f6aed440..651a7ab 100644
@@ -7,7 +7,8 @@ Supported chips:
     CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm),
                               0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm),
                               0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield),
-                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom)
+                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom),
+                              0x36 (Cedar Trail Atom)
     Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual
                Volume 3A: System Programming Guide
                http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
@@ -68,6 +69,8 @@ Process		Processor					TjMax(C)
 
 32nm		Atom Processors
 		Z2460						90
+		D2500/2550/2700					100
+		N2600/2650/2800/2850				100
 
 45nm		Xeon Processors 5400 Quad-Core
 		X5492, X5482, X5472, X5470, X5460, X5450	85
drivers/hwmon/coretemp.c +5 -3
index 495add5..928a3ec 100644
@@ -210,10 +210,12 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,
 
 	/* Atom CPUs */
 
-	if (c->x86_model = 0x1c || c->x86_model = 0x26
-	    || c->x86_model = 0x27) {
+	if (c->x86_model = 0x36) {
+		usemsr_ee = 0;
+		tjmax = 100000;
+	} else if (c->x86_model = 0x1c || c->x86_model = 0x26
+		   || c->x86_model = 0x27) {
 		usemsr_ee = 0;
-
 		host_bridge = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0));
 
 		if (host_bridge && host_bridge->vendor = PCI_VENDOR_ID_INTEL
Signature · 7 lines
1.7.5.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Applied
#1 lore raw

Re: [lm-sensors] [PATCH v2 2/3] hwmon: (coretemp) Add support for Atom D2000 and N2000 series CPU mo

Quoted 10 lines · Guenter Roeck

Document the Atom series D2000 and N2000 (Cedar Trail) as being supported. List and set TjMax for those series.

Cc Fenghua Yu <[email protected]>
Cc "R, Durgadoss" <[email protected]>

---
Still not clear if this is needed, or if the CPUs support the IA32_TEMPERATURE_TARGET register. I didn;t find anything in the documentation, so I suspect it is necessary. Would be nice to get it confirmed, though.

Would be great, yes, but I'm afraid you're right. Durga, Fenghua, if you have access to these parts, can you check for IA32_TEMPERATURE_TARGET support?

Quoted 23 lines

v2: Tjmax is 100 degrees C for all D2000 and N2000 CPU variants.
Update code to reflect it.

 Documentation/hwmon/coretemp |    5 ++++-
 drivers/hwmon/coretemp.c     |    8 +++++---
 2 files changed, 9 insertions(+), 4 deletions(-)
Documentation/hwmon/coretemp +2 -1
index f6aed440..651a7ab 100644
@@ -7,7 +7,8 @@ Supported chips:
     CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm),
                               0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm),
                               0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield),
-                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom)
+                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom),
+                              0x36 (Cedar Trail Atom)
     Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual
                Volume 3A: System Programming Guide
                http://softwarecommunity.intel.com/Wiki/Mobility/720.htm

Documentation/hwmon/coretemp Process Processor TjMax(C) · line 73

Quoted 5 lines
Documentation/hwmon/coretemp +2 -0
@@ -68,6 +69,8 @@ Process		Processor					TjMax(C)
 
 32nm		Atom Processors
 		Z2460						90
+		D2500/2550/2700					100
+		N2600/2650/2800/2850				100

I've inverted these lists to have decreasing numbers, as done everywhere else in the document (no idea why...)

Quoted 13 lines
Documentation/hwmon/coretemp +0 -0
 45nm		Xeon Processors 5400 Quad-Core
 		X5492, X5482, X5472, X5470, X5460, X5450	85
drivers/hwmon/coretemp.c +0 -2
index 495add5..928a3ec 100644
@@ -210,10 +210,12 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,
 
 	/* Atom CPUs */
 
-	if (c->x86_model = 0x1c || c->x86_model = 0x26
-	    || c->x86_model = 0x27) {

drivers/hwmon/coretemp.c static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id, · line 221

Quoted 10 lines
drivers/hwmon/coretemp.c +5 -1
+	if (c->x86_model = 0x36) {
+		usemsr_ee = 0;
+		tjmax = 100000;
+	} else if (c->x86_model = 0x1c || c->x86_model = 0x26
+		   || c->x86_model = 0x27) {
 		usemsr_ee = 0;
-
 		host_bridge = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0));
 
 		if (host_bridge && host_bridge->vendor = PCI_VENDOR_ID_INTEL

Applied, thanks.

Signature · 6 lines
Jean Delvare

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

Re: [lm-sensors] [PATCH v2 2/3] hwmon: (coretemp) Add support for Atom D2000 and N2000 series CPU mo

In reply to Guenter Roeck
Quoted 40 lines · Jean Delvare
Quoted 10 lines · Guenter Roeck

Document the Atom series D2000 and N2000 (Cedar Trail) as being supported. List and set TjMax for those series.

Cc Fenghua Yu <[email protected]>
Cc "R, Durgadoss" <[email protected]>

---
Still not clear if this is needed, or if the CPUs support the IA32_TEMPERATURE_TARGET register. I didn;t find anything in the documentation, so I suspect it is necessary. Would be nice to get it confirmed, though.

Would be great, yes, but I'm afraid you're right. Durga, Fenghua, if you have access to these parts, can you check for IA32_TEMPERATURE_TARGET support?

Quoted 24 lines

v2: Tjmax is 100 degrees C for all D2000 and N2000 CPU variants.
Update code to reflect it.

 Documentation/hwmon/coretemp |    5 ++++-
 drivers/hwmon/coretemp.c     |    8 +++++---
 2 files changed, 9 insertions(+), 4 deletions(-)
Documentation/hwmon/coretemp +2 -1
index f6aed440..651a7ab 100644
@@ -7,7 +7,8 @@ Supported chips:
     CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm),
                               0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm),
                               0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield),
-                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom)
+                              0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom),
+                              0x36 (Cedar Trail Atom)
     Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual
                Volume 3A: System Programming Guide
                http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
@@ -68,6 +69,8 @@ Process		Processor					TjMax(C)
 
Quoted 8 lines

Documentation/hwmon/coretemp Process Processor TjMax(C) · line 73

Quoted 4 lines
Documentation/hwmon/coretemp +2 -0
 32nm		Atom Processors
 		Z2460						90
+		D2500/2550/2700					100
+		N2600/2650/2800/2850				100

I've inverted these lists to have decreasing numbers, as done everywhere else in the document (no idea why...)

Not always, though ;)

Quoted 22 lines
Quoted 22 lines
Documentation/hwmon/coretemp +0 -0
 45nm		Xeon Processors 5400 Quad-Core
 		X5492, X5482, X5472, X5470, X5460, X5450	85
drivers/hwmon/coretemp.c +5 -3
index 495add5..928a3ec 100644
@@ -210,10 +210,12 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,
 
 	/* Atom CPUs */
 
-	if (c->x86_model = 0x1c || c->x86_model = 0x26
-	    || c->x86_model = 0x27) {
+	if (c->x86_model = 0x36) {
+		usemsr_ee = 0;
+		tjmax = 100000;
+	} else if (c->x86_model = 0x1c || c->x86_model = 0x26
+		   || c->x86_model = 0x27) {
 		usemsr_ee = 0;
-
 		host_bridge = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0));
 
Quoted 4 lines

drivers/hwmon/coretemp.c static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id, · line 221

Quoted 1 line
drivers/hwmon/coretemp.c +0 -0
 		if (host_bridge && host_bridge->vendor = PCI_VENDOR_ID_INTEL

Applied, thanks.

Thanks ... and sorry for the unnecessary whitespace change above.

Guenter

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