[tip:perfcounters/core] x86: Basic AMD Support for performance counters, disable IRQs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  15112f89efb79797c0d70ce6759e2438d66d4f59
Gitweb:     http://git.kernel.org/tip/15112f89efb79797c0d70ce6759e2438d66d4f59
Author:     Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx>
AuthorDate: Sun, 1 Mar 2009 15:02:11 +0530
Commit:     Ingo Molnar <mingo@xxxxxxx>
CommitDate: Sun, 1 Mar 2009 12:43:03 +0100

x86: Basic AMD Support for performance counters, disable IRQs

Ingo Molnar reported:

> The AMD perfcounter patches cause a crash - an Opteron system
> spontaneous reboots at this point during early bootup:
>
> CPU 0/0x4 -> Node 0
> tseg: 00cfe00000
> CPU: Physical Processor ID: 0
> CPU: Processor Core ID: 0
> using C1E aware idle routine
> AMD Performance Monitoring support detected.
> ... num counters:    4
> ... value mask:      0000000000000000
> ... fixed counters:  0
> ... counter mask:    000000000000000f
> ACPI: Core revision 20081204
> ftrace: converting mcount calls to 0f 1f 44 00 00
> ftrace: allocating 16365 entries in 129 pages
> Setting APIC routing to physical flat
> masked ExtINT on CPU#0
> ENABLING IO
> [reboot]

Disable the IRQ path for now.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>


---
 arch/x86/kernel/cpu/perf_counter.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c
index 266618a..0e4119e 100644
--- a/arch/x86/kernel/cpu/perf_counter.c
+++ b/arch/x86/kernel/cpu/perf_counter.c
@@ -701,6 +701,10 @@ void perf_counters_lapic_init(int nmi)
 {
 	u32 apic_val;
 
+	/* Currently interrupts are disabled for AMD: */
+	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
+		return;
+
 	if (!perf_counters_initialized)
 		return;
 	/*
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux