Re: PCI in docking station

From: Andrew McMillan (Andrew@catalyst.net.nz)
Date: Thu Jan 20 2000 - 17:43:56 EST


Martin Mares wrote:
>
> Hello,
>
> > But then when I ifconfig it the log says:
> > Jan 20 09:02:42 localhost kernel: TLAN: Cannot open eth1 because IRQ 11
> > is already in use.
> >
> > I have looked at the code for all of the drivers that I can see and they
> > all seem to try to open the device with IRQ shared if it is a PCI device
> > so why am I getting an "IRQ11 already in use" message?
>
> A bug in the TLAN driver. Please try applying this patch.

Many thanks for your help Martin,

I have applied the patch to 2.3.40-pre6 but this does not seem to find
the second PCI bus at all, let alone my third/fourth IDE interfaces,
third/fourth PCMCIA slots or my TLAN card. I had the same problem with
2.3.40-pre4 (otherwise unpatched), but 2.3.39 _does_ find all of my PCI
hardware.

I manually applied the changes from your patch to the tlan.c / tlan.h in
2.2.14, but I still received the identical error with that version. I
believe there are quite a few changes in the PCI code in 2.3 so I guess
I should not be surprised :-)

The output of "lspci -v" and "scanpci -v" under 2.3.40-pre6:

#lspci -v
00:00.0 Host bridge: Intel Corporation 430TX - 82439TX MTXC (rev 01)
        Flags: bus master, medium devsel, latency 32

00:01.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 01)
        Flags: bus master, medium devsel, latency 0

00:01.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
(prog-if 80 [Master])
        Flags: bus master, medium devsel, latency 64
        I/O ports at fcd0 [size=16]

00:01.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 64
        I/O ports at fce0 [disabled] [size=32]

00:01.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 01)
        Flags: medium devsel

00:02.0 VGA compatible controller: Cirrus Logic GD 7556 Video/Graphics
LCD/CRT Ctrlr (prog-if 00 [VGA])
        Flags: medium devsel, IRQ 11
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]

00:03.0 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: medium devsel, IRQ 11
        Memory at 68000000 (32-bit, non-prefetchable) [disabled] [size=4K]
        Bus: primary=00, secondary=01, subordinate=02, sec-latency=176
        I/O window 0: 00000000-00000003 [disabled]
        I/O window 1: 00000000-00000003 [disabled]

00:03.1 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: medium devsel, IRQ 11
        Memory at 68001000 (32-bit, non-prefetchable) [disabled] [size=4K]
        Bus: primary=00, secondary=03, subordinate=04, sec-latency=176
        I/O window 0: 00000000-00000003 [disabled]
        I/O window 1: 00000000-00000003 [disabled]

00:0f.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 02)
(prog-if 00 [Normal decode])
        Flags: medium devsel
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: fcf00000-fcffffff

#scanpci -v
PCI says configuration type 1

PCI probing configuration type 1

Probing for devices on PCI bus 0:

pci bus 0x0 cardnum 0x00 function 0x0000: vendor 0x8086 device 0x7100
 Intel 82439 TX
 CardVendor 0x0000 card 0x0000
  STATUS 0x2200 COMMAND 0x0006
  CLASS 0x06 0x00 0x00 REVISION 0x01
  HEADER 0x00 LATENCY 0x20

pci bus 0x0 cardnum 0x01 function 0x0000: vendor 0x8086 device 0x7110
 Intel 82371AB PIIX4 ISA
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x000f
  CLASS 0x06 0x01 0x00 REVISION 0x01
  HEADER 0x80 LATENCY 0x00

pci bus 0x0 cardnum 0x01 function 0x0001: vendor 0x8086 device 0x7111
 Intel 82371AB PIIX4 IDE
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0005
  CLASS 0x01 0x01 0x80 REVISION 0x01
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00
  BASE4 0x0000fcd1 addr 0x0000fcd0 I/O
  BYTE_0 0x07 BYTE_1 0xa3 BYTE_2 0x07 BYTE_3 0xa3

pci bus 0x0 cardnum 0x01 function 0x0002: vendor 0x8086 device 0x7112
 Intel 82371AB PIIX4 USB
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0004
  CLASS 0x0c 0x03 0x00 REVISION 0x01
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00
  BASE4 0x0000fce1 addr 0x0000fce0 I/O
  MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x04 INT_LINE 0xff

pci bus 0x0 cardnum 0x01 function 0x0003: vendor 0x8086 device 0x7113
 Intel 82371AB PIIX4 ACPI
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0001
  CLASS 0x06 0x80 0x00 REVISION 0x01

pci bus 0x0 cardnum 0x02 function 0x0000: vendor 0x1013 device 0x004c
 Cirrus Logic Device unknown
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0003
  CLASS 0x03 0x00 0x00 REVISION 0x00
  BASE0 0xfd000000 addr 0xfd000000 MEM
  MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0 cardnum 0x03 function 0x0000: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0000
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

pci bus 0x0 cardnum 0x03 function 0x0001: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0000
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

pci bus 0x0 cardnum 0x0f function 0x0000: vendor 0x1011 device 0x0024
 Digital Equipment Corporation DC21152
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0001
  CLASS 0x06 0x04 0x00 REVISION 0x02
  HEADER 0x01 LATENCY 0x40
  PRIBUS 0x00 SECBUS 0x01 SUBBUS 0x01 SECLT 0x44
  IOBASE 0xe100 IOLIM 0xefff SECSTATUS 0x2280
  NOPREFETCH_MEMBASE 0xfcf00000 MEMLIM 0xfcffffff
  PREFETCH_MEMBASE 0xfff10000 MEMLIM 0x000fffff
  NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_PERR_EN

Probing for devices on PCI bus 1:

==================================================================
Also, the output of "lspci -v" and "scanpci -v" under 2.2.14:

$ /sbin/lspci -v
00:00.0 Host bridge: Intel Corporation 430TX - 82439TX MTXC (rev 01)
        Flags: bus master, medium devsel, latency 32

00:01.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 01)
        Flags: bus master, medium devsel, latency 0

00:01.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
(prog-if 80 [Master])
        Flags: bus master, medium devsel, latency 64
        I/O ports at fcd0

00:01.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 64
        I/O ports at fce0

00:01.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 01)
        Flags: medium devsel

00:02.0 VGA compatible controller: Cirrus Logic GD 7556 Video/Graphics
LCD/CRT Ctrlr (prog-if 00 [VGA])
        Flags: medium devsel, IRQ 11
        Memory at fd000000 (32-bit, non-prefetchable)

00:03.0 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: bus master, medium devsel, latency 168
        Memory at 68000000 (32-bit, non-prefetchable)
        Bus: primary=00, secondary=20, subordinate=22, sec-latency=176
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

00:03.1 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: bus master, medium devsel, latency 168
        Memory at 68001000 (32-bit, non-prefetchable)
        Bus: primary=00, secondary=23, subordinate=25, sec-latency=176
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

00:0f.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 02)
(prog-if 00 [Normal decode])
        Flags: medium devsel
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: fcf00000-fcffffff

01:0c.0 Network controller: Compaq Computer Corporation Netelligent
10/100 (rev 10)
        Flags: medium devsel, IRQ 11
        I/O ports at e800
        Memory at fcfff800 (32-bit, non-prefetchable)

01:0e.0 IDE interface: CMD Technology Inc PCI0646 (rev 01) (prog-if 8f
[Master SecP SecO PriP PriO])
        Flags: medium devsel, IRQ 11
        I/O ports at e4d0
        I/O ports at e4d8
        I/O ports at e4e0
        I/O ports at e4e8
        I/O ports at e400

01:0f.0 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: bus master, medium devsel, latency 168
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=26, subordinate=28, sec-latency=176
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

01:0f.1 CardBus bridge: Texas Instruments PCI1131 (rev 01)
        Subsystem: Texas Instruments: Unknown device ac15
        Flags: bus master, medium devsel, latency 168
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=29, subordinate=2b, sec-latency=176
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

# scanpci -v
PCI says configuration type 1

PCI probing configuration type 1

Probing for devices on PCI bus 0:

pci bus 0x0 cardnum 0x00 function 0x0000: vendor 0x8086 device 0x7100
 Intel 82439 TX
 CardVendor 0x0000 card 0x0000
  STATUS 0x2200 COMMAND 0x0006
  CLASS 0x06 0x00 0x00 REVISION 0x01
  HEADER 0x00 LATENCY 0x20

pci bus 0x0 cardnum 0x01 function 0x0000: vendor 0x8086 device 0x7110
 Intel 82371AB PIIX4 ISA
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x000f
  CLASS 0x06 0x01 0x00 REVISION 0x01
  HEADER 0x80 LATENCY 0x00

pci bus 0x0 cardnum 0x01 function 0x0001: vendor 0x8086 device 0x7111
 Intel 82371AB PIIX4 IDE
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0005
  CLASS 0x01 0x01 0x80 REVISION 0x01
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00
  BASE4 0x0000fcd1 addr 0x0000fcd0 I/O
  BYTE_0 0x07 BYTE_1 0xa3 BYTE_2 0x07 BYTE_3 0xa3

pci bus 0x0 cardnum 0x01 function 0x0002: vendor 0x8086 device 0x7112
 Intel 82371AB PIIX4 USB
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0005
  CLASS 0x0c 0x03 0x00 REVISION 0x01
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00
  BASE4 0x0000fce1 addr 0x0000fce0 I/O
  MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x04 INT_LINE 0xff

pci bus 0x0 cardnum 0x01 function 0x0003: vendor 0x8086 device 0x7113
 Intel 82371AB PIIX4 ACPI
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0001
  CLASS 0x06 0x80 0x00 REVISION 0x01

pci bus 0x0 cardnum 0x02 function 0x0000: vendor 0x1013 device 0x004c
 Cirrus Logic Device unknown
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0003
  CLASS 0x03 0x00 0x00 REVISION 0x00
  BASE0 0xfd000000 addr 0xfd000000 MEM
  MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0 cardnum 0x03 function 0x0000: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0007
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

pci bus 0x0 cardnum 0x03 function 0x0001: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0007
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

pci bus 0x0 cardnum 0x0f function 0x0000: vendor 0x1011 device 0x0024
 Digital Equipment Corporation DC21152
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0001
  CLASS 0x06 0x04 0x00 REVISION 0x02
  HEADER 0x01 LATENCY 0x40
  PRIBUS 0x00 SECBUS 0x01 SUBBUS 0x01 SECLT 0x44
  IOBASE 0xe100 IOLIM 0xefff SECSTATUS 0x2280
  NOPREFETCH_MEMBASE 0xfcf00000 MEMLIM 0xfcffffff
  PREFETCH_MEMBASE 0xfff10000 MEMLIM 0x000fffff
  NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_PERR_EN

Probing for devices on PCI bus 1:

pci bus 0x1 cardnum 0x0c function 0x0000: vendor 0x0e11 device 0xae32
 Compaq Netellignet 10/100
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0003
  CLASS 0x02 0x80 0x00 REVISION 0x10
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x08
  BASE0 0x0000e801 addr 0x0000e800 I/O
  BASE1 0xfcfff800 addr 0xfcfff800 MEM
  MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x1 cardnum 0x0e function 0x0000: vendor 0x1095 device 0x0646
 CMD 646
 CardVendor 0x0000 card 0x0000
  STATUS 0x0280 COMMAND 0x0001
  CLASS 0x01 0x01 0x8f REVISION 0x01
  BIST 0x00 HEADER 0x00 LATENCY 0x40 CACHE 0x00
  BASE0 0x0000e4d1 addr 0x0000e4d0 I/O
  BASE1 0x0000e4d9 addr 0x0000e4d8 I/O
  BASE2 0x0000e4e1 addr 0x0000e4e0 I/O
  BASE3 0x0000e4e9 addr 0x0000e4e8 I/O
  BASE4 0x0000e401 addr 0x0000e400 I/O
  MAX_LAT 0x04 MIN_GNT 0x02 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x1 cardnum 0x0f function 0x0000: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0007
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

pci bus 0x1 cardnum 0x0f function 0x0001: vendor 0x104c device 0xac15
 Texas Instruments PCI1131
 CardVendor 0x0000 card 0x0000
  STATUS 0x0200 COMMAND 0x0007
  CLASS 0x06 0x07 0x00 REVISION 0x01
  HEADER 0x82 LATENCY 0xa8

-- 
_____________________________________________________________________
            Andrew McMillan, e-mail: Andrew@cat-it.co.nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64 (21) 635 694, Fax: +64 (4) 499 5596, Office: +64 (4) 499 2267

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:24 EST