diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 5d36059d6f4e..68e882cd9651 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -1161,8 +1161,11 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) | |||
1161 | #endif | 1161 | #endif |
1162 | 1162 | ||
1163 | dev->driver->get_vblank_counter = i915_get_vblank_counter; | 1163 | dev->driver->get_vblank_counter = i915_get_vblank_counter; |
1164 | if (IS_GM45(dev)) | 1164 | dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */ |
1165 | if (IS_G4X(dev)) { | ||
1166 | dev->max_vblank_count = 0xffffffff; /* full 32 bit counter */ | ||
1165 | dev->driver->get_vblank_counter = gm45_get_vblank_counter; | 1167 | dev->driver->get_vblank_counter = gm45_get_vblank_counter; |
1168 | } | ||
1166 | 1169 | ||
1167 | i915_gem_load(dev); | 1170 | i915_gem_load(dev); |
1168 | 1171 | ||
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 4b0bcbd58b8f..701d6809deb7 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -574,8 +574,6 @@ int i915_driver_irq_postinstall(struct drm_device *dev) | |||
574 | 574 | ||
575 | dev_priv->vblank_pipe = DRM_I915_VBLANK_PIPE_A | DRM_I915_VBLANK_PIPE_B; | 575 | dev_priv->vblank_pipe = DRM_I915_VBLANK_PIPE_A | DRM_I915_VBLANK_PIPE_B; |
576 | 576 | ||
577 | dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */ | ||
578 | |||
579 | /* Unmask the interrupts that we always want on. */ | 577 | /* Unmask the interrupts that we always want on. */ |
580 | dev_priv->irq_mask_reg = ~I915_INTERRUPT_ENABLE_FIX; | 578 | dev_priv->irq_mask_reg = ~I915_INTERRUPT_ENABLE_FIX; |
581 | 579 | ||