Subject: Re: port-i386/36815: enhanced_speedstep panic on Intel A110-800
To: None <simonb@NetBSD.org, gnats-admin@netbsd.org,>
From: None <fujiwara@f.pyon.org>
List: netbsd-bugs
Date: 08/31/2007 17:25:02
The following reply was made to PR port-i386/36815; it has been noted by GNATS.

From: fujiwara@f.pyon.org
To: simonb@NetBSD.org
Cc: port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, gnats-bugs@NetBSD.org
Subject: Re: port-i386/36815: enhanced_speedstep panic on Intel A110-800
Date: Sat, 01 Sep 2007 02:22:47 +0900 (JST)

 > From: Simon Burge <simonb@NetBSD.org>
 > >  cpu0: Enhanced SpeedStep frequencies available (MHz): 800 600
 > 
 > I'm guessing that your CPU should also support running at 700MHz.  Can
 > you try the attached patch instead of your original patch?  You can
 > verify that each frequency is different by setting them with
 > "sysctl -w machdep.powernow.frequency.target=<freq>" and then running
 > "openssl speed md2".  You should see differing performance for each
 > selected speed.
 
 Appling attached patch, there are 3 fake entries.
 
 cpu0: Enhanced SpeedStep (812 mV) 800 MHz
 cpu0: unknown Enhanced SpeedStep CPU.
 est_init_main: bus_clock = 10000
 est_init_main: idlo = 0x607
 est_init_main: lo   812 mV,  600 MHz
 est_init_main: raw    7   ,    6    
 est_init_main: idhi = 0x807
 est_init_main: hi   812 mV,  800 MHz
 est_init_main: raw    7   ,    8    
 est_init_main: cur  = 0x807
 est_init_main: fake entry 0:  812 mV,  800 MHz  MSR*100 mV =  700 freq =  800
 est_init_main: fake entry 1:  812 mV,  700 MHz  MSR*100 mV =  700 freq =  700
 est_init_main: fake entry 2:  812 mV,  600 MHz  MSR*100 mV =  700 freq =  600
 cpu0: Enhanced SpeedStep frequencies available (MHz): 800 700 600
 
 and I tested 3 frequencies.
 
 $ sysctl -w machdep.est.frequency.target=800
 
 type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
 md2                547.04k     1171.23k     1639.73k     1820.31k     1880.71k
 
 $ sysctl -w machdep.est.frequency.target=700
 
 type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
 md2                410.36k      878.45k     1229.66k     1365.11k     1410.44k
 
 $ sysctl -w machdep.est.frequency.target=600
 
 type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
 md2                409.26k      878.38k     1229.97k     1365.14k     1410.43k
 
 700MHz and 600MHz are the same and
 it is 75% of 800MHz performance.
 
 Does this CPU have 700MHz mode?
 
 CPU datasheet is here:
     http://www.intel.com/design/mobile/datashts/316908.htm
 
 
 Regards,
 
 --
 Kazunori Fujiwara