[Linux-ia64] skip _PRT entry for non-existent IOSAPICs

From: Takayoshi Kochi <kochi_at_hpc.bs1.fc.nec.co.jp>
Date: 2003-01-17 17:41:29
Hi,

On some machines that support I/O hot-plugging,
it happens that after boottime one or more IO SAPICs appear
after hot-plug event.  Even in that case, ACPI _PRT entries
can exist for devices behind those IO SAPICs at boottime
for future use.

Currently iosapic.c will give up parsing _PRT entries
once one of them hits such a non-existent IO SAPIC.

This patch fixes the problem on 2.5 ia64 bk tree.
For 2.4, we don't have this problem now.

Thanks,
---
Takayoshi Kochi <kochi@hpc.bs1.fc.nec.co.jp>

--- ia64-2.5/arch/ia64/kernel/iosapic.c	Fri Dec 27 16:27:23 2002
+++ ia64-2.5.mod/arch/ia64/kernel/iosapic.c	Fri Jan 17 15:31:50 2003
@@ -752,7 +752,7 @@
 
 			if (index < 0) {
 				printk(KERN_WARNING"IOSAPIC: GSI 0x%x has no IOSAPIC!\n", gsi);
-				return;
+				continue;
 			}
 			addr = iosapic_lists[index].addr;
 			gsi_base = iosapic_lists[index].gsi_base;
Received on Thu Jan 16 22:42:36 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST