Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6325

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Gleixner <tglx@...>
Cc: Maciej W. Rozycki <macro@...>, Stephen Rothwell <sfr@...>, <linux-next@...>, LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, ACPI Devel Maling List <linux-acpi@...>, Len Brown <lenb@...>
Date: Tuesday, June 17, 2008 - 6:19 pm

On Tuesday, 17 of June 2008, Rafael J. Wysocki wrote:

Ah.  If your fix is replaced with the appended one, the system happily works
with C1E and highres.

Thanks,
Rafael


---
 arch/x86/kernel/process.c |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

Index: linux-next/arch/x86/kernel/process.c
===================================================================
--- linux-next.orig/arch/x86/kernel/process.c
+++ linux-next/arch/x86/kernel/process.c
@@ -265,16 +265,30 @@ static void c1e_idle(void)
 	if (c1e_detected) {
 		int cpu = smp_processor_id();
 
+		local_irq_enable();
+
 		if (!cpu_isset(cpu, c1e_mask)) {
 			cpu_set(cpu, c1e_mask);
-			/* Force broadcast so ACPI can not interfere */
+			/*
+			 * Force broadcast so ACPI can not interfere. Needs
+			 * to run with interrupts enabled as it uses
+			 * smp_function_call.
+			 */
 			clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_FORCE,
 					   &cpu);
 			printk(KERN_INFO "Switch to broadcast mode on CPU%d\n",
 			       cpu);
 		}
+		local_irq_disable();
 		clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu);
+		local_irq_enable();
+
 		default_idle();
+
+		/*
+		 * The switch back from broadcast mode needs to be
+		 * called with interrupts disabled.
+		 */
 		local_irq_disable();
 		clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &cpu);
 		local_irq_enable();
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 15, 10:45 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Mon Jun 16, 9:39 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Mon Jun 16, 11:39 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Mon Jun 16, 6:38 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 4:59 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Tue Jun 17, 5:19 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 5:38 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 6:53 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Wed Jun 18, 12:02 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Wed Jun 18, 6:11 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Wed Jun 18, 7:39 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Thu Jun 19, 2:17 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Fri Jun 20, 4:56 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Wed Jun 18, 8:25 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Thu Jun 19, 8:35 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Fri Jun 20, 7:53 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Fri Jun 20, 9:49 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Fri Jun 20, 8:22 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Thu Jun 26, 9:53 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Thu Jun 26, 4:37 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Fri Jun 20, 9:09 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Thu Jun 26, 3:52 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Thu Jun 26, 8:06 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 10:00 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 3:05 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 4:03 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 4:16 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 3:31 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 3:23 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 3:56 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 6:56 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 9:00 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Mon Jun 30, 11:29 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 6:59 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 4:14 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sun Jun 29, 7:06 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Sun Jun 29, 9:39 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Mon Jun 30, 6:41 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Fri Jun 20, 10:41 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Wed Jun 18, 6:36 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Maciej W. Rozycki, (Fri Jun 20, 4:44 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Mon Jun 16, 7:05 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 4:44 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 6:19 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Tue Jun 17, 6:25 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Wed Jun 18, 10:40 am)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Sat Jun 21, 6:47 pm)
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6..., Rafael J. Wysocki, (Wed Jun 18, 10:37 am)