I've just been looking at a colleague's Dell Latitude C610,
using a Radeon Mobility 6 LY.
With Friday's CVS built X got stuck with a blank screen during startup, 
hogging the CPU.
I tracked the problem down to pciSetBusAccess, where it got stuck in
a loop. This patch allows the server to detect and abort the loop,
allowing the server to start, although switching back to the console
shows corrupt text fonts (I see other reports of console problems with 
this chip, so that may or may not be related).

I've attached the lspci -nv output in case that contributed to the
confusing pci information.

----------------------------------------------------------
Index: xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c
===================================================================
RCS file: 
/home/CVS/XFree86/xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c,v
retrieving revision 3.52
diff -u -r3.52 xf86pciBus.c
--- xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c  2002/05/02 
15:20:19    3.52
+++ xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c  2002/06/25 
11:26:58
@@ -702,6 +702,10 @@
            if (ptr->enable_f) ptr->enable_f(ptr);
            ptr->primary->current = ptr;
        }
+       if (ptr->primary == ptr) {
+         ErrorF("pciSetBusAccess: caught loop, bailing out\n");
+         continue;
+       }
        ptr = ptr->primary;
     }
 }
----------------------------------------------------------


-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]   http://www.dpmms.cam.ac.uk/~werdna


00:00.0 Class 0600: 8086:3575 (rev 04)
        Flags: bus master, fast devsel, latency 0
        Memory at d0000000 (32-bit, prefetchable)
        Capabilities: [40] #09 [1105]
        Capabilities: [a0] AGP version 2.0

00:01.0 Class 0604: 8086:3576 (rev 04)
        Flags: bus master, 66Mhz, fast devsel, latency 32
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000c000-0000cfff
        Memory behind bridge: fc000000-fdffffff
        Prefetchable memory behind bridge: e0000000-e7ffffff

00:1d.0 Class 0c03: 8086:2482 (rev 02)
        Subsystem: 8086:4541
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at bf80

00:1e.0 Class 0604: 8086:2448 (rev 42)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=10, sec-latency=32
        I/O behind bridge: 0000e000-0000ffff
        Memory behind bridge: f4000000-fbffffff

00:1f.0 Class 0601: 8086:248c (rev 02)
        Flags: bus master, medium devsel, latency 0

00:1f.1 Class 0101: 8086:248a (rev 02) (prog-if 8a [Master SecP PriP])
        Subsystem: 8086:4541
        Flags: bus master, medium devsel, latency 0
        I/O ports at 01f0
        I/O ports at 03f4
        I/O ports at 0170
        I/O ports at 0374
        I/O ports at bfa0

00:1f.5 Class 0401: 8086:2485 (rev 02)
        Subsystem: 1013:5959
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at d800
        I/O ports at dc80

00:1f.6 Class 0703: 8086:2486 (rev 02)
        Subsystem: 134d:4c21
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at d400
        I/O ports at dc00

01:00.0 Class 0300: 1002:4c59
        Subsystem: 1028:00e3
        Flags: bus master, VGA palette snoop, stepping, 66Mhz, medium devsel,
latency 32, IRQ 11
        Memory at e0000000 (32-bit, prefetchable)
        I/O ports at c000
        Memory at fcff0000 (32-bit, non-prefetchable)
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2

02:00.0 Class 0200: 10b7:9200 (rev 78)
        Subsystem: 1028:00e3
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at ec80
        Memory at f8fffc00 (32-bit, non-prefetchable)
        Expansion ROM at f9000000 [disabled]
        Capabilities: [dc] Power Management version 2

02:01.0 Class 0607: 104c:ac51
        Subsystem: 104c:ac51
        Flags: bus master, medium devsel, latency 32
        Bus: primary=00, secondary=00, subordinate=00, sec-latency=32
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

02:01.1 Class 0607: 104c:ac51
        Subsystem: 104c:ac51
        Flags: bus master, medium devsel, latency 32
        Bus: primary=00, secondary=00, subordinate=00, sec-latency=32
        I/O window 0: 00000000-00000003
        I/O window 1: 00000000-00000003
        16-bit legacy interface ports at 0007

Reply via email to