Skip to contentSkip to conversation

- Altix: more ACPI PRT support

PATCH In review John Keller 3 participants 3 messages Feb 2, 2007 – Feb 3, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - Altix: more ACPI PRT support

The SN Altix platform does not conform to the IOSAPIC IRQ routing model. Add code in acpi_unregister_gsi() to check if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM) and return.

---

Due to an oversight, this code was not added previously when similar code was added to acpi_register_gsi().

http://marc.theaimsgroup.com/?l=linux-acpi&m=116680983430121&w=2

 arch/ia64/kernel/acpi.c |    3 +++
 1 file changed, 3 insertions(+)
arch/ia64/kernel/acpi.c +3 -0
Index: linux-2.6/arch/ia64/kernel/acpi.c
===================================================================
@@ -609,6 +609,9 @@ EXPORT_SYMBOL(acpi_register_gsi);
 
 void acpi_unregister_gsi(u32 gsi)
 {
+	if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM)
+		return;
+
 	iosapic_unregister_intr(gsi);
 }
 
#1 lore raw
Quoted 21 lines · On Fri, 02 Feb 2007 14:54:12 -0600 John Keller <[email protected]> wrote:

The SN Altix platform does not conform to the IOSAPIC IRQ routing model. Add code in acpi_unregister_gsi() to check if (acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM) and return.

---

Due to an oversight, this code was not added previously when similar code was added to acpi_register_gsi().

http://marc.theaimsgroup.com/?l=linux-acpi&m6680983430121&w=2

 arch/ia64/kernel/acpi.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6/arch/ia64/kernel/acpi.c
=================================> --- linux-2.6.orig/arch/ia64/kernel/acpi.c 2007-02-02 14:44:31.000000000 -0600
+++ linux-2.6/arch/ia64/kernel/acpi.c 2007-02-02 14:47:44.658143727 -0600

arch/ia64/kernel/acpi.c EXPORT_SYMBOL(acpi_register_gsi); · line 616

Quoted 8 lines
arch/ia64/kernel/acpi.c +3 -0
@@ -609,6 +609,9 @@ EXPORT_SYMBOL(acpi_register_gsi);
 
 void acpi_unregister_gsi(u32 gsi)
 {
+	if (acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM)
+		return;
+
 	iosapic_unregister_intr(gsi);
 }

Given that the December 22 patch appears to be in mainline, and that this patch is simple, I shall cheerily bypass maintainers and send it in for 2.6.20.

reviewer Acked-by
#2 lore raw
Quoted 25 lines · Andrew Morton
Quoted 22 lines · On Fri, 02 Feb 2007 14:54:12 -0600 John Keller <[email protected]> wrote:

The SN Altix platform does not conform to the IOSAPIC IRQ routing model. Add code in acpi_unregister_gsi() to check if (acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM) and return.

---

Due to an oversight, this code was not added previously when similar code was added to acpi_register_gsi().

http://marc.theaimsgroup.com/?l=linux-acpi&m6680983430121&w=2

 arch/ia64/kernel/acpi.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6/arch/ia64/kernel/acpi.c
=================================> > --- linux-2.6.orig/arch/ia64/kernel/acpi.c 2007-02-02 14:44:31.000000000 -0600
+++ linux-2.6/arch/ia64/kernel/acpi.c 2007-02-02 14:47:44.658143727 -0600

(quoted diff) +0 -0
@@ -609,6 +609,9 @@ EXPORT_SYMBOL(acpi_register_gsi);
 
Quoted 11 lines

arch/ia64/kernel/acpi.c EXPORT_SYMBOL(acpi_register_gsi); · line 616

Quoted 7 lines
arch/ia64/kernel/acpi.c +3 -0
 void acpi_unregister_gsi(u32 gsi)
 {
+	if (acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM)
+		return;
+
 	iosapic_unregister_intr(gsi);
 }

Given that the December 22 patch appears to be in mainline, and that this patch is simple, I shall cheerily bypass maintainers and send it in for 2.6.20.

Yep.

thanks,
-Len