diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-10 20:22:43 +0300 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-10 23:49:30 +0300 |
| commit | c0d5f32c5043e8568ffdbcff60dfba26f408fa10 (patch) | |
| tree | eb494061687e9c051de964874dd6039d38d6a4ea /include | |
| parent | 2edc6e0df1c15c0cc665a8aa61dcf2c540e90a70 (diff) | |
| download | linux-c0d5f32c5043e8568ffdbcff60dfba26f408fa10.tar.xz | |
drm/i915: Set guilty-flag on fence after detecting a hang
The struct dma_fence carries a status field exposed to userspace by
sync_file. This is inspected after the fence is signaled and can convey
whether or not the request completed successfully, or in our case if we
detected a hang during the request (signaled via -EIO in
SYNC_IOC_FILE_INFO).
v2: Mark all cancelled requests as failed.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170110172246.27297-2-chris@chris-wilson.co.uk
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
