Commit 67b1b571 authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter

drm/i915: Disable the BLT on pre-production SNB hardware

It never quite worked despite the numerous workarounds, yet I still see
people trying to use this hardware and filing bug reports. As we no
longer even try to implement the workarounds, since 6a233c78
(drm/i915/ringbuffer: kill snb blt workaround), simply disable the ring.

v2: Add a message to inform the user about the limited capabilities of
their pre-production hardware.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 0232e927
...@@ -3726,6 +3726,22 @@ void i915_gem_init_ppgtt(struct drm_device *dev) ...@@ -3726,6 +3726,22 @@ void i915_gem_init_ppgtt(struct drm_device *dev)
} }
} }
static bool
intel_enable_blt(struct drm_device *dev)
{
if (!HAS_BLT(dev))
return false;
/* The blitter was dysfunctional on early prototypes */
if (IS_GEN6(dev) && dev->pdev->revision < 8) {
DRM_INFO("BLT not supported on this pre-production hardware;"
" graphics performance will be degraded.\n");
return false;
}
return true;
}
int int
i915_gem_init_hw(struct drm_device *dev) i915_gem_init_hw(struct drm_device *dev)
{ {
...@@ -3749,7 +3765,7 @@ i915_gem_init_hw(struct drm_device *dev) ...@@ -3749,7 +3765,7 @@ i915_gem_init_hw(struct drm_device *dev)
goto cleanup_render_ring; goto cleanup_render_ring;
} }
if (HAS_BLT(dev)) { if (intel_enable_blt(dev)) {
ret = intel_init_blt_ring_buffer(dev); ret = intel_init_blt_ring_buffer(dev);
if (ret) if (ret)
goto cleanup_bsd_ring; goto cleanup_bsd_ring;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment