]> 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)
commit0cf5ec41839d82ee7f8fbb47f137b7afc562b9f1
tree2ca74ff82683c071d561c54105c55e11e55573da
parent4cc74389a551dc95fce72d58c11e55a93b6ecd19
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: 8f1117abb408 (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