fix IS_I9XX macro in i915 DRM driver
PATCH 1/1 fix IS_I9XX macro in i915 DRM driver
Now that we're mapping registers in the DRM driver at load time, the driver actually checks the PCI ID, so we need to make sure the macros have all the right bits (and longer term use the DRM headers as the sole copy of the PCI & register definitions).
This patch adds 945GME support to the DRM headers, fixing a regression reported in http://bugzilla.kernel.org/show_bug.cgi?id=10395.
Dave, please ack asap so this will be fixed in 2.6.25 proper.
Thanks,
Jesse
drivers/char/drm/i915_drv.h +0 -0
@@ -1092,8 +1092,8 @@ extern int i915_wait_ring(struct drm_device * dev, int
n, const char *caller);
#define IS_I915G(dev) ((dev)->pci_device == 0x2582 || (dev)->pci_device ==0x258a)
#define IS_I915GM(dev) ((dev)->pci_device == 0x2592)
#define IS_I945G(dev) ((dev)->pci_device == 0x2772)
-#define IS_I945GM(dev) ((dev)->pci_device == 0x27A2)
-
+#define IS_I945GM(dev) ((dev)->pci_device == 0x27A2 ||\
+ (dev)->pci_device == 0x27AE)
#define IS_I965G(dev) ((dev)->pci_device == 0x2972 || \
(dev)->pci_device == 0x2982 || \ (dev)->pci_device == 0x2992 || \
Quoted 8 lines
Now that we're mapping registers in the DRM driver at load time, the driver actually checks the PCI ID, so we need to make sure the macros have all the right bits (and longer term use the DRM headers as the sole copy of the PCI & register definitions).
This patch adds 945GME support to the DRM headers, fixing a regression reported in http://bugzilla.kernel.org/show_bug.cgi?id=10395.
Quoted 7 lines
Dave, please ack asap so this will be fixed in 2.6.25 proper.
Thanks,
JesseTested-by Alexander Oltu <[email protected]>Signed-off-by Jesse Barnes <[email protected]>
Linus please get into 2.6.25 if possible.
Dave.
Quoted 20 lines
drivers/char/drm/i915_drv.h +2
-2@@ -1092,8 +1092,8 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);#define IS_I915G (dev) ((dev)->pci_device == 0x2582 || (dev)->pci_device == 0x258a)#define IS_I915GM (dev) ((dev)->pci_device == 0x2592)#define IS_I945G (dev) ((dev)->pci_device == 0x2772) -#define IS_I945GM (dev) ((dev)->pci_device == 0x27A2) - +#define IS_I945GM (dev) ((dev)->pci_device == 0x27A2 ||\ + (dev)->pci_device == 0x27AE)#define IS_I965G (dev) ((dev)->pci_device == 0x2972 || \drivers/char/drm/i915_drv.h +0
-0(dev)->pci_device ==0x2982 || \ (dev)->pci_device == 0x2992 || \