Skip to contentSkip to conversation

2.4 PATCH: Fix acpi for bigsur

DISCUSSION Bjorn Helgaas 1 participant 1 message Aug 6, 2003 2 messages not in the archive ACPI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20030806154504.GC28899-8HFB7qzu3A/[email protected]

#2 lore raw
Quoted 1 line

I need this patch to get the current 2.4 kernel to boot on bigsur.

I reproduced that problem, and applied the following patch for 2.4 (this is what we had in 2.4.21, prior to the big ACPI update in 2.4).

Andy, can you apply this to ACPI? It's needed for both 2.4 and 2.5 ia64 kernels. The problem is that on machines with an 8259, the SCI interrupt might be a legacy ISA IRQ, not a GSI.

I'm not thrilled about the name "acpi_irq_to_vector". Something like "acpi_interrupt_to_irq" seems like it would fit the usage better. Suggestions?

Bjorn

===== drivers/acpi/osl.c 1.27 vs edited =====

drivers/acpi/osl.c +7 -2
@@ -251,7 +251,12 @@
 	irq = acpi_fadt.sci_int;
 
 #ifdef CONFIG_IA64
-	irq = gsi_to_vector(irq);
+	irq = acpi_irq_to_vector(irq);
+	if (irq < 0) {
+		printk(KERN_ERR PREFIX "SCI (ACPI interrupt %d) not registerd\n",
+		       acpi_fadt.sci_int);
+		return AE_OK;
+	}
 #endif
 	acpi_irq_irq = irq;
 	acpi_irq_handler = handler;
@@ -269,7 +274,7 @@
 {
 	if (acpi_irq_handler) {
 #ifdef CONFIG_IA64
-		irq = gsi_to_vector(irq);
+		irq = acpi_irq_to_vector(irq);
 #endif
 		free_irq(irq, acpi_irq);
 		acpi_irq_handler = NULL;

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html