]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/gvt: Add VM healthy check for submit_context
authorfred gao <fred.gao@intel.com>
Tue, 19 Sep 2017 07:11:29 +0000 (15:11 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:46:52 +0000 (11:46 +0800)
commitc9214008b52b20ba2a88dad6ba92f1a19c533db6
tree9be2a4909f0eef548ed19dcd282be623de2293d1
parente011c6ce2b4fc7c577ade41485d74431a4e6ea1a
drm/i915/gvt: Add VM healthy check for submit_context

When a scan error occurs in submit_context, this patch is to
decrease the mm ref count and free the workload struct before
the workload is abandoned.

v2:
- submit_context related code should be combined together. (Zhenyu)

v3:
- free all the unsubmitted workloads. (Zhenyu)

v4:
- refine the clean path. (Zhenyu)

v5:
- polish the title. (Zhenyu)

Signed-off-by: fred gao <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/execlist.c