Subject: port-i386/21013: VT82C596A PIR not recognized by VIA PIR fixup code
To: None <>
From: Christopher SEKIYA <>
List: netbsd-bugs
Date: 04/05/2003 11:31:39
>Number:         21013
>Category:       port-i386
>Synopsis:       VT82C596A PIR not recognized by VIA PIR fixup code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 04 18:32:00 PST 2003
>Originator:     Christopher SEKIYA
>Release:        NetBSD 1.6Q

-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)
System: NetBSD izu 1.6Q NetBSD 1.6Q (IZU) #0: Fri Mar 28 16:47:21 JST 2003 wileyc@izu:/usr/builder/sys/arch/i386/compile/IZU i386
Architecture: i386
Machine: i386

	The VIA VT82C596A in one of my boxes wasn't being configured
	properly by the BIOS, and pci_intr_fixup.c wasn't aware that this
	chip could be handled by the VIA '586 code.  After adding the PCI
	ID to the proper device table, the box is happy:

PCI IRQ Routing Table rev. 1.0 found at 0xfdd70, size 112 bytes (5 entries)
PCI Interrupt Router at 000:07:0 (VIA Technologies VT82C596A (Apollo Pro) PCI-IS
A Bridge)
PCI Exclusive IRQs: 9 10 11
  device vendor product pin PIRQ IRQ stage
000:09:0 0x10b7 0x9200   A  0x01  10  0    already assigned
000:10:0 0x1180 0x0475   A  0x02  11  0    WARNING: overriding irq 9

	The following two-line diff adds support for this chip:

RCS file: /cvsroot/src/sys/arch/i386/pci/pci_intr_fixup.c,v
retrieving revision 1.23
diff -u -r1.23 pci_intr_fixup.c
--- pci_intr_fixup.c    2003/02/26 22:23:08     1.23
+++ pci_intr_fixup.c    2003/04/05 02:25:59
@@ -151,6 +151,8 @@
          via82c586_init },
+         via82c586_init },
          via82c586_init },