Bug#422095: xserver-xorg-core: fails to start, no devices detected
Zoho Vignochi wrote:
> Ok, I umounted /sys and X started up. Here is the log:
>
>
> (II) PCI: 01:00:0: chip 11ab,6460 card 0000,0000 rev 03 class 06,00,00
> hdr 00
> (II) PCI: 01:08:0: chip 1002,5960 card 148c,2094 rev 01 class 03,00,00
> hdr 80
> (II) PCI: 01:08:1: chip 1002,5940 card 148c,2095 rev 01 class 03,80,00
> hdr 00
>
Great, thanks, the PCI scan is correct now. So this bug is somehow
related to #422077 with different symptoms. The sysfs-based PCI code is
broken. Umounting /sys tells the server to revert to /proc instead of
/sys. I am discussing this problem in other emails and we might apply a
fix very soon. In the meantime, if you want to debug this a little bit
more, you could rebuild xorg-server 1.3 after applying the following
patch. It fixed Jim's problem on Sparc in #422077 and somebody told me
that it helps on powerpc too. Obviously, you should NOT umount /sys
before testing this patch :)
Brice
Index: xorg-server-1.3.0.0.dfsg/hw/xfree86/os-support/bus/linuxPci.c
===================================================================
--- xorg-server-1.3.0.0.dfsg.orig/hw/xfree86/os-support/bus/linuxPci.c 2007-05-10 15:21:30.000000000 +0200
+++ xorg-server-1.3.0.0.dfsg/hw/xfree86/os-support/bus/linuxPci.c 2007-05-10 15:21:37.000000000 +0200
@@ -148,7 +148,7 @@
int domain, bus, dev, func;
char file[64];
struct stat ignored;
- static int is26 = -1;
+ static int is26 = 0;
domain = PCI_DOM_FROM_TAG(tag);
bus = PCI_BUS_NO_DOMAIN(PCI_BUS_FROM_TAG(tag));
Reply to: