Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2004 20:52:45 +0100
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        ticso@cicely.de
Subject:   Re: Still IRQ routing problems with bridged devices.
Message-ID:  <20040102195244.GE17023@cicely12.cicely.de>
In-Reply-To: <XFMail.20040102141953.jhb@FreeBSD.org>
References:  <20040101172803.GJ11668@cicely12.cicely.de> <XFMail.20040102141953.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Jan 02, 2004 at 02:19:53PM -0500, John Baldwin wrote:
> 
> On 01-Jan-2004 Bernd Walter wrote:
> > On Thu, Jan 01, 2004 at 10:12:23AM -0700, M. Warner Losh wrote:
> >> In message: <20040101155100.GF11668@cicely12.cicely.de>
> >>             Bernd Walter <ticso@cicely12.cicely.de> writes:
> >> : On Wed, Dec 31, 2003 at 10:22:30PM -0700, M. Warner Losh wrote:
> >> : > In message: <20040101013224.GC11668@cicely12.cicely.de>
> >> : >             Bernd Walter <ticso@cicely12.cicely.de> writes:
> >> : > : The board is an old Asus T2P4 with 3 bridged cards and $PIR table.
> >> : > : All IRQs behind bridges get bogusly IRQ4 instead of the right ones.
> >> : > : Is this only a problem on some boards or do we have a general irq
> >> : > : routing problem with bridges?
> >> : > 
> >> : > It is a problem with some bridges and PCI BIOS interrupt routing.
> >> : 
> >> : The intline registers are correct - that's what used to run since years.
> >> : What has the kind of bridge to do with it?
> >> 
> >> just what the code does :-)
> > 
> > But bridges are handled generic so why would only some bridges show
> > this problem?
> > The bridges are 21050 types btw.
> 
> Sounds like a BIOS bug.  If a bridge isn't listed in the $PIR, we
> use the barber-pole swizzle to route across it.  However, that is

It can't know about my bridges because all of them are on cards and
they wouldn't won't fit with just 7 entries.

> technically only defined for bridges on add-in cards.  The only
> way we can tell if a bridge is on an add-in card is if it is not
> listed either in ACPI's namespace with a _PRT or it is not listed
> in the $PIR.  Part of teh problem is that we shouldn't be using

It's not that simple.
The chips behind the bridges are layed out to all use INTA on the
primary bus, but INTA is correctly routed for non-bridged cards.
I have no clue about $PIR and therefor have no idea where irq4 comes
from - any pointer to $PIR documents are welcome.

> IRQ4 when we route PCI devices if you have IRQ4 used for an ISA
> device anyway.

ISA device are probed later - how would you know that IRQ4 is used
by ISA?

Warner already asked for boot -v output.
I hope things become clear then.
It's just that the system is the NFS server with /home on it.
Therefor I have to wait for a good moment to reboot the box.
Attached is the non -v output with int routing disabled.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de


--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.c5"

Copyright (c) 1992-2003 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.2-CURRENT #1: Wed Dec 31 19:18:11 CET 2003
    root@:/var/d9/obj/var/d7/builder/c5-2003-12-30/src/sys/CICELY5
Preloaded elf kernel "/boot/kernel/kernel" at 0xc070b000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD-K6tm w/ multimedia extensions (233.03-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x562  Stepping = 2
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
  AMD Features=0x400<<b10>>
real memory  = 268435456 (256 MB)
avail memory = 257196032 (245 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00f09b0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0xe800-0xe80f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <serial bus, USB> at device 7.2 (no driver attached)
pcib1: <PCI-PCI bridge> at device 9.0 on pci0
pci1: <PCI bus> on pcib1
ahc0: <Adaptec 398X SCSI RAID adapter> port 0xd800-0xd8ff mem 0xe5000000-0xe5000fff irq 5 at device 4.0 on pci1
aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs
ahc1: <Adaptec aic7810 RAID memory controller> port 0xd400-0xd4ff mem 0xe7000000-0xe71fffff,0xe4800000-0xe4800fff irq 10 at device 5.0 on pci1
RAID functionality unsupported
device_probe_and_attach: ahc1 attach returned 6
ahc1: <Adaptec 398X SCSI RAID adapter> port 0xd000-0xd0ff mem 0xe4000000-0xe4000fff irq 5 at device 8.0 on pci1
aic7870: Single Channel B, SCSI Id=7, 16/253 SCBs
ahc2: <Adaptec 398X SCSI RAID adapter> port 0xb800-0xb8ff mem 0xe3800000-0xe3800fff irq 5 at device 12.0 on pci1
aic7870: Single Channel C, SCSI Id=7, 16/253 SCBs
pcib2: <PCI-PCI bridge> at device 10.0 on pci0
pci2: <PCI bus> on pcib2
ahc3: <Adaptec 3940 Ultra SCSI adapter> port 0xa800-0xa8ff mem 0xe3000000-0xe3000fff irq 12 at device 4.0 on pci2
aic7880: Ultra Single Channel A, SCSI Id=7, 16/253 SCBs
ahc4: <Adaptec 3940 Ultra SCSI adapter> port 0xa400-0xa4ff mem 0xe2800000-0xe2800fff irq 5 at device 5.0 on pci2
aic7880: Ultra Single Channel B, SCSI Id=7, 16/253 SCBs
de0: <Digital 21140A Fast Ethernet> port 0x9800-0x987f mem 0xe2000000-0xe200007f irq 11 at device 11.0 on pci0
de0: Cogent 21140A [10-100Mb/s] pass 2.0
de0: address 00:00:92:9b:20:e7
pcib3: <PCI-PCI bridge> at device 12.0 on pci0
pci3: <PCI bus> on pcib3
ahc5: <Adaptec 398X SCSI RAID adapter> port 0x8800-0x88ff mem 0xe1800000-0xe1800fff irq 10 at device 4.0 on pci3
aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs
ahc6: <Adaptec aic7810 RAID memory controller> port 0x8400-0x84ff mem 0xe6000000-0xe61fffff,0xe1000000-0xe1000fff irq 11 at device 5.0 on pci3
RAID functionality unsupported
device_probe_and_attach: ahc6 attach returned 6
ahc6: <Adaptec 398X SCSI RAID adapter> port 0x8000-0x80ff mem 0xe0800000-0xe0800fff irq 10 at device 8.0 on pci3
aic7870: Single Channel B, SCSI Id=7, 16/253 SCBs
ahc7: <Adaptec 398X SCSI RAID adapter> port 0x7800-0x78ff mem 0xe0000000-0xe0000fff irq 10 at device 12.0 on pci3
aic7870: Single Channel C, SCSI Id=7, 16/253 SCBs
orm0: <Option ROMs> at iomem 0xcc000-0xcffff,0xc8000-0xca7ff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x3bc-0x3c3 irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sc0: <System console> 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 flags 0x80 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0303> can't assign resources (port)
Timecounter "TSC" frequency 233029675 Hz quality 800
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc2e2b160
ad0: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-master WDMA2
GEOM: create disk ad1 dp=0xc2e2b060
ad1: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-slave WDMA2
Waiting 15 seconds for SCSI devices to settle
GEOM: create disk cd0 dp=0xc2d9a600
GEOM: create disk cd1 dp=0xc2d9c600
GEOM: create disk cd2 dp=0xc2e71e00
GEOM: create disk cd3 dp=0xc2e71600
GEOM: create disk cd4 dp=0xc2e70e00
GEOM: create disk cd5 dp=0xc2e70600
GEOM: create disk da0 dp=0xc2e36450
GEOM: create disk da1 dp=0xc2e48850
GEOM: create disk da2 dp=0xc2e2e050
GEOM: create disk da3 dp=0xc2e5dc50
GEOM: create disk da4 dp=0xc2e4d450
GEOM: create disk da32 dp=0xc2e5f450
GEOM: create disk da5 dp=0xc2e5f850
GEOM: create disk da6 dp=0xc2e34850
GEOM: create disk da7 dp=0xc2e4d050
GEOM: create disk da8 dp=0xc2e5bc50
GEOM: create disk da9 dp=0xc2e5b850
GEOM: create disk da10 dp=0xc2e51050
GEOM: create disk da11 dp=0xc2e50c50
GEOM: create disk da12 dp=0xc2e2f850
GEOM: create disk da13 dp=0xc2e2ec50
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <PLEXTOR CD-ROM PX-32CS 1.00> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: cd present [81854 x 2048 byte records]
cd1 at ahc0 bus 0 target 4 lun 0
cd1: <PLEXTOR CD-ROM PX-32CS 1.00> Removable CD-ROM SCSI-2 device 
cd1: 10.000MB/s transfers (10.000MHz, offset 15)
cd1: cd present [325813 x 2048 byte records]
da0 at ahc0 bus 0 target 2 lun 0
da0: <IBM LPS270S       !V 590K> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 8)
da0: 258MB (528808 512 byte sectors: 64H 32S/T 258C)
da11 at ahc1 bus 0 target 1 lun 0
da11: <DEC DSP5350S 427B> Fixed Direct Access SCSI-2 device 
da11: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da11: 3406MB (6976375 512 byte sectors: 255H 63S/T 434C)
da12 at ahc1 bus 0 target 2 lun 0
da12: <DEC DSP5350S 427B> Fixed Direct Access SCSI-2 device 
da12: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da12: 3406MB (6976375 512 byte sectors: 255H 63S/T 434C)
da1 at ahc2 bus 0 target 1 lun 0
da1: <SEAGATE ST43400N 1028> Fixed Direct Access SCSI-2 device 
da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da1: 2777MB (5688447 512 byte sectors: 255H 63S/T 354C)
da2 at ahc2 bus 0 target 2 lun 0
da2: <SEAGATE ST43400N 1028> Fixed Direct Access SCSI-2 device 
da2: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da2: 2777MB (5688447 512 byte sectors: 255H 63S/T 354C)
da3 at ahc2 bus 0 target 3 lun 0
da3: <SEAGATE ST43400N 1028> Fixed Direct Access SCSI-2 device 
da3: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da3: 2777MB (5688447 512 byte sectors: 255H 63S/T 354C)
cd2 at ahc3 bus 0 target 2 lun 0
cd2: <TOSHIBA CD-ROM XM-3501TA 3054> Removable CD-ROM SCSI-2 device 
cd2: 4.237MB/s transfers (4.237MHz, offset 15)
cd2: cd present [34562 x 2048 byte records]
da6 at ahc5 bus 0 target 4 lun 0
da6: <FUJITSU M2652S-512 010O> Fixed Direct Access SCSI-2 device 
da6: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da6: 1665MB (3409965 512 byte sectors: 255H 63S/T 212C)
da7 at ahc6 bus 0 target 2 lun 0
da7: <DEC DSP5200S T392> Fixed Direct Access SCSI-2 device 
da7: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da7: 1908MB (3907911 512 byte sectors: 255H 63S/T 243C)
da8 at ahc6 bus 0 target 3 lun 0
da8: <DEC DSP5200S T392> Fixed Direct Access SCSI-2 device 
da8: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da8: 1908MB (3907911 512 byte sectors: 255H 63S/T 243C)
da9 at ahc6 bus 0 target 4 lun 0
da9: <DEC DSP5200S T392> Fixed Direct Access SCSI-2 device 
da9: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da9: 1908MB (3907911 512 byte sectors: 255H 63S/T 243C)
da10 at ahc6 bus 0 target 5 lun 0
da10: <DEC DSP5200S T392> Fixed Direct Access SCSI-2 device 
da10: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da10: 1908MB (3907911 512 byte sectors: 255H 63S/T 243C)
ch0 at ahc7 bus 0 target 2 lun 0
ch0: <HP C1718T 2.11> Removable Changer SCSI-2 device 
ch0: 3.300MB/s transfers
ch0: 16 slots, 1 drive, 1 picker, 1 portal
cd5 at ahc3 bus 0 target 5 lun 0
cd5: <TOSHIBA CD-ROM XM-5401TA 3605> Removable CD-ROM SCSI-2 device 
cd5: 4.237MB/s transfers (4.237MHz, offset 15)
cd5: cd present [324898 x 2048 byte records]
da4 at ahc3 bus 0 target 0 lun 0
da4: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device 
da4: 20.000MB/s transfers (20.000MHz, offset 15)
da4: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
da13 at ahc7 bus 0 target 3 lun 0
da13: <HP C1716T 3404> Removable Direct Access SCSI-2 device 
da13: 5.000MB/s transfers (5.000MHz, offset 8)
da13: Attempt to query device size failed: NOT READY, Medium not present
cd3 at ahc3 bus 0 target 3 lun 0
cd3: <TOSHIBA CD-ROM XM-3601TA 0265> Removable CD-ROM SCSI-2 device 
cd3: 4.237MB/s transfers (4.237MHz, offset 15)
cd3: Attempt to query device size failed: NOT READY, Medium not present
da5 at ahc3 bus 0 target 6 lun 0
da5: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device 
da5: 20.000MB/s transfers (20.000MHz, offset 15)
da5: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
cd4 at ahc3 bus 0 target 4 lun 0
cd4: <TOSHIBA CD-ROM XM-3601TA 0175> Removable CD-ROM SCSI-2 device 
cd4: 4.237MB/s transfers (4.237MHz, offset 15)
cd4: Attempt to query device size failed: NOT READY, Medium not present
da32 at ahc3 bus 0 target 1 lun 0
da32: <SHARP JY800 MODC 2.45> Removable Direct Access SCSI-CCS device 
da32: 5.000MB/s transfers (5.000MHz, offset 8)
da32: Attempt to query device size failed: NOT READY, Medium not present

--x+6KMIRAuhnl3hBn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040102195244.GE17023>