From: bugme-daemon@bugzilla.kernel.org Subject: [Bug 8264] powernow-k8 module gets stuck switching powerlevels on dualcore AMD64 Date: Tue, 27 Mar 2007 12:54:33 -0700 Message-ID: <200703271954.l2RJsXqO011610@fire-2.osdl.org> Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cpufreq-bounces@lists.linux.org.uk Errors-To: cpufreq-bounces+glkc-cpufreq=gmane.org+glkc-cpufreq=gmane.org@lists.linux.org.uk MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: cpufreq@www.linux.org.uk http://bugzilla.kernel.org/show_bug.cgi?id=8264 ------- Additional Comments From mark.langsdorf@amd.com 2007-03-27 12:54 ------- > ------- Additional Comments From babassu@postmaster.co.uk > 2007-03-27 12:40 ------- > >>Your issue with > >> u32 i = 0; > >>is what, exactly? > > I was just glancing at the line > i = lo & HW_PSTATE_MASK; > just before the loop trying to figure out what is the > starting value of i(fortunately the mask is just 0x07 > making for a small number) Look at the code again: if (cpu_family == CPU_HW_PSTATE) { ... i = lo & HW_PSTATE_MASK; ... return 0; } if i is set to the hardware_pstate index, it isn't used as a counter. > I noticed this function too trying to do a delay I think: > count_off_irt(data); > > Can we put it inside the do loop after setting the MSR ? See p. 275 of the public BKDG. IRT is counted off after the pending bit clears. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.