[Intel-gfx] [PATCH] drm/i915/vlv: disable PPGTT on early revs v2
Jesse Barnes
jbarnes at virtuousgeek.org
Fri Jun 13 18:16:44 CEST 2014
Early revs didn't have PPGTT support, so disable there.
v2: add debug msg when disabling on early stepping
References: https://bugs.freedesktop.org/show_bug.cgi?id=79669
References: https://bugs.freedesktop.org/show_bug.cgi?id=79670
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
drivers/gpu/drm/i915/i915_gem_gtt.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 8b3cde7..0f51f83 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -63,6 +63,12 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
}
#endif
+ /* Early VLV doesn't have this */
+ if (IS_VALLEYVIEW(dev) && dev->pdev->revision < 0xc) {
+ DRM_DEBUG_DRIVER("disabling PPGTT on pre-rev c VLV\n");
+ return 0;
+ }
+
return HAS_ALIASING_PPGTT(dev) ? 1 : 0;
}
--
1.7.9.5
More information about the Intel-gfx
mailing list