Date: Wed, 18 Aug 2004 04:31:11 +0400 From: Anton Nikiforov <anton@nikiforov.ru> To: freebsd-mobile@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: Enhanced SpeedStep driver available Message-ID: <4122A34F.2020607@nikiforov.ru> In-Reply-To: <20040817234314.GA31323@laptoxa.toxa.lan> References: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> <20040817234314.GA31323@laptoxa.toxa.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Toxa wrote: > On Mon, Aug 16, 2004 at 08:06:30AM -0700, Colin Percival wrote: > >> Thanks to everyone who has been sending me data about their >>processors (and in particular, the 90nm versions), I now have >>a first draft of a Enhanced SpeedStep driver available. For >>people with the appropriate processors (Pentium M only), this >>makes it possible to adjust the cpu frequency via a new sysctl >>(hw.est_curfreq), and have the cpu voltage adjusted at the >>same time. >> I've also put together a very simple control daemon which >>reads kern.cp_time every second and adjusts the cpu frequency >>based on the fraction of cpu time which is idle. This increases >>my laptop's battery life by around 40%. >> All the code is online at >>http://www.daemonology.net/freebsd-est/ >> Assuming I don't hear any major bug reports in the next few >>days, I'll package these into ports and hopefully get them into >>the ports tree in time for 5.3-RELEASE. > > > I'm curious about processor's name. My laptop (sony vaio pcg-v505bx) has a Pentium 4 M, but not Centrino (which name is... Pentium 4 M too), afaik it's capable to support speedsted, (enhanced or not?). When loading your module: > > [(3:40)(85.32%)(p1):~/tmp/est ] sudo kldload ./est.ko > [(3:40)(85.32%)(p1):~/tmp/est ] kldstat|grep est > 27 1 0xc23cd000 2000 est.ko > [(3:40)(85.32%)(p1):~/tmp/est ] sysctl hw.est_curfreq > [(3:40)(85.32%)(p1):~/tmp/est ] sysctl hw.est_freqs > hw.est_freqs: > > e.g. nothing > Is this for Centrino processors only? > > p.s.: from dmesg: > > CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1193.11-MHz > 686-class CPU) > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > I have COMPAQ Presario 2585 and have absolutley the same problem. My processor also supports for speedstep and dmesg looks like: #dmesg|grep CPU CPU: Mobile Intel(R) Pentium(R) 4 CPU 2.30GHz (2224.01-MHz 686-class CPU) in the est.c code i found out the followig: ....... err = kernel_sysctlbyname(curthread, "hw.model", hwmodel, &modellen, NULL, 0, NULL); ....... if (strncmp(hwmodel, "Intel(R) Pentium(R) M processor", 31) but my sysctl hw.model returns hw.model: Mobile Intel(R) Pentium(R) 4 CPU 2.30GHz The same as in dmesg. Changing the code to find a substring Mobile in hw.model delivers system stuck at the module load time. -- Best regads, Anton Nikiforov [-- Attachment #2 --] 0 *H 010 + 0 *H 00:0 *H 0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 040305211228Z 050305211228Z0D10UThawte Freemail Member1!0 *H anton@nikiforov.ru0"0 *H 0 >qNv`"9&:Bf*Ku;,h&Pt5-BCIZ(\X"{)Ûf<WWPUg|1X{-B֟3 j@rM@чj I'r֨ i&ƨMٕY~O9{gRᤳfJ b+e?sxJd/kaVErzG)Kao_B\E![u]ż_{ސץ /0-0U0anton@nikiforov.ru0U0 0 *H p1zaGK,U-r%#&CTJ`Q'Xx:GQ.LD/E4;T.9iӁ>dgXq=uXn9b4[Dy<( -]>T0#-00:0 *H 0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 040305211228Z 050305211228Z0D10UThawte Freemail Member1!0 *H anton@nikiforov.ru0"0 *H 0 >qNv`"9&:Bf*Ku;,h&Pt5-BCIZ(\X"{)Ûf<WWPUg|1X{-B֟3 j@rM@чj I'r֨ i&ƨMٕY~O9{gRᤳfJ b+e?sxJd/kaVErzG)Kao_B\E![u]ż_{ސץ /0-0U0anton@nikiforov.ru0U0 0 *H p1zaGK,U-r%#&CTJ`Q'Xx:GQ.LD/E4;T.9iӁ>dgXq=uXn9b4[Dy<( -]>T0#-0?0 0 *H 010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com0 030717000000Z 130716235959Z0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00 *H 0 Ħ<UsUNʙZhup[v:aQP 0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380 *H HP. fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1;070i0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 + 0 *H 1 *H 0 *H 1 040818003112Z0# *H 10'p:t^>`p cD0R *H 1E0C0 *H 0*H 0 *H @0+0 *H (0x +71k0i0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0z*H 1ki0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 *H t2ԓRSĥJ6)`BV%M!H肘Mz<_p);}76 1r1p+)8wad+ W}Ȟ0WUtBQF{@^!WKӥtr)!ԡ$O|Y [|r b<29c[tOx\YI~v's)e-Faq>N`W
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4122A34F.2020607>
