From: Daniel Vetter Date: Thu, 30 Jan 2014 11:56:51 +0000 (+0100) Subject: Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next-queued X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e515b47e5646154448e46231d811919d93923da5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next-queued Backmerge drm-next - I need to backmerge drm-intel-fixes patches touching the error capture code to be able to merge Ben's cleanup patches. Conflicts: drivers/gpu/drm/i915/i915_gpu_error.c Signed-off-by: Daniel Vetter --- e515b47e5646154448e46231d811919d93923da5 diff --cc drivers/gpu/drm/i915/i915_gpu_error.c index 685f6ccbcc07,d7fd2fd2f0a5..4cc916213362 --- a/drivers/gpu/drm/i915/i915_gpu_error.c +++ b/drivers/gpu/drm/i915/i915_gpu_error.c @@@ -386,24 -387,7 +388,23 @@@ int i915_error_state_to_str(struct drm_ } } + if ((obj = error->ring[i].hws)) { + err_printf(m, "%s --- HW Status = 0x%08x\n", + dev_priv->ring[i].name, + obj->gtt_offset); + offset = 0; + for (elt = 0; elt < PAGE_SIZE/16; elt += 4) { + err_printf(m, "[%04x] %08x %08x %08x %08x\n", + offset, + obj->pages[0][elt], + obj->pages[0][elt+1], + obj->pages[0][elt+2], + obj->pages[0][elt+3]); + offset += 16; + } + } + - obj = error->ring[i].ctx; - if (obj) { + if ((obj = error->ring[i].ctx)) { err_printf(m, "%s --- HW Context = 0x%08x\n", dev_priv->ring[i].name, obj->gtt_offset); @@@ -718,9 -668,10 +719,10 @@@ i915_error_first_batchbuffer(struct drm return NULL; obj = ring->scratch.obj; - if (acthd >= i915_gem_obj_ggtt_offset(obj) && + if (obj != NULL && + acthd >= i915_gem_obj_ggtt_offset(obj) && acthd < i915_gem_obj_ggtt_offset(obj) + obj->base.size) - return i915_error_object_create(dev_priv, obj); + return i915_error_ggtt_object_create(dev_priv, obj); } seqno = ring->get_seqno(ring, false);