History

drm/i915: Allow userspace to request no-error-capture upon GPU hangs

igt likes to inject GPU hangs into its command streams. However, as we expect these hangs, we don't actually want them recorded in the dmesg output or stored in the i915_error_state (usually). To accommodate this allow userspace to set a flag on the context that any hang emanating from that context will not be recorded. We still do the error capture (otherwise how do we find the guilty context and know its intent?) as part of the reason for random GPU hang injection is to exercise the race conditions between the error capture and normal execution. v2: Split out the request->ringbuf error capture changes. v3: Move the flag defines next to the intel_context->flags definition

Chris Wilson committed 10 years ago

Commit bc3d6741 parent ba6e0414 files · +29 −9Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/drm/i915_drm.h+1−0
@@ -1173,6 +1173,7 @@ struct drm_i915_gem_context_param { · 1172 unmodified lines
11731173 #define I915_CONTEXT_PARAM_BAN_PERIOD 0x1
11741174 #define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2
11751175 #define I915_CONTEXT_PARAM_GTT_SIZE 0x3
1176+#define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4
11761177 __u64 value;
11771178 };
11781179

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t