diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 0c9c0811f42d..bdd87dc9e7b1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
@@ -318,6 +318,15 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) | |||
318 | goto out_err3; | 318 | goto out_err3; |
319 | } | 319 | } |
320 | 320 | ||
321 | /* Need mmio memory to check for fifo pitchlock cap. */ | ||
322 | if (!(dev_priv->capabilities & SVGA_CAP_DISPLAY_TOPOLOGY) && | ||
323 | !(dev_priv->capabilities & SVGA_CAP_PITCHLOCK) && | ||
324 | !vmw_fifo_have_pitchlock(dev_priv)) { | ||
325 | ret = -ENOSYS; | ||
326 | DRM_ERROR("Hardware has no pitchlock\n"); | ||
327 | goto out_err4; | ||
328 | } | ||
329 | |||
321 | dev_priv->tdev = ttm_object_device_init | 330 | dev_priv->tdev = ttm_object_device_init |
322 | (dev_priv->mem_global_ref.object, 12); | 331 | (dev_priv->mem_global_ref.object, 12); |
323 | 332 | ||