From nobody@FreeBSD.org Wed Jun 22 12:56:45 2011 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7BE8106564A for ; Wed, 22 Jun 2011 12:56:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 8CCA78FC1B for ; Wed, 22 Jun 2011 12:56:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5MCujYS075948 for ; Wed, 22 Jun 2011 12:56:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p5MCujoq075947; Wed, 22 Jun 2011 12:56:45 GMT (envelope-from nobody) Message-Id: <201106221256.p5MCujoq075947@red.freebsd.org> Date: Wed, 22 Jun 2011 12:56:45 GMT From: Paul Donovan To: freebsd-gnats-submit@FreeBSD.org Subject: coretemp reports incorrect CPU temperature on Atom D525 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 158160 >Category: kern >Synopsis: [coretemp] 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: Mon Jul 04 02:15:04 UTC 2011 >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 Features2=0x40e31d AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4007641088 (3821 MB) ACPI APIC Table: 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 Features2=0x40e31d AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4007641088 (3821 MB) ACPI APIC Table: 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 irqs 0-23 on motherboard lapic0: Forcing LINT1 to edge trigger netsmb_dev: loaded kbd1 at kbdmux0 cryptosoft0: on motherboard acpi0: 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: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x20c0-0x20c7 mem 0xf0200000-0xf027ffff,0xe0000000-0xefffffff,0xf0100000-0xf01fffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 8188k stolen memory agp0: aperture size is 256M pci0: at device 27.0 (no driver attached) pcib1: at device 28.0 on pci0 pci1: on pcib1 re0: 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: on re0 rgephy0: 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: at device 28.1 on pci0 pci2: on pcib2 pcib3: at device 28.2 on pci0 pci3: on pcib3 pcib4: at device 28.3 on pci0 pci4: on pcib4 uhci0: port 0x2080-0x209f irq 23 at device 29.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0x2060-0x207f irq 19 at device 29.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0x2040-0x205f irq 18 at device 29.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 uhci3: port 0x2020-0x203f irq 16 at device 29.3 on pci0 uhci3: [ITHREAD] usbus3: on uhci3 ehci0: mem 0xf0284400-0xf02847ff irq 23 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib5: at device 30.0 on pci0 pci5: on pcib5 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: 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: at channel 0 on ahci0 ahcich0: [ITHREAD] ahcich1: at channel 1 on ahci0 ahcich1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_hpet0: iomem 0xfed00000-0xfed03fff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 atrtc0: port 0x70-0x71,0x74-0x77 irq 8 on acpi0 orm0: at iomem 0xce000-0xcefff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] ppc0: cannot reserve I/O port range coretemp0: on cpu0 coretemp0: Can not get Tj(target) from your CPU, using 100C. p4tcc0: on cpu0 coretemp1: on cpu1 coretemp1: Can not get Tj(target) from your CPU, using 100C. p4tcc1: on cpu1 coretemp2: on cpu2 coretemp2: Can not get Tj(target) from your CPU, using 100C. p4tcc2: on cpu2 coretemp3: on cpu3 coretemp3: Can not get Tj(target) from your CPU, using 100C. p4tcc3: 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 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: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: 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: at usbus4 umass0: on usbus4 ugen4.3: at usbus4 umass1: on usbus4 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: 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: 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: 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: 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: