From owner-freebsd-current@FreeBSD.ORG Sun Apr 10 09:10:39 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD62716A4CE for ; Sun, 10 Apr 2005 09:10:39 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8516843D2F for ; Sun, 10 Apr 2005 09:10:38 +0000 (GMT) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DKYPz-0007cg-H8 for freebsd-current@freebsd.org; Sun, 10 Apr 2005 11:07:47 +0200 Received: from dhcp193.ifado.de ([195.253.22.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2005 11:07:47 +0200 Received: from wb by dhcp193.ifado.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2005 11:07:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: "Wilhelm B. Kloke" Date: Sun, 10 Apr 2005 09:07:36 +0000 (UTC) Organization: InstArbPhysUniDo Lines: 139 Message-ID: References: <20050406233405.O47071@carver.gumbysoft.com> <200504081656.51917.jhb@FreeBSD.org> <20050409231647.Y74901@carver.gumbysoft.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dhcp193.ifado.de User-Agent: slrn/0.9.8.0 (FreeBSD) Cache-Post-Path: vestein!unknown@yorikke X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Sender: news Subject: Re: Potential source of interrupt aliasing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 09:10:39 -0000 Doug White schrieb: > On Fri, 8 Apr 2005, John Baldwin wrote: > > For fun, I put together this one-liner to at least test the theory: > > http://people.freebsd.org/~dwhite/intr_machdep.c.20050409.patch As I have found a problem which could be related to this, I tried your patch. For my problems, it made things not better, possibly worse. Now the description of my problem: I have got a NVidia Quadro card, which I want to use in active stereo mode. This worked approximately well on my older K6 system. Now I have upgraded to K8 (amd64). As NVidia does not supply amd64 drivers till now, I have installed an i386 FreeBSD-5.4 on the machine. I get interrupt rates above 85 on the irq11 line. Before patching up to 200, after patching more than 1000. I suspect that the warnings about $PIR may be related to my problem. Here is the dmesg (with your patch): Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-PRERELEASE #6: Sun Apr 10 10:49:37 CEST 2005 wb@wbk2:/home/src-5.3/sys/i386/compile/WBK Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.81-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x10ff0 Stepping = 0 Features=0x78bfbff AMD Features=0xe0500000 real memory = 1073676288 (1023 MB) avail memory = 1041125376 (992 MB) MPTable: ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 $PIR: No matching entry for 0.1.INTA $PIR: No matching entry for 0.2.INTA $PIR: No matching entry for 0.2.INTB $PIR: No matching entry for 0.2.INTC $PIR: No matching entry for 0.5.INTA $PIR: No matching entry for 0.6.INTA $PIR: No matching entry for 0.10.INTA agp0: mem 0xe0000000-0xe7ffffff at device 0.0 on pci0 agp0: Unable to find NVIDIA Memory Controller 1. device_attach: agp0 attach returned 19 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xfc003000-0xfc003fff irq 9 at device 2.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xfc004000-0xfc004fff irq 9 at device 2.1 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered pci0: at device 2.2 (no driver attached) pci0: at device 5.0 (no driver attached) pci0: at device 6.0 (no driver attached) atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 8.0 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 atapci1: port 0xdc00-0xdc0f,0xb70-0xb73,0x970-0x977,0xbf0-0xbf3,0x9f0-0x9f7 irq 11 at device 10.0 on pci0 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 pcib1: at device 11.0 on pci0 pci1: on pcib1 $PIR: ROUTE_INTERRUPT failed. nvidia0: mem 0xf0000000-0xf007ffff,0xe8000000-0xefffffff,0xf8000000-0xf8ffffff irq 11 at device 0.0 on pci1 pcib2: at device 14.0 on pci0 pci2: on pcib2 pcib2: unable to route slot 14 INTA skc0: port 0x9000-0x90ff mem 0xfb000000-0xfb003fff irq 19 at device 11.0 on pci2 skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7) sk0: on skc0 sk0: Ethernet address: 00:0f:ea:5c:67:4a miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto atapci2: port 0xa400-0xa40f,0xa000-0xa003,0x9c00-0x9c07,0x9800-0x9803,0x9400-0x9407 mem 0xfb009000-0xfb0091ff irq 17 at device 13.0 on pci2 ata4: channel #0 on atapci2 ata5: channel #1 on atapci2 fwohci0: mem 0xfb004000-0xfb007fff,0xfb008000-0xfb0087ff irq 5 at device 14.0 on pci2 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:0f:ea:56:00:59:77:0a fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) fwohci0: phy int orm0: at iomem 0xd2000-0xd2fff,0xd0000-0xd17ff,0xc0000-0xcefff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 1808812877 Hz quality 800 Timecounters tick every 10.000 msec acd0: DVDR at ata0-master UDMA33 ad4: 152626MB [310098/16/63] at ata2-master UDMA33 Mounting root from ufs:/dev/ad4s4g -- Dipl.-Math. Wilhelm Bernhard Kloke Institut fuer Arbeitsphysiologie an der Universitaet Dortmund Ardeystrasse 67, D-44139 Dortmund, Tel. 0231-1084-257