projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f6e53
)
drm/i915/selftests: Skip making an object busy if the GPU is wedged
author
Chris Wilson
<
[email protected]
>
Fri, 6 Jul 2018 06:53:09 +0000
(07:53 +0100)
committer
Chris Wilson
<
[email protected]
>
Fri, 6 Jul 2018 10:24:31 +0000
(11:24 +0100)
If the GPU is wedged, we cannot make the object busy as trying to
submit a request will generate -EIO. Skip to the end of the test.
Signed-off-by: Chris Wilson <
[email protected]
>
Reviewed-by: Matthew Auld <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/selftests/i915_gem_object.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_gem_object.c
b/drivers/gpu/drm/i915/selftests/i915_gem_object.c
index 232e5ccf1852f23525378a795093e1d6f339e596..6fe71865b7109c59f5d87b638abde9d92ab91021 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_gem_object.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_gem_object.c
@@
-553,6
+553,9
@@
static int igt_mmap_offset_exhaustion(void *arg)
/* Now fill with busy dead objects that we expect to reap */
for (loop = 0; loop < 3; loop++) {
+ if (i915_terminally_wedged(&i915->gpu_error))
+ break;
+
obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
if (IS_ERR(obj)) {
err = PTR_ERR(obj);