>Number: 158160 >Category: misc >Synopsis: coretemp reports incorrect CPU temperature on Atom D525 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 22 13:00:23 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Paul Donovan >Release: FreeBSD 8.2-RELEASE-p2 >Organization: >Environment: FreeBSD freenas.local 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Sat Jun 18 18:34:18 EST 2011 root@freebsd.local.:/usr/home/pauld/freenas/trunk/obj.amd64/usr/home/pauld/freenas/trunk/FreeBSD/src/sys/FREENAS.amd64 amd64
>Description: The coretemp kernel module reports clearly incorrect temperature readings for the Atom D525 CPU in my machine. # sysctl -a | grep temperature dev.cpu.0.temperature: 6.0C dev.cpu.1.temperature: 6.0C dev.cpu.2.temperature: 9.0C dev.cpu.3.temperature: 9.0C mbmon seems to report valid values: # mbmon Temp.= 38.0, 28.5, 29.0; Rot.= 1081, 0, 0 Vcore = 2.40, 3.18; Volt. = 3.36, 5.64, 14.29, -2.57, 2.34 The BIOS screen shows reasonable values as well (around 21C and 28C). The motherboard is an Intel D525MW and the BIOS is version MWPNT10N.86A.0083.2011.0524.1600. An earlier BIOS version showed the same results. I have tested on two builds of FreeBSD 8.2, one from FreeNAS 8.01beta2 and one other build of FreeBSD 8.2. I have attached the full output from dmesg, and here's an excerpt: CPU: Intel(R) Atom(TM) CPU D525 @ 1.80GHz (1821.68-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106ca Family = 6 Model = 1c Stepping = 10 Features=0xbfebfbff<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,HTT,TM,PBE> Features2=0x40e31d<SSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4007641088 (3821 MB) ACPI APIC Table: <INTEL D525MW > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP/HT): APIC ID: 3 I have read reports from owners of different Atom D525 boards where the correct values are reported by coretemp, for example the Zotac NM10-DTX WiFi (NM10-F-E). >How-To-Repeat: >Fix: Patch attached with submission follows: Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RELEASE-p2 #0: Sat Jun 18 18:34:18 EST 2011 root@freebsd.local.:/usr/home/pauld/freenas/trunk/obj.amd64/usr/home/pauld/freenas/trunk/FreeBSD/src/sys/FREENAS.amd64 amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Atom(TM) CPU D525 @ 1.80GHz (1821.68-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106ca Family = 6 Model = 1c Stepping = 10 Features=0xbfebfbff<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,HTT,TM,PBE> Features2=0x40e31d<SSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4007641088 (3821 MB) ACPI APIC Table: <INTEL D525MW > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP/HT): APIC ID: 3 ioapic0: Changing APIC ID to 8 ioapic0 <Version 2.0> irqs 0-23 on motherboard lapic0: Forcing LINT1 to edge trigger netsmb_dev: loaded kbd1 at kbdmux0 cryptosoft0: <software crypto> on motherboard acpi0: <INTEL D525MW> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 cpu2: <ACPI CPU> on acpi0 cpu3: <ACPI CPU> on acpi0 acpi_button0: <Sleep Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 vgapci0: <VGA-compatible display> port 0x20c0-0x20c7 mem 0xf0200000-0xf027ffff,0xe0000000-0xefffffff,0xf0100000-0xf01fffff irq 16 at device 2.0 on pci0 agp0: <Intel Pineview SVGA controller> on vgapci0 agp0: detected 8188k stolen memory agp0: aperture size is 256M pci0: <multimedia, HDA> at device 27.0 (no driver attached) pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0 pci1: <ACPI PCI bus> on pcib1 re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0x1000-0x10ff mem 0xf0004000-0xf0004fff,0xf0000000-0xf0003fff irq 16 at device 0.0 on pci1 re0: Using 1 MSI-X message re0: Chip rev. 0x2c000000 re0: MAC rev. 0x00000000 miibus0: <MII bus> on re0 rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 70:71:bc:bc:40:af re0: [ITHREAD] pcib2: <ACPI PCI-PCI bridge> at device 28.1 on pci0 pci2: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 28.2 on pci0 pci3: <ACPI PCI bus> on pcib3 pcib4: <ACPI PCI-PCI bridge> at device 28.3 on pci0 pci4: <ACPI PCI bus> on pcib4 uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0x2080-0x209f irq 23 at device 29.0 on pci0 uhci0: [ITHREAD] usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0 uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0x2060-0x207f irq 19 at device 29.1 on pci0 uhci1: [ITHREAD] usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1 uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0x2040-0x205f irq 18 at device 29.2 on pci0 uhci2: [ITHREAD] usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2 uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0x2020-0x203f irq 16 at device 29.3 on pci0 uhci3: [ITHREAD] usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3 ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xf0284400-0xf02847ff irq 23 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0 pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci5: <ACPI PCI bus> on pcib5 isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 ahci0: <Intel ICH7 AHCI SATA controller> port 0x20b8-0x20bf,0x20cc-0x20cf,0x20b0-0x20b7,0x20c8-0x20cb,0x20a0-0x20af mem 0xf0284000-0xf02843ff irq 18 at device 31.2 on pci0 ahci0: [ITHREAD] ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier not supported ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich0: [ITHREAD] ahcich1: <AHCI channel> at channel 1 on ahci0 ahcich1: [ITHREAD] pci0: <serial bus, SMBus> at device 31.3 (no driver attached) acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed03fff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 atrtc0: <AT realtime clock> port 0x70-0x71,0x74-0x77 irq 8 on acpi0 orm0: <ISA Option ROM> at iomem 0xce000-0xcefff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] ppc0: cannot reserve I/O port range coretemp0: <CPU On-Die Thermal Sensors> on cpu0 coretemp0: Can not get Tj(target) from your CPU, using 100C. p4tcc0: <CPU Frequency Thermal Control> on cpu0 coretemp1: <CPU On-Die Thermal Sensors> on cpu1 coretemp1: Can not get Tj(target) from your CPU, using 100C. p4tcc1: <CPU Frequency Thermal Control> on cpu1 coretemp2: <CPU On-Die Thermal Sensors> on cpu2 coretemp2: Can not get Tj(target) from your CPU, using 100C. p4tcc2: <CPU Frequency Thermal Control> on cpu2 coretemp3: <CPU On-Die Thermal Sensors> on cpu3 coretemp3: Can not get Tj(target) from your CPU, using 100C. p4tcc3: <CPU Frequency Thermal Control> on cpu3 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version 4 ZFS storage pool version 15 RTC BIOS diagnostic error 80<clock_battery> Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: <Intel> at usbus0 uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <Intel> at usbus1 uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 ugen2.1: <Intel> at usbus2 uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen3.1: <Intel> at usbus3 uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3 ugen4.1: <Intel> at usbus4 uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 8 ports with 8 removable, self powered ugen4.2: <ATP Electronics> at usbus4 umass0: <ATP Electronics ATP IG eUSB SSD, class 0/0, rev 2.00/11.00, addr 2> on usbus4 ugen4.3: <Imation> at usbus4 umass1: <Imation Imation USB, class 0/0, rev 2.00/1.10, addr 3> on usbus4 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: <ATP ATP IG eUSB SSD 1100> Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 3920MB (8028160 512 byte sectors: 255H 63S/T 499C) da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 da1: <Imation Imation USB PMAP> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 1961MB (4016128 512 byte sectors: 255H 63S/T 249C) ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <WDC WD20EARS-00MVWB0 51.0AB51> ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: <WDC WD20EARS-00MVWB0 51.0AB51> ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) lapic1: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! lapic2: Forcing LINT1 to edge trigger SMP: AP CPU #2 Launched! lapic3: Forcing LINT1 to edge trigger SMP: AP CPU #3 Launched! GEOM: da1s1: geometry does not match label (16h,63s != 255h,63s). GEOM: da1s2: geometry does not match label (16h,63s != 255h,63s). Trying to mount root from ufs:/dev/ufs/FreeNASs2a WARNING: /data was not properly dismounted fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"