From 46932515ac2c680ea2886457e0c910f25b915d62 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 28 May 2012 13:58:08 +0000 Subject: [PATCH] Disable end of buffer fixup by default. New DDX does not need this, and since batch_len is unused by Linux driver, it seems that it is sometimes gets passed wrong. This causes command buffer corruption and GPU hung. Old GEMified DDX drivers that needs this workaround are not supported. MFC after: 1 month --- sys/dev/drm2/i915/i915_gem_execbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm2/i915/i915_gem_execbuffer.c b/sys/dev/drm2/i915/i915_gem_execbuffer.c index cea69706d52f..dbd5c4e09f65 100644 --- a/sys/dev/drm2/i915/i915_gem_execbuffer.c +++ b/sys/dev/drm2/i915/i915_gem_execbuffer.c @@ -1090,7 +1090,7 @@ DRM_DEBUG("batchbuffer does not end by MI_BATCH_BUFFER_END, overwriting last bo pmap_unmapdev((vm_offset_t)mkva, 2 * PAGE_SIZE); } -int i915_fix_mi_batchbuffer_end = 1; +int i915_fix_mi_batchbuffer_end = 0; static int i915_reset_gen7_sol_offsets(struct drm_device *dev,