All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] error loading coretemp module for 2.6.21.5 kernel
@ 2007-12-27 23:52 Rutul Dave
  2007-12-28 20:13 ` Rudolf Marek
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rutul Dave @ 2007-12-27 23:52 UTC (permalink / raw)
  To: lm-sensors

[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]

Hello,

I am trying to use lm-sensors (version 2.10.5) with libsensors version 2.10.5.
The kernel is patched (with the add-coretemp-driver.patch and
coretemp-add-documentation.patch) from the following locations:
http://www.hobbes.ch/statisch/linuxfiles/patches/add-coretemp-driver.patch
http://www.hobbes.ch/statisch/linuxfiles/patches/coretemp-add-documentation.patch

Attached is the /proc/cpuinfo.

When trying to load the modules, I get the following errors:

[root@localhost ~]# dmesg | grep coretemp
[   76.687618] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.687802] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.687889] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.687986] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.688071] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.688156] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.688241] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[   76.688326] coretemp: Unknown CPU, please report to the
lm-sensors@lm-sensors.org
[root@localhost ~]#

I am able to run this successful on a dual-core CPU (Intel Xeon 5130).

Can anybody suggest how to get this to work on the E5420 CPU?

thank you,

Rutul

[-- Attachment #2: cpuinfo.e5420 --]
[-- Type: application/octet-stream, Size: 4769 bytes --]

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 5002.19
clflush size	: 64

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.46
clflush size	: 64

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.47
clflush size	: 64

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.47
clflush size	: 64

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 1
siblings	: 4
core id		: 0
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 13098.56
clflush size	: 64

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 1
siblings	: 4
core id		: 1
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.49
clflush size	: 64

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 1
siblings	: 4
core id		: 2
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.51
clflush size	: 64

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz
stepping	: 6
cpu MHz		: 2500.298
cache size	: 6144 KB
physical id	: 1
siblings	: 4
core id		: 3
cpu cores	: 4
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips	: 4999.51
clflush size	: 64


[-- 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

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

* Re: [lm-sensors] error loading coretemp module for 2.6.21.5 kernel
  2007-12-27 23:52 [lm-sensors] error loading coretemp module for 2.6.21.5 kernel Rutul Dave
@ 2007-12-28 20:13 ` Rudolf Marek
  2007-12-29 21:03 ` Rutul Dave
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Rudolf Marek @ 2007-12-28 20:13 UTC (permalink / raw)
  To: lm-sensors

Hi,

Your CPU is to new, I guess Penryn based.

The driver will work if you just fix:

 

                 /* check if family 6, models e, f */ 

                 if ((c->cpuid_level < 0) || (c->x86 != 0x6) || 

                     !((c->x86_model = 0xe) || (c->x86_model = 0xf))) {

to:
 

                 /* check if family 6, models e, f */ 

                 if ((c->cpuid_level < 0) || (c->x86 != 0x6) || 

                     !((c->x86_model = 0xe) || (c->x86_model = 0x17))) {

Thanks,

Rudolf

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

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

* Re: [lm-sensors] error loading coretemp module for 2.6.21.5 kernel
  2007-12-27 23:52 [lm-sensors] error loading coretemp module for 2.6.21.5 kernel Rutul Dave
  2007-12-28 20:13 ` Rudolf Marek
@ 2007-12-29 21:03 ` Rutul Dave
  2008-01-05 16:49 ` Jean Delvare
  2008-01-05 17:13 ` Rudolf Marek
  3 siblings, 0 replies; 5+ messages in thread
From: Rutul Dave @ 2007-12-29 21:03 UTC (permalink / raw)
  To: lm-sensors

Thanks Rudolf, your suggestion did work. I was able to load
coretemp.ko with the fix. The CPU model for the new processors is 0x17

[73247.627311] coretemp coretemp.0: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627413] coretemp coretemp.1: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627517] coretemp coretemp.2: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627634] coretemp coretemp.3: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627719] coretemp coretemp.4: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627824] coretemp coretemp.5: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.627967] coretemp coretemp.6: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!
[73247.628107] coretemp coretemp.7: This driver uses undocumented
features of Core CPU (Intel will not disclose the information to
individuals). Temperature might be wrong!


[root@localhost hwmon]# sensors
w83793-i2c-0-2f
Adapter: SMBus I801 adapter at 1100
VCoreA:    +1.20 V  (min =  +0.92 V, max =  +1.49 V)
VCoreB:    +1.20 V  (min =  +0.92 V, max =  +1.49 V)
Vtt:       +1.16 V  (min =  +1.08 V, max =  +1.33 V)
in3:       +0.51 V  (min =  +0.38 V, max =  +0.69 V)
in4:       +2.99 V  (min =  +1.34 V, max =  +1.65 V)   ALARM
+3.3V:     +3.28 V  (min =  +2.96 V, max =  +3.63 V)
+12V:     +11.62 V  (min = +10.75 V, max = +13.25 V)
+5V:       +5.05 V  (min =  +4.64 V, max =  +5.65 V)
5VSB:      +5.09 V  (min =  +4.64 V, max =  +5.65 V)
VBAT:      +3.26 V  (min =  +2.99 V, max =  +3.66 V)
fan1:        0 RPM  (min =  712 RPM)                   ALARM
fan2:        0 RPM  (min =  712 RPM)                   ALARM
fan3:        0 RPM  (min =  712 RPM)                   ALARM
fan4:        0 RPM  (min =  712 RPM)                   ALARM
fan5:        0 RPM  (min =  712 RPM)                   ALARM
fan6:        0 RPM  (min =  712 RPM)                   ALARM
fan7:        0 RPM  (min =  712 RPM)                   ALARM
fan8:        0 RPM  (min =  712 RPM)                   ALARM
fan9:        0 RPM  (min =  712 RPM)                   ALARM
fan10:       0 RPM  (min =  712 RPM)                   ALARM
CPU1 Temp: +12.0°C  (high = +75.0°C, hyst = +70.0°C)
CPU2 Temp: +17.0°C  (high = +75.0°C, hyst = +70.0°C)
temp3:     +35.8°C  (high = +75.0°C, hyst = +70.0°C)
temp4:     +35.0°C  (high = +75.0°C, hyst = +70.0°C)
temp5:       +29°C  (high =   +50°C, hyst =   +45°C)

w83627hf-isa-0290
Adapter: ISA adapter
VCore 1:   +4.08 V  (min =  +0.00 V, max =  +4.08 V)
VCore 2:   +4.08 V  (min =  +0.00 V, max =  +4.08 V)
+3.3V:     +4.08 V  (min =  +2.82 V, max =  +3.79 V)       ALARM
+5V:       +5.11 V  (min =  +5.89 V, max =  +3.28 V)       ALARM
+12V:     +11.61 V  (min =  +6.63 V, max = +15.50 V)
-12V:      +0.88 V  (min = -10.22 V, max = -13.10 V)       ALARM
-5V:       +1.99 V  (min =  +4.20 V, max =  +1.13 V)       ALARM
V5SB:      +5.70 V  (min =  +4.38 V, max =  +3.23 V)       ALARM
VBat:      +0.24 V  (min =  +1.18 V, max =  +1.82 V)       ALARM
fan1:        0 RPM  (min =    0 RPM, div = 2)
fan2:        0 RPM  (min = 3835 RPM, div = 2)              ALARM
fan3:        0 RPM  (min = 2689 RPM, div = 2)              ALARM
temp1:       -48°C  (high =   +60°C, hyst =   +55°C)   sensor = thermistor
temp2:     -48.0°C  (high =   +80°C, hyst =   +75°C)   sensor = thermistor
temp3:     -48.0°C  (high =   +80°C, hyst =   +75°C)   sensor = thermistor
vid:      +0.000 V  (VRM Version 8.2)
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +20°C  (high =  +100°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +13°C  (high =  +100°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:      +26°C  (high =  +100°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +23°C  (high =  +100°C)

coretemp-isa-0004
Adapter: ISA adapter
Core 4:      +25°C  (high =  +100°C)

coretemp-isa-0005
Adapter: ISA adapter
Core 5:      +24°C  (high =  +100°C)

coretemp-isa-0006
Adapter: ISA adapter
Core 6:      +32°C  (high =  +100°C)

coretemp-isa-0007
Adapter: ISA adapter
Core 7:      +31°C  (high =  +100°C)



On Dec 28, 2007 12:13 PM, Rudolf Marek <r.marek@assembler.cz> wrote:
> Hi,
>
> Your CPU is to new, I guess Penryn based.
>
> The driver will work if you just fix:
>
>
>
>                  /* check if family 6, models e, f */
>
>                  if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
>
>                      !((c->x86_model = 0xe) || (c->x86_model = 0xf))) {
>
> to:
>
>
>                  /* check if family 6, models e, f */
>
>                  if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
>
>                      !((c->x86_model = 0xe) || (c->x86_model = 0x17))) {
>
> Thanks,
>
> Rudolf
>

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

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

* Re: [lm-sensors] error loading coretemp module for 2.6.21.5 kernel
  2007-12-27 23:52 [lm-sensors] error loading coretemp module for 2.6.21.5 kernel Rutul Dave
  2007-12-28 20:13 ` Rudolf Marek
  2007-12-29 21:03 ` Rutul Dave
@ 2008-01-05 16:49 ` Jean Delvare
  2008-01-05 17:13 ` Rudolf Marek
  3 siblings, 0 replies; 5+ messages in thread
From: Jean Delvare @ 2008-01-05 16:49 UTC (permalink / raw)
  To: lm-sensors

On Sat, 29 Dec 2007 13:03:55 -0800, Rutul Dave wrote:
> Thanks Rudolf, your suggestion did work. I was able to load
> coretemp.ko with the fix. The CPU model for the new processors is 0x17

Rudolf, care to submit a proper patch for upstream inclusion?

-- 
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] 5+ messages in thread

* Re: [lm-sensors] error loading coretemp module for 2.6.21.5 kernel
  2007-12-27 23:52 [lm-sensors] error loading coretemp module for 2.6.21.5 kernel Rutul Dave
                   ` (2 preceding siblings ...)
  2008-01-05 16:49 ` Jean Delvare
@ 2008-01-05 17:13 ` Rudolf Marek
  3 siblings, 0 replies; 5+ messages in thread
From: Rudolf Marek @ 2008-01-05 17:13 UTC (permalink / raw)
  To: lm-sensors

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

Jean Delvare wrote:
> On Sat, 29 Dec 2007 13:03:55 -0800, Rutul Dave wrote:
>> Thanks Rudolf, your suggestion did work. I was able to load
>> coretemp.ko with the fix. The CPU model for the new processors is 0x17
> 
> Rudolf, care to submit a proper patch for upstream inclusion?

I'm trying to get answer from Intel how to detect the mobile/non mobile CPUs
properly. They are silent. I think what we have now works, so I will prepare a
patch perhaps.

Rudolf

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

iD8DBQFHf7rJ3J9wPJqZRNURAnIOAJ4p54Xy7PSAEAd/g3E8KjMKFhDHPACfb45N
giY1wzPhXi8E8z1jb4OgKZw=MLRZ
-----END PGP SIGNATURE-----

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

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

end of thread, other threads:[~2008-01-05 17:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-27 23:52 [lm-sensors] error loading coretemp module for 2.6.21.5 kernel Rutul Dave
2007-12-28 20:13 ` Rudolf Marek
2007-12-29 21:03 ` Rutul Dave
2008-01-05 16:49 ` Jean Delvare
2008-01-05 17:13 ` Rudolf Marek

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.