FreeBSD Bugzilla – Attachment 123643 Details for
Bug 167018
[hwpmc] [patch] hwpstate0: set freq failed with AMD FX(tm)-8120 Eight-Core Processor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
hwpstate.txt
hwpstate.txt (text/plain), 853 bytes, created by
r4721@tormail.org
on 2013-05-06 22:13:41 UTC
(
hide
)
Description:
hwpstate.txt
Filename:
MIME Type:
Creator:
r4721@tormail.org
Created:
2013-05-06 22:13:41 UTC
Size:
853 bytes
patch
obsolete
>Index: sys/x86/cpufreq/hwpstate.c >=================================================================== >--- sys/x86/cpufreq/hwpstate.c (revision 250078) >+++ sys/x86/cpufreq/hwpstate.c (working copy) >@@ -184,16 +184,21 @@ > id, PCPU_GET(cpuid)); > /* Go To Px-state */ > wrmsr(MSR_AMD_10H_11H_CONTROL, id); >+ } >+ CPU_FOREACH(i) { >+ /* Bind to each cpu. */ >+ thread_lock(curthread); >+ sched_bind(curthread, i); >+ thread_unlock(curthread); > /* wait loop (100*100 usec is enough ?) */ > for(j = 0; j < 100; j++){ >+ /* get the result. not assure msr=id */ > msr = rdmsr(MSR_AMD_10H_11H_STATUS); > if(msr == id){ > break; > } > DELAY(100); > } >- /* get the result. not assure msr=id */ >- msr = rdmsr(MSR_AMD_10H_11H_STATUS); > HWPSTATE_DEBUG(dev, "result P%d-state on cpu%d\n", > (int)msr, PCPU_GET(cpuid)); > if (msr != id) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 167018
: 123643