]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Cope with request list state change during error state capture
authorTomas Elf <tomas.elf@intel.com>
Mon, 19 Oct 2015 16:51:57 +0000 (17:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Oct 2015 10:01:37 +0000 (12:01 +0200)
commit9c8e1bdb958661c3925225dc19e2c32ea4c62612
tree582a83be3de0f67417f3368e98854f8d8b03dc4c
parentbfd7bbdd03a213ade7d997d91c8df25cfecf0cc5
drm/i915: Cope with request list state change during error state capture

Since we're not synchronizing the ring request list during error state capture
the request list state might change between the time the corresponding error
request list was allocated and dimensioned to the time when the ring request
list is actually captured into the error state. If this happens then do an
early exit and be aware that the captured error state might not be fully
reliable.

* v2:
- Chris Wilson: Removed WARN_ON from size check since having the error state
  request list and the live driver request list diverge like this is a
  legitimate behaviour.

- Tomas Elf: Removed update of num_request field since this made no sense. Just
  exit and move on.

* v3:
- Chris Wilson: Removed error message at the point of early exit. The user is
  not interested in any state changes happening during the error state capture,
  only in the state that we're trying to capture at the point of the error.

Signed-off-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c