Public bug reported:

Newest version of scanpci in xserver-xorg-core (1.1.1-0ubuntu5) seems to
use sysfs rather than proc. Since then X can't find my graphics card and
thus reports "No devices detected" during startup.

scanpci in xserver-xorg-core 1.1.1-0ubuntu5 gives:

pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x11ab device 0x6460
 Marvell Technology Group Ltd. MV64360/64361/64362 System Controller

pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x1106 device 0x3044
 VIA Technologies, Inc. IEEE 1394 Host Controller

pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x109e device 0x036e
 Brooktree Corporation Bt878 Video Capture

pci bus 0x0000 cardnum 0x06 function 0x01: vendor 0x109e device 0x0878
 Brooktree Corporation Bt878 Audio Capture

pci bus 0x0000 cardnum 0x0c function 0x00: vendor 0x1106 device 0x8231
 VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge]

pci bus 0x0000 cardnum 0x0c function 0x01: vendor 0x1106 device 0x0571
 VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE

pci bus 0x0000 cardnum 0x0c function 0x02: vendor 0x1106 device 0x3038
 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller

pci bus 0x0000 cardnum 0x0c function 0x03: vendor 0x1106 device 0x3038
 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller

pci bus 0x0000 cardnum 0x0c function 0x04: vendor 0x1106 device 0x8235
 VIA Technologies, Inc. VT8235 ACPI

pci bus 0x0000 cardnum 0x0c function 0x05: vendor 0x1106 device 0x3058
 VIA Technologies, Inc. VT82C686 AC97 Audio Controller

pci bus 0x0000 cardnum 0x0c function 0x06: vendor 0x1106 device 0x3068
 VIA Technologies, Inc. AC'97 Modem Controller

pci bus 0x0000 cardnum 0x0d function 0x00: vendor 0x1106 device 0x3065
 VIA Technologies, Inc. VT6102 [Rhine-II]


scanpci in xserver-xorg-core 1.1.1-0ubuntu4 gives:

pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x11ab device 0x6460
 Marvell Technology Group Ltd. MV64360/64361/64362 System Controller

pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x1106 device 0x3044
 VIA Technologies, Inc. IEEE 1394 Host Controller

pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x109e device 0x036e
 Brooktree Corporation Bt878 Video Capture

pci bus 0x0000 cardnum 0x06 function 0x01: vendor 0x109e device 0x0878
 Brooktree Corporation Bt878 Audio Capture

pci bus 0x0000 cardnum 0x0c function 0x00: vendor 0x1106 device 0x8231
 VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge]

pci bus 0x0000 cardnum 0x0c function 0x01: vendor 0x1106 device 0x0571
 VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE

pci bus 0x0000 cardnum 0x0c function 0x02: vendor 0x1106 device 0x3038
 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller

pci bus 0x0000 cardnum 0x0c function 0x03: vendor 0x1106 device 0x3038
 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller

pci bus 0x0000 cardnum 0x0c function 0x04: vendor 0x1106 device 0x8235
 VIA Technologies, Inc. VT8235 ACPI

pci bus 0x0000 cardnum 0x0c function 0x05: vendor 0x1106 device 0x3058
 VIA Technologies, Inc. VT82C686 AC97 Audio Controller

pci bus 0x0000 cardnum 0x0c function 0x06: vendor 0x1106 device 0x3068
 VIA Technologies, Inc. AC'97 Modem Controller

pci bus 0x0000 cardnum 0x0d function 0x00: vendor 0x1106 device 0x3065
 VIA Technologies, Inc. VT6102 [Rhine-II]

pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x11ab device 0x6460
 Marvell Technology Group Ltd. MV64360/64361/64362 System Controller

pci bus 0x0001 cardnum 0x08 function 0x00: vendor 0x1002 device 0x5961
 ATI Technologies Inc RV280 [Radeon 9200]

You can see that the last two entires do not show up in the latest
version using sysfs.

But my sysfs has all devices listed in /sys/bus/pci/devices, that's
where scanpci searches.

[EMAIL PROTECTED]:0 > ls -l /sys/bus/pci/devices
total 0
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:00.0 -> 
../../../devices/pci0000:00/0000:00:00.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:01.0 -> 
../../../devices/pci0000:00/0000:00:01.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:06.0 -> 
../../../devices/pci0000:00/0000:00:06.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:06.1 -> 
../../../devices/pci0000:00/0000:00:06.1/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.0 -> 
../../../devices/pci0000:00/0000:00:0c.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.1 -> 
../../../devices/pci0000:00/0000:00:0c.1/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.2 -> 
../../../devices/pci0000:00/0000:00:0c.2/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.3 -> 
../../../devices/pci0000:00/0000:00:0c.3/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.4 -> 
../../../devices/pci0000:00/0000:00:0c.4/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.5 -> 
../../../devices/pci0000:00/0000:00:0c.5/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0c.6 -> 
../../../devices/pci0000:00/0000:00:0c.6/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0000:00:0d.0 -> 
../../../devices/pci0000:00/0000:00:0d.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0001:01:00.0 -> 
../../../devices/pci0001:01/0001:01:00.0/
lrwxrwxrwx 1 root root 0 2006-08-11 11:50 0001:01:08.0 -> 
../../../devices/pci0001:01/0001:01:08.0/

The thing is that the last two entries has 0001:XX:XX.X as the adress
rather than 0000:XX:XX.X. I made a strace when running scanpci and it
seems like scanpci only searches for devies that begins with
0000:XX:XX.X.

Going back to version 1.1.1-0ubuntu4 of xserver-xorg-core makes X start
again.

So the pci scan in xserver-xorg-core should search all more than just
0000:XX:XX.X.

This seems to be a duplicate of bug 54880, with the difference that this
bug is about sysfs and the bug 54880 uses /proc.

** Affects: xorg-server (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
scanpci do not find all devices
https://launchpad.net/bugs/56017

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to