]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Use fence error from GVT request for workload status
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 23 Jun 2017 05:01:11 +0000 (13:01 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 11 Jul 2017 05:47:09 +0000 (13:47 +0800)
commitd83a9c345d5ebbbf13746864240594783f139cc8
tree2ca74ff82683c071d561c54105c55e11e55573da
parente7afe887811bc6b1cd9ac08dd6ded46755f216f7
drm/i915/gvt: Use fence error from GVT request for workload status

The req->fence.error will be set if this request caused GPU hang so
we can use this value to workload->status to indicate whether this
GVT request caused any problem. If it caused GPU hang, we shouldn't
trigger any context switch back to the guest.

v2:
- only take -EIO from fence->error. (Zhenyu)

Fixes: 00eeb016c4ae (drm/i915/gvt: handle workload lifecycle properly)
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c