[Intel-gfx] [PATCH 4/5] drm/i915: Suppress a WARN on reading an object back for a GPU hang
Daniel Vetter
daniel at ffwll.ch
Mon Aug 25 23:27:28 CEST 2014
On Fri, Aug 15, 2014 at 09:09:10PM +0300, Mika Kuoppala wrote:
> Chris Wilson <chris at chris-wilson.co.uk> writes:
>
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> Reviewed-by: Mika Kuoppala <mika.kuoppala at intel.com>
Ok, pulled in the error state fixes Mika reviewed, thanks. Now the big
question: Is the s/seqno/request/ patch ready for prime-time?
... I'll probably known the answer once I'm through with my intel-gfx
backlog ...
Cheers, Daniel
>
> > ---
> > drivers/gpu/drm/i915/i915_gpu_error.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
> > index 726e6b1..1e05414 100644
> > --- a/drivers/gpu/drm/i915/i915_gpu_error.c
> > +++ b/drivers/gpu/drm/i915/i915_gpu_error.c
> > @@ -577,7 +577,10 @@ i915_error_object_create(struct drm_i915_private *dev_priv,
> > if (dst == NULL)
> > return NULL;
> >
> > - dst->gtt_offset = i915_gem_obj_offset(src, vm);
> > + if (i915_gem_obj_bound(src, vm))
> > + dst->gtt_offset = i915_gem_obj_offset(src, vm);
> > + else
> > + dst->gtt_offset = -1;
> >
> > reloc_offset = dst->gtt_offset;
> > use_ggtt = (src->cache_level == I915_CACHE_NONE &&
> > --
> > 1.9.1
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the Intel-gfx
mailing list