Xorg 7.2 doesn't scan second PCI bus

Laurent Lagrange lagrange at fr.oleane.com
Fri Mar 16 11:11:41 PDT 2007


Hi

I'm working on a powerpc platform with 2 PCI busses. I'm writing a driver
for a video card and I used to test it with Xorg 6.8.2. I decided to go on
to Xorg 7.2 so I cross built it. My problem is that Xorg doesn't find my
video card, because it doesn't scan the second pci bus where the card
resides.

Here my log :

lspci :
# lspci -vx

00:01.0 Class 0680: 10e3:0148 (rev 01)
	Subsystem: 10e3:0000
	Flags: bus master, 66Mhz, medium devsel, latency 128, IRQ 78
	Memory at 80000000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: [40] PCI-X non-bridge device.
00: e3 10 48 01 46 01 30 02 01 00 80 06 08 80 00 00
10: 04 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 e3 10 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 4e 01 00 00

01:01.0 Class 0106: 8086:3200
	Subsystem: 8086:3200
	Flags: bus master, 66Mhz, medium devsel, latency 128, IRQ 87
	Memory at b4000000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: [e0] PCI-X non-bridge device.
	Capabilities: [e8] Power Management version 2
	Capabilities: [f0] Message Signalled Interrupts: 64bit+ Queue=0/2 Enable-
00: 86 80 00 32 46 01 b0 02 00 00 06 01 80 80 00 00
10: 04 00 00 b4 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 00 32
30: 00 00 00 00 e0 00 00 00 00 00 00 00 57 01 10 01

01:0d.0 Class 0380: 10cf:202b (rev 02)           <====== That's my video
card
	Flags: 66Mhz, medium devsel, IRQ 84
	I/O ports at f5000000 [size=256]
	I/O ports at f5000100 [size=256]
	Memory at a0000000 (32-bit, prefetchable) [size=256M]
	Memory at b0000000 (32-bit, prefetchable) [size=64M]
00: cf 10 2b 20 43 01 a0 02 02 00 80 03 00 00 00 00
10: 01 00 00 f4 01 01 00 f4 08 00 00 a0 08 00 00 b0
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 54 01 00 00

When I launch X :
...
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:01:0: chip 10e3,0148 card 10e3,0000 rev 01 class 06,80,00 hdr
00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
        [0] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(II) Addressable bus resource ranges are
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
        [1] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
        [0] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1  0       0x00000000 - 0x000000ff (0x100) IX[B]
(II) Active PCI resource ranges:
        [0] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
(II) Active PCI resource ranges after removing overlaps:
        [0] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
        [0] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1  0       0x00000000 - 0x000000ff (0x100) IX[B]
(II) All system resource ranges:
        [0] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  0       0x80000000 - 0x80000fff (0x1000) MX[B]
        [5] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [6] -1  0       0x00000000 - 0x000000ff (0x100) IX[B]
...

And if I check with scanpci :

# scanpci

pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x10e3 device 0x0148
 Tundra Semiconductor Corp. Tsi148 [Tempe]

Did I make a mistake when cross building the server. I can't use my driver,
neither the generic fbdev driver.

Any ideas ?

Thanks
Laurent







More information about the xorg mailing list