diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 2a6b5de5ae5d..22d7497e6fa6 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -1672,6 +1672,13 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) | |||
1672 | dev_priv->has_gem = 0; | 1672 | dev_priv->has_gem = 0; |
1673 | } | 1673 | } |
1674 | 1674 | ||
1675 | if (dev_priv->has_gem == 0 && | ||
1676 | drm_core_check_feature(dev, DRIVER_MODESET)) { | ||
1677 | DRM_ERROR("kernel modesetting requires GEM, disabling driver.\n"); | ||
1678 | ret = -ENODEV; | ||
1679 | goto out_iomapfree; | ||
1680 | } | ||
1681 | |||
1675 | dev->driver->get_vblank_counter = i915_get_vblank_counter; | 1682 | dev->driver->get_vblank_counter = i915_get_vblank_counter; |
1676 | dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */ | 1683 | dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */ |
1677 | if (IS_G4X(dev) || IS_IRONLAKE(dev) || IS_GEN6(dev)) { | 1684 | if (IS_G4X(dev) || IS_IRONLAKE(dev) || IS_GEN6(dev)) { |