Contents of /trunk/xorg-old/patches-6.9.0-r1/7100_all_4.3.0-ia64-pci-infinite-loop.patch
Parent Directory | Revision Log
Revision 167 -
(show annotations)
(download)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 886 byte(s)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 886 byte(s)
-import
1 | --- xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c.orig 2003-05-23 13:05:29.000000000 -0400 |
2 | +++ xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c 2003-06-02 12:27:11.000000000 -0400 |
3 | @@ -215,7 +215,17 @@ |
4 | * grok host bridges (and multiple bus trees). |
5 | */ |
6 | j = info->bus; |
7 | +#if defined(__ia64__) |
8 | + /* John Dennis - on Intel Tigers the pci scan leaves multiple |
9 | + * bridges with a parent (primary) equal to -1, or hence the root. |
10 | + * This causes the following loop to be infinite as it never walks past |
11 | + * the initial bridge whose primary is -1. I believe this is equivalent |
12 | + * to being a multiple bus tree topology. This fix should be revisited |
13 | + * as the pci code is being reworked in the upstream code. */ |
14 | + while (j >= 0) { |
15 | +#else |
16 | while (TRUE) { |
17 | +#endif |
18 | PciBusPtr pBus = xf86PciBus; |
19 | while (pBus && j != pBus->secondary) |
20 | pBus = pBus->next; |