drm/i915: fix get_core_clock_speed for G33 class desktop chips
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Nov 2009 09:03:34 +0000 (09:03 +0000)
committerEric Anholt <eric@anholt.net>
Thu, 5 Nov 2009 22:57:39 +0000 (14:57 -0800)
Somehow the case for G33 got dropped while porting from ums code.
This made a 400MHz chip into a 133MHz one which resulted in the
unnecessary enabling of double wide pipe mode which in turn
screwed up the overlay code.

Nothing else (than the overlay code) seems to be affected.

This fixes fdo.org bug #24835

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index 43af081328fef478fcc970e49d37f08760cc3689..33113c7d4e4984be2a41be2bf821d83114fef627 100644 (file)
@@ -4427,7 +4427,7 @@ static void intel_init_display(struct drm_device *dev)
        }
 
        /* Returns the core display clock speed */
-       if (IS_I945G(dev))
+       if (IS_I945G(dev) || (IS_G33(dev) && ! IS_IGDGM(dev)))
                dev_priv->display.get_display_clock_speed =
                        i945_get_display_clock_speed;
        else if (IS_I915G(dev))