Module Name: src Committed By: snj Date: Sun Oct 4 00:04:08 UTC 2009
Modified Files: src/sys/arch/xen/xen [netbsd-5]: pci_intr_machdep.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1054): sys/arch/xen/xen/pci_intr_machdep.c: revision 1.10 Keep the BIOS-configured interrupt number if intr_find_mpmapping() doesn't return a APIC_INT_VIA_APIC pirq. Problem debugged and patch tested by jym@ To generate a diff of this commit: cvs rdiff -u -r1.7.6.2 -r1.7.6.3 src/sys/arch/xen/xen/pci_intr_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/pci_intr_machdep.c diff -u src/sys/arch/xen/xen/pci_intr_machdep.c:1.7.6.2 src/sys/arch/xen/xen/pci_intr_machdep.c:1.7.6.3 --- src/sys/arch/xen/xen/pci_intr_machdep.c:1.7.6.2 Sun Oct 4 00:03:20 2009 +++ src/sys/arch/xen/xen/pci_intr_machdep.c Sun Oct 4 00:04:08 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_intr_machdep.c,v 1.7.6.2 2009/10/04 00:03:20 snj Exp $ */ +/* $NetBSD: pci_intr_machdep.c,v 1.7.6.3 2009/10/04 00:04:08 snj Exp $ */ /* * Copyright (c) 2005 Manuel Bouyer. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_intr_machdep.c,v 1.7.6.2 2009/10/04 00:03:20 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_intr_machdep.c,v 1.7.6.3 2009/10/04 00:04:08 snj Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -109,8 +109,12 @@ pci_decompose_tag(pc, pa->pa_tag, &bus, &dev, &func); if (mp_busses != NULL) { if (intr_find_mpmapping(bus, (dev<<2)|(rawpin-1), ihp) == 0) { - /* make sure a new IRQ will be allocated */ - ihp->pirq &= ~0xff; + if (ihp->pirq & APIC_INT_VIA_APIC) { + /* make sure a new IRQ will be allocated */ + ihp->pirq &= ~0xff; + } else { + ihp->pirq |= line; + } goto end; } /*