hwmon: (coretemp) Improve support of recent Atom CPU models
PATCH 1/1 hwmon: (coretemp) Improve support of recent Atom CPU models
Document the new Atom series (Tunnel Creek and Medfield) as being supported, and list TjMax for the Atom E600 series.
Also enable the Atom tjmax heuristic for these Atom CPU models.
---
This patch has been sitting in my tree for months now for no good reason, it's about time to push it upstream. Testers are welcome.
Documentation/hwmon/coretemp | 5 ++++- drivers/hwmon/coretemp.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-)
Documentation/hwmon/coretemp +4 -1
@@ -6,7 +6,8 @@ Supported chips: Prefix: 'coretemp' 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) + 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield), + 0x26 (Tunnel Creek Atom), 0x27 (Medfield 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
@@ -85,6 +86,8 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110 45nm Core2 Processors Solo ULV SU3500/3300 100
drivers/hwmon/coretemp.c +2 -1
@@ -210,7 +210,8 @@ static int adjust_tjmax(struct cpuinfo_x/* Atom CPUs */ -if (c->x86_model =0x1c ) { +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 ));
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 10 lines · Jean Delvare
Document the new Atom series (Tunnel Creek and Medfield) as being supported, and list TjMax for the Atom E600 series.
Also enable the Atom tjmax heuristic for these Atom CPU models.
Signed-off-by Jean Delvare <[email protected]>Cc Alexander Stein <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>Cc "R, Durgadoss" <[email protected]>
Minor comment below. Ignore it at your pleasure - I am not really sure if this is one we want to follow unless it is made non-strict.
Do you want me to take the patch ?
Thanks,
Guenter
Quoted 32 lines
---
This patch has been sitting in my tree for months now for no good reason, it's about time to push it upstream. Testers are welcome.Documentation/hwmon/coretemp | 5 ++++- drivers/hwmon/coretemp.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-)Documentation/hwmon/coretemp +4
-1@@ -6,7 +6,8 @@ Supported chips: Prefix: 'coretemp' 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) + 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield), + 0x26 (Tunnel Creek Atom), 0x27 (Medfield 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@@ -85,6 +86,8 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110 45nm Core2 Processors Solo ULV SU3500/3300 100
drivers/hwmon/coretemp.c static int adjust_tjmax(struct cpuinfo_x · line 214
Quoted 6 lines
drivers/hwmon/coretemp.c +2
-1@@ -210,7 +210,8 @@ static int adjust_tjmax(struct cpuinfo_x/* Atom CPUs */ -if (c->x86_model =0x1c ) { +if (c->x86_model =0x1c || c->x86_model =0x26 + || c->x86_model =0x27 ) {
Upstream seems to have decided about logical continuations.
groeck@groeck-laptop:~/src/linux-staging$ scripts/checkpatch.pl --strict patches/coretemp
CHECK: Logical continuations should be on the previous line
#63: FILE: drivers/hwmon/coretemp.c:214:
+ if (c->x86_model = 0x1c || c->x86_model = 0x26
+ || c->x86_model = 0x27) {Quoted 7 lines
drivers/hwmon/coretemp.c +0
-0usemsr_ee =0 ; host_bridge =pci_get_bus_and_slot (0 ,PCI_DEVFN (0 ,0 ));Signature · 2 lines
-- Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Am Mittwoch, 30. Mai 2012, 13:29:56 schrieb Jean Delvare:
Quoted 31 lines
Document the new Atom series (Tunnel Creek and Medfield) as being supported, and list TjMax for the Atom E600 series.
Also enable the Atom tjmax heuristic for these Atom CPU models.
Signed-off-by Jean Delvare <[email protected]>Cc Alexander Stein <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>Cc "R, Durgadoss" <[email protected]>---
This patch has been sitting in my tree for months now for no good reason, it's about time to push it upstream. Testers are welcome.Documentation/hwmon/coretemp | 5 ++++- drivers/hwmon/coretemp.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-)Documentation/hwmon/coretemp +2
-1@@ -6,7 +6,8 @@ Supported chips: Prefix: 'coretemp' 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) + 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield), + 0x26 (Tunnel Creek Atom), 0x27 (Medfield 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 93
Quoted 8 lines
Documentation/hwmon/coretemp +2
-0@@ -85,6 +86,8 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110 45nm Core2 Processors Solo ULV SU3500/3300 100
Maybe it makes sense to state here explicitly that the 110 degree TjMax for the E6XXT series cannot be autodetected and the user should use tjmax module parameter.
Quoted 15 lines
drivers/hwmon/coretemp.c +2
-1@@ -210,7 +210,8 @@ static int adjust_tjmax(struct cpuinfo_x/* Atom CPUs */ -if (c->x86_model =0x1c ) { +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 ));
Signature · 17 lines
Dipl.-Inf. Alexander Stein SYS TEC electronic GmbH August-Bebel-Str. 29 D-07973 Greiz Tel: +49-3661-6279-0, Fax: +49-3661-6279-99 eMail: [email protected] Internet: http://www.systec-electronic.com Managing Director: Dipl.-Phys. Siegmar Schmidt Commercial registry: Amtsgericht Jena, HRB 205563 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alexander,
Quoted 8 lines · Alexander Stein
Am Mittwoch, 30. Mai 2012, 13:29:56 schrieb Jean Delvare:
Quoted 7 lines
Documentation/hwmon/coretemp +2
-0@@ -85,6 +86,8 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110
Quoted 4 lines
Documentation/hwmon/coretemp Process Processor TjMax(C) · line 93
Quoted 2 lines
Documentation/hwmon/coretemp +0
-045nm Core2 Processors Solo ULV SU3500/3300 100Maybe it makes sense to state here explicitly that the 110 degree TjMax for the E6XXT series cannot be autodetected and the user should use tjmax module parameter.
Same holds for many other models, unfortunately, but there's no reason to treat the E600T series differently.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Guenter,
Quoted 12 lines · Guenter Roeck
Quoted 10 lines · Jean Delvare
Document the new Atom series (Tunnel Creek and Medfield) as being supported, and list TjMax for the Atom E600 series.
Also enable the Atom tjmax heuristic for these Atom CPU models.
Signed-off-by Jean Delvare <[email protected]>Cc Alexander Stein <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>Cc "R, Durgadoss" <[email protected]>
Quoted 6 lines
Reviewed-by Guenter Roeck <[email protected]>Minor comment below. Ignore it at your pleasure - I am not really sure if this is one we want to follow unless it is made non-strict.
Do you want me to take the patch ?
It's in my tree for now, I'll hand it over to you later if and only if you have patches which conflict with it.
Quoted 16 lines
drivers/hwmon/coretemp.c static int adjust_tjmax(struct cpuinfo_x · line 214
Quoted 10 lines
(...)
drivers/hwmon/coretemp.c +2
-1@@ -210,7 +210,8 @@ static int adjust_tjmax(struct cpuinfo_x/* Atom CPUs */ -if (c->x86_model =0x1c ) { +if (c->x86_model =0x1c || c->x86_model =0x26 + || c->x86_model =0x27 ) {Upstream seems to have decided about logical continuations.
groeck@groeck-laptop:~/src/linux-staging$ scripts/checkpatch.pl --strict patches/coretemp CHECK: Logical continuations should be on the previous line #63: FILE: drivers/hwmon/coretemp.c:214:
drivers/hwmon/coretemp.c static int adjust_tjmax(struct cpuinfo_x · line 214
Quoted 2 lines
drivers/hwmon/coretemp.c +2
-0+if (c->x86_model =0x1c || c->x86_model =0x26 + || c->x86_model =0x27 ) {
I don't use --strict.
(I don't even think it should exist... Important things shall be enforced, unimportant things should not so as to lower the barrier for new contributors. The above is definitely not important.)
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 17 lines · Jean Delvare
Hi Guenter,
Quoted 14 lines · Guenter Roeck
Quoted 10 lines · Jean Delvare
Document the new Atom series (Tunnel Creek and Medfield) as being supported, and list TjMax for the Atom E600 series.
Also enable the Atom tjmax heuristic for these Atom CPU models.
Signed-off-by Jean Delvare <[email protected]>Cc Alexander Stein <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>Cc "R, Durgadoss" <[email protected]>Reviewed-by Guenter Roeck <[email protected]>
Quoted 8 lines
Quoted 4 lines
Minor comment below. Ignore it at your pleasure - I am not really sure if this is one we want to follow unless it is made non-strict.
Do you want me to take the patch ?
It's in my tree for now, I'll hand it over to you later if and only if you have patches which conflict with it.
Nothing right now, so go with it.
Quoted 13 lines
Quoted 13 lines
drivers/hwmon/coretemp.c static int adjust_tjmax(struct cpuinfo_x · line 214
Quoted 10 lines
(...)
drivers/hwmon/coretemp.c +2
-1@@ -210,7 +210,8 @@ static int adjust_tjmax(struct cpuinfo_x/* Atom CPUs */ -if (c->x86_model =0x1c ) { +if (c->x86_model =0x1c || c->x86_model =0x26 + || c->x86_model =0x27 ) {Upstream seems to have decided about logical continuations.
Quoted 8 lines
drivers/hwmon/coretemp.c static int adjust_tjmax(struct cpuinfo_x · line 214
Quoted 5 lines
groeck@groeck-laptop:~/src/linux-staging$ scripts/checkpatch.pl --strict patches/coretemp CHECK: Logical continuations should be on the previous line #63: FILE: drivers/hwmon/coretemp.c:214:drivers/hwmon/coretemp.c +2
-0+if (c->x86_model =0x1c || c->x86_model =0x26 + || c->x86_model =0x27 ) {I don't use --strict.
Me not either, usually. Just remembered seeing the discussion on the kernel mailing list, otherwise I would not have mentioned it.
Quoted 4 lines
(I don't even think it should exist... Important things shall be enforced, unimportant things should not so as to lower the barrier for new contributors. The above is definitely not important.)
Agreed. It doesn't really make much sense to exist. Some other maintainers insist on following it, though, so one can not completely ignore it. Of course there are maintainers who force you to explicitly violate Documentation/CodingStyle if you want to get your code in, so it gets tricky at times to navigate the system ;).
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hello Jean,
Am Mittwoch, 30. Mai 2012, 18:02:34 schrieb Jean Delvare:
Quoted 11 lines
Hi Alexander,
Quoted 8 lines · Alexander Stein
Am Mittwoch, 30. Mai 2012, 13:29:56 schrieb Jean Delvare:
Quoted 7 lines
Documentation/hwmon/coretemp +2
-0@@ -85,6 +86,8 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110
Quoted 7 lines
Quoted 4 lines
Documentation/hwmon/coretemp Process Processor TjMax(C) · line 93
Quoted 2 lines
Documentation/hwmon/coretemp +0
-045nm Core2 Processors Solo ULV SU3500/3300 100Maybe it makes sense to state here explicitly that the 110 degree TjMax for the E6XXT series cannot be autodetected and the user should use tjmax module parameter.
Same holds for many other models, unfortunately, but there's no reason to treat the E600T series differently.
Well, you can't treat them differently actually. But a hint why the detected tjmax might not match would be very helpfull.
Alexander
Signature · 17 lines
Dipl.-Inf. Alexander Stein SYS TEC electronic GmbH August-Bebel-Str. 29 D-07973 Greiz Tel: +49-3661-6279-0, Fax: +49-3661-6279-99 eMail: [email protected] Internet: http://www.systec-electronic.com Managing Director: Dipl.-Phys. Siegmar Schmidt Commercial registry: Amtsgericht Jena, HRB 205563 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors