From owner-freebsd-current@FreeBSD.ORG Fri Sep 16 19:01:59 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id E6487106564A; Fri, 16 Sep 2011 19:01:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Fri, 16 Sep 2011 15:01:44 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <201109161501.48048.jkim@FreeBSD.org> Cc: Arnaud Lacombe Subject: Re: 9.0-BETA2 do not support SpeedStep on E5420 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 19:01:59 -0000 On Thursday 15 September 2011 05:19 pm, Arnaud Lacombe wrote: > Hi, > > On Thu, Sep 15, 2011 at 12:20 PM, Arnaud Lacombe wrote: > > Hi, > > > > From today's -CURRENT: > > > > 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 9.0-BETA2 #17 r225560+be1f8b9: Thu > > Sep 15 12:05:41 EDT 2011 � > > �al@shai-hulud:/data/src/freebsd/obj/master/i386.i386/data/src/fr > >eebsd/src/sys/GENERIC i386 > > CPU: Intel(R) Xeon(R) CPU � � � � � E5420 �@ 2.50GHz (2493.80-MHz > > 686-class CPU) �Origin = "GenuineIntel" �Id = 0x1067a �Family = 6 > > �Model = 17 �Stepping = 10 > > �Features=0xbfebfbff >MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS, > >HTT,TM,PBE> > > �Features2=0x40ce3bd >6,xTPR,PDCM,DCA,SSE4.1,XSAVE> �AMD Features=0x20100000 > > �AMD Features2=0x1 > > �TSC: P-state invariant, performance statistics > > real memory �= 6442450944 (6144 MB) > > avail memory = 3677458432 (3507 MB) > > Event timer "LAPIC" quality 400 > > ACPI APIC Table: <100509 APIC1714> > > FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs > > FreeBSD/SMP: 2 package(s) x 4 core(s) > > �cpu0 (BSP): APIC ID: �0 > > �cpu1 (AP): APIC ID: �1 > > �cpu2 (AP): APIC ID: �2 > > �cpu3 (AP): APIC ID: �3 > > �cpu4 (AP): APIC ID: �4 > > �cpu5 (AP): APIC ID: �5 > > �cpu6 (AP): APIC ID: �6 > > �cpu7 (AP): APIC ID: �7 > > [...] > > est0: failed to enable SpeedStep > > p4tcc0: on cpu0 > > est1: failed to enable SpeedStep > > p4tcc1: on cpu1 > > est2: failed to enable SpeedStep > > p4tcc2: on cpu2 > > est3: failed to enable SpeedStep > > p4tcc3: on cpu3 > > est4: failed to enable SpeedStep > > p4tcc4: on cpu4 > > est5: failed to enable SpeedStep > > p4tcc5: on cpu5 > > est6: failed to enable SpeedStep > > p4tcc6: on cpu6 > > est7: failed to enable SpeedStep > > p4tcc7: on cpu7 > > different issue, same config, still est(4) related, bot on a Q9650: > > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-BETA2 #16 r225462+e068e24-dirty: Sat Sep 10 14:50:17 > EDT 2011 > al@shai-hulud:/data/src/freebsd/obj/master/i386.i386/data/src/freeb >sd/src/sys/GENERIC i386 > CPU: Pentium III/Pentium III Xeon/Celeron (2666.72-MHz 686-class > CPU) Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 > Stepping = 10 > Features=0xbfebfbffR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,T >M,PBE> > Features2=0x408e3fd16,xTPR,PDCM,SSE4.1,XSAVE> AMD Features=0x20100000 > AMD Features2=0x1 > TSC: P-state invariant, performance statistics > real memory = 2147483648 (2048 MB) > avail memory = 2084757504 (1988 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 > [...] > est0: on cpu0 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 616082506000825 > device_attach: est0 attach returned 6 > p4tcc0: on cpu0 > est1: on cpu1 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 616082506000825 > device_attach: est1 attach returned 6 > p4tcc1: on cpu1 > est2: on cpu2 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 616082506000825 > device_attach: est2 attach returned 6 > p4tcc2: on cpu2 > est3: on cpu3 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 616082506000825 > device_attach: est3 attach returned 6 > p4tcc3: on cpu3 est depends on acpi_perf to get frequency/voltage information to get/set MSRs. Your BIOS does not export _PSS mothods and that's why it's failing. If you can find SSDT dump with _PSS methods for the *exact* CPU model from "somewhere", you can insert it into your DSDT and override. There are many possible causes. Some BIOS do not care about workstation/server class CPUs. Some BIOS only exports _PSS methods when it "thinks" the OS supports it. Some (broken) BIOS dynamically constructs/loads/unloads _PSS methods during cold boot to limit boot-time frequency (usually for mobile processors), then acpi_perf misses it. Some times calibrated frequency at boot-time is too wild and it does not match any frequency from probed _PSS. Newer models are more complicated because of dynamic FSB switching, Turbo Boost, etc. It goes on and on... Intel did not publish vital information to support any CPUs beyond Pentium M family but you may find some clues from Intel BITS source. http://biosbits.org/ Also, Linux ACPI validation test may help, too. http://www.lesswatts.org/projects/acpi/validation.php Some time ago, I have written an ugly patch to support newer processors without _PSS: http://people.freebsd.org/~jkim/est-20110608.diff It worked for my Xeon processors but it may damage your CPU severely, cause fire, etc, etc... Now you're warned. ;-) Note this patch will never be committed, at least in current form, because it has full of guess work from me. > - Arnaud > > > It feels strange that the latest FreeBSD do not support est(4) on > > a 3 years old CPU... Yeah, tell it to the CPU/BIOS/motherboard vendors. :-( Jung-uk Kim