On Feb 3, 2008 10:56 PM, Corey Osgood <<a href="mailto:corey.osgood@gmail.com">corey.osgood@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Couple questions:<div class="Ih2E3d"><br><br>On Feb 3, 2008 10:49 AM, Urbez Santana Roma <<a href="mailto:urbez@linuxupc.upc.edu" target="_blank">urbez@linuxupc.upc.edu</a>> wrote:<br></div><div class="gmail_quote">
<div class="Ih2E3d"><div>> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
6. If you want that your BIOS, runs at the maximum CPU speed, in my<br>case, the CPU starts<br>with 800MHz, and i needed in the bios that works with 1000MHz. You can<br>add this if u will:<br><br>#define MSR_IA32_PERF_STATUS 0x00000198<br>
#define MSR_IA32_PERF_CTL 0x00000199<br>#define MSR_IA32_MISC_ENABLE 0x000001a0<br><br> msr_t msr;<br> print_debug("Enabling C7 Power Save\r\n");<br> msr=rdmsr(MSR_IA32_MISC_ENABLE);<br>
if (!(msr.lo & 0x10000)) {msr.lo|<br>0x10000;</blockquote><div><br>msr.lo |= 0x10000?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
wrmsr(MSR_IA32_MISC_ENABLE,msr);<br> msr=rdmsr(MSR_IA32_PERF_STATUS);<br> //TODO: wait CPU not busy bit 16 & 17 off (STATUS)<br> wrmsr(MSR_IA32_PERF_CTL, 0, (hi&0xff00)| ((hi>>16)&0x00ff));<br>
//Max multi Factor, and minimum voltage<br> //TODO: wait CPU transition bit 16 & 17 off (STATUS)<br></blockquote></div><div><br>}</div></div></blockquote><div><br>Dammit, this was supposed to be:<br>}? Or is the if supposed to end after the first wrmsr?<br>
<br>Sorry!<br>-Corey<br></div></div>