Skip to contentSkip to conversation

iosapic fix

PATCH New Takayoshi Kochi 1 participant 1 message Apr 15, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iosapic fix

Hi,

This patch fixes waste of interrupt vector pool by not allocating an interrupt vector to a GSI which has no corresponding IO SAPIC.

Tested on NEC TX7 and BigSur.

Thanks,
---
Takayoshi Kochi <[email protected]>

arch/ia64/kernel/iosapic.c renamed from arch/ia64/kernel/iosapic.c.orig +3 -0
@@ -709,6 +709,9 @@
 
 		vector = gsi_to_vector(gsi);
 		if (vector < 0) {
+			if (find_iosapic(gsi) < 0)
+				continue;
+
 			/* allocate a vector for this interrupt line */
 			if (pcat_compat && (gsi < 16))
 				vector = isa_irq_to_vector(gsi);