]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: clean workload queue if error happened
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Tue, 1 Aug 2017 09:47:26 +0000 (17:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 2 Aug 2017 02:07:46 +0000 (10:07 +0800)
commit185b82e28ae059632853e3a5dcbca9a11719d833
tree9b8e4346d8b39f5d512ea40f9f765d27009cbd5d
parent46989091cfb875e918c816f9357fc3ef1b2cf7b2
drm/i915/gvt: clean workload queue if error happened

If a workload caused a HW GPU hang or it is in the middle of
vGPU reset, the workload queue should be cleaned up to emulate
the hang state of the GPU.

v2:
- use ENGINE_MASK(ring_id) instead of (1 << ring_id). (Zhenyu)

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/execlist.c