⬢ DragonFlyBSD Kernel Audit
DF-3770 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/i915/i915_gem_gtt.c b/sys/dev/drm/i915/i915_gem_gtt.c
--- a/sys/dev/drm/i915/i915_gem_gtt.c
+++ b/sys/dev/drm/i915/i915_gem_gtt.c
@@ -169,6 +169,13 @@ int intel_sanitize_enable_ppgtt(struct drm_i915_private *dev_priv,
 		return 3;
 	}
 
+	/* Early VLV doesn't have this */
+	if (IS_VALLEYVIEW(dev_priv) && dev_priv->drm.pdev->revision < 0xb) {
+		DRM_DEBUG_DRIVER("disabling PPGTT on pre-B3 step VLV\n");
+		return 0;
+	}
+
 	if (IS_GEN6(dev_priv) && intel_vtd_active()) {
 		DRM_INFO("Disabling PPGTT because VT-d is on\n");
 		return 0;