~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to debian/patches/002_ubuntu_fix_for_certain_intel_chipsets.patch

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -urNad --exclude=CVS --exclude=.svn ./hw/xfree86/common/xf86pciBus.c /tmp/dpep-work.sYNMum/xorg-server-1.0.2/hw/xfree86/common/xf86pciBus.c
2
 
--- ./hw/xfree86/common/xf86pciBus.c    2005-07-04 20:41:02.000000000 +0200
3
 
+++ /tmp/dpep-work.sYNMum/xorg-server-1.0.2/hw/xfree86/common/xf86pciBus.c      2006-05-04 00:57:05.831956042 +0200
4
 
@@ -1800,7 +1800,16 @@
5
 
                PciBus->brfunc = pcrp->funcnum;
6
 
 
7
 
                PciBus->subclass = sub_class;
8
 
-               PciBus->interface = pcrp->pci_prog_if;
9
 
+
10
 
+               /* The Intel bridges don't report as transparent
11
 
+                  but guess what they are - from Linux kernel - airlied */
12
 
+               if ((pcrp->pci_vendor == PCI_VENDOR_INTEL) && 
13
 
+                  ((pcrp->pci_device & 0xff00) == 0x2400)) {
14
 
+                       xf86MsgVerb(X_INFO, 3, "Intel Bridge workaround enabled\n");
15
 
+                       PciBus->interface = PCI_IF_BRIDGE_PCI_SUBTRACTIVE;
16
 
+               } else {
17
 
+                       PciBus->interface = pcrp->pci_prog_if;
18
 
+               }
19
 
 
20
 
                if (pBusInfo && pBusInfo->funcs->pciControlBridge)
21
 
                    PciBus->brcontrol =
22
 
diff -urNad --exclude=CVS --exclude=.svn ./hw/xfree86/os-support/shared/stdResource.c /tmp/dpep-work.sYNMum/xorg-server-1.0.2/hw/xfree86/os-support/shared/stdResource.c
23
 
--- ./hw/xfree86/os-support/shared/stdResource.c        2005-07-03 09:01:35.000000000 +0200
24
 
+++ /tmp/dpep-work.sYNMum/xorg-server-1.0.2/hw/xfree86/os-support/shared/stdResource.c  2006-05-04 00:57:05.833955345 +0200
25
 
@@ -150,10 +150,11 @@
26
 
     ret = xf86AddResToList(ret, &range, -1);
27
 
     RANGE(range, 0xfee00000, 0xfeefffff, ResExcMemBlock | ResBios);
28
 
     ret = xf86AddResToList(ret, &range, -1);
29
 
-#endif
30
 
+    /* airlied - remove BIOS range it shouldn't be here 
31
 
+       this should use E820 - or THE OS */
32
 
     RANGE(range, 0xffe00000, 0xffffffff, ResExcMemBlock | ResBios);
33
 
     ret = xf86AddResToList(ret, &range, -1);
34
 
-
35
 
+#endif
36
 
     /*
37
 
      * Fallback would be to claim well known ports in the 0x0 - 0x3ff range
38
 
      * along with their sparse I/O aliases, but that's too imprecise.  Instead