Bug 11330
Summary: | int3: 0000 in tsc_read_refs when using powernow_k7 | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Mikko Vinni (mmvinni) |
Component: | i386 | Assignee: | platform_i386 |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | bunk, cpufreq, rjw |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27-rc3 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 11167 |
Description
Mikko Vinni
2008-08-14 04:21:09 UTC
(In reply to comment #0) > An uneducated question: can tsc_read_refs be __init? No. Does fixing this bug fix the problem? (In reply to comment #1) > (In reply to comment #0) > > An uneducated question: can tsc_read_refs be __init? > > No. Does fixing this bug fix the problem? > Yes. The following change indeed makes the int3 message go away, the frequency seems to be changing in response to increasing or decreasing load, and incidentally the machine doesn't hang at power off anymore. Thanks. This change was tested on top of v2.6.27-rc3-171-gb635ace. diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 7603c05..46af716 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -104,7 +104,7 @@ __setup("notsc", notsc_setup); /* * Read TSC and the reference counters. Take care of SMI disturbance */ -static u64 __init tsc_read_refs(u64 *pm, u64 *hpet) +static u64 tsc_read_refs(u64 *pm, u64 *hpet) { u64 t1, t2; int i; Caused by: commit bfc0f5947afa5e3a13e55867f4478c8a92c11dca Author: Alok Kataria <akataria@vmware.com> Date: Tue Jul 1 11:43:24 2008 -0700 x86: merge tsc calibration Merge the tsc calibration code for the 32bit and 64bit kernel. The paravirtualized calculate_cpu_khz for 64bit now points to the correct tsc_calibrate code as in 32bit. Original native_calculate_cpu_khz for 64 bit is now called as calibrate_cpu. Also moved the recalibrate_cpu_khz function in the common file. Note that this function is called only from powernow K7 cpu freq driver. Signed-off-by: Alok N Kataria <akataria@vmware.com> Signed-off-by: Dan Hecht <dhecht@vmware.com> Cc: Dan Hecht <dhecht@vmware.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Fix merged into x86/urgent for upstream merge Fixed by commit d554d9a4295d. |