[PATCH] x86_64: Add XPC interrupt vectors for SGIs UV system.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>, <torvalds@...>
Cc: linux-kernel list <linux-kernel@...>
Date: Wednesday, April 9, 2008 - 5:35 pm

Subject: [PATCH] x86_64: Add XPC interrupt vectors for SGIs UV system.

From: Alan Mayer <ajm@sgi.com>

The UV system needs two high priority interrupts for the XPC
subsystem.  This adds them below the common system interrupt vectors.

Signed-off-by: Alan Mayer <ajm@sgi.com>

---

Index: ingo/arch/x86/kernel/i8259_64.c
===================================================================
--- ingo.orig/arch/x86/kernel/i8259_64.c	2008-04-09 10:08:11.000000000 -0500
+++ ingo/arch/x86/kernel/i8259_64.c	2008-04-09 15:57:08.000000000 -0500
@@ -524,6 +524,11 @@
 	set_intr_gate(alloc_system_vector(SPURIOUS_APIC_VECTOR), spurious_interrupt);
 	set_intr_gate(alloc_system_vector(ERROR_APIC_VECTOR), error_interrupt);
 
+	if (is_uv_system() ) {
+		alloc_system_vector(XPC_ACTIVATE);
+		alloc_system_vector(XPC_NOTIFY);
+	}
+
 	if (!acpi_ioapic)
 		setup_irq(2, &irq2);
 }
Index: ingo/include/asm-x86/hw_irq_64.h
===================================================================
--- ingo.orig/include/asm-x86/hw_irq_64.h	2008-04-09 10:08:53.000000000 -0500
+++ ingo/include/asm-x86/hw_irq_64.h	2008-04-09 15:55:47.000000000 -0500
@@ -85,6 +85,10 @@
  */
 #define LOCAL_TIMER_VECTOR	0xef
 
+#define XPC_ACTIVATE		0xee
+#define XPC_NOTIFY		0xed
+
+
 /*
  * First APIC vector available to drivers: (vectors 0x30-0xee)
  * we start at 0x41 to spread out vectors evenly between priority

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64: Add XPC interrupt vectors for SGIs UV system., Alan Mayer, (Wed Apr 9, 5:35 pm)