From owner-freebsd-current Thu Dec 2 23:35: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from mail001.mediacity.com (mail001.mediacity.com [205.216.172.9]) by hub.freebsd.org (Postfix) with SMTP id 637FE151CE for ; Thu, 2 Dec 1999 23:34:50 -0800 (PST) (envelope-from spock@techfour.net) Received: (qmail 20726 invoked from network); 3 Dec 1999 07:34:30 -0000 Received: from cm-208-138-198-17.fredericksburg.mg.ispchannel.com (HELO enterprise.muriel.penguinpowered.com) (208.138.198.17) by mail001.mediacity.com with SMTP; 3 Dec 1999 07:34:30 -0000 Content-Length: 1779 Message-ID: X-Mailer: XFMail 1.3.1 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-SENDERNAME: `Mike Heffner` Date: Fri, 03 Dec 1999 02:34:42 -0500 (EST) From: Mike Heffner To: FreeBSD-current Subject: incorrect irqs with pci devices Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have recently noticed that the irqs for my PCI devices are being screwed up somehow. It is easily noticeable with dmesg, the correct one's are in paren.: vga-pci0: irq 17(real 11) at device 0.0 on pci1 ^^ ^^ pcm1: irq 16(real 10) at device 15.0 on pci0 ^^ ^^ ed0: irq 18(real 9) at device 18.0 on pci0 ^^ ^ I used the following hack to show the real irqs: --- pci.c.orig Fri Dec 3 02:20:56 1999 +++ pci.c Fri Dec 3 02:25:08 1999 @@ -1149,8 +1149,10 @@ retval += bus_print_child_header(dev, child); - if (cfg->intpin > 0 && cfg->intline != 255) + if (cfg->intpin > 0 && cfg->intline != 255){ retval += printf(" irq %d", cfg->intline); + printf("(real %u)", pci_read_config(child, PCI_INTERRUPT_REG, 1)); + } retval += printf(" at device %d.%d", pci_get_slot(child), pci_get_function(child)); pciconf also shows the incorrect irqs (but I can read the correct ones with the -r option for pciconf). Is this a known problem, is anyone else experiencing this? I haven't really looked at any of the code yet ( i got lost). Here's some other relevant info (more available on request): pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 --------------------------------- Mike Heffner Fredericksburg, VA ICQ# 882073 Date: 03-Dec-99 Time: 02:08:53 --------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message