drm/i915: Do not access stolen memory directly by the CPU, even for error capture
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Aug 2014 19:05:48 +0000 (20:05 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 08:54:23 +0000 (10:54 +0200)
commitb3c3f5e69e25583703383d674e73d0ce26e731c3
tree74c34edd1dc38027fb2d8b35f64bd0d90c7c62b7
parente6755fb78e8f20ecadf2a4080084121336624ad9
drm/i915: Do not access stolen memory directly by the CPU, even for error capture

For stolen pages, since it is verboten to access them directly on many
architectures, we have to read them through the GTT aperture. If they
are not accessible through the aperture, then we have to abort.

This was complicated by

commit 8b6124a633d8095b0c8364f585edff9c59568a96
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Jan 30 14:38:16 2014 +0000

    drm/i915: Don't access snooped pages through the GTT (even for error capture)

and the desire to use stolen memory for ringbuffers, contexts and
batches in the future.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c