OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [marcopeereboom.us: est] -> m770

From: Gregory Steuck (gregy2006.nest.cx)
Date: Mon Feb 27 2006 - 02:44:33 CST


>>>>> "Dimitry" == Dimitry Andric <dimitryandric.com> writes:

    Dimitry> If anyone with one of these specific models can check if
    Dimitry> this will detect their CPU properly, please let us know. :)
    Dimitry> It works okay on my 758.

I had to borrow the magic constants from netbsd to get my m770 working.
Below is a patch against -current that works for m770 as found in
Thinkpad T43p. With that patch I get:

OpenBSD 3.9-beta (GENERIC) #5: Mon Feb 27 00:40:25 PST 2006
    gnezdonoog.nest.cx:/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 2.13GHz ("GenuineIntel" 686-class) 2.13 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1600 MHz (1356 mV): speeds: 2130, 1800, 1600, 1400, 1200, 1000, 800, 600 MHz

Changing hw.setperf works too, openssl speed about doubles when I switch between
hw.setperf=1 and 100. What do these values mean anyway?

% cvs diff -u est.c
Index: est.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/est.c,v
retrieving revision 1.12
diff -u -r1.12 est.c
--- est.c 27 Feb 2006 05:37:16 -0000 1.12
+++ est.c 27 Feb 2006 08:39:18 -0000
-290,6 +290,18
         { 600, 988 }
 };
 
+/* Intel Pentium M processor 770 2.13 GHz */
+static const struct fq_info pentium_m_n770[] = {
+ { 2130, 1551 },
+ { 1800, 1429 },
+ { 1600, 1356 },
+ { 1400, 1180 },
+ { 1200, 1132 },
+ { 1000, 1084 },
+ { 800, 1036 },
+ { 600, 988 }
+};
+
 struct fqlist {
         const char *brand_tag;
         const int cpu_id;
-326,6 +338,7
         ENTRY("1.80", 0, pentium_m_n745),
         ENTRY("2.00", 0, pentium_m_n755),
         ENTRY("2.10", 0, pentium_m_n765),
+ ENTRY("2.13", 0x6d8, pentium_m_n770),
 #undef ENTRY
 };