Commit 9b172345 authored by Zhenyu Wang's avatar Zhenyu Wang

drm/i915/gvt: Fix workload status after wait

From commit e95433c7, workload status setting
was changed to only capture on error path, but we need to set it properly in
normal path too, otherwise we'll fail to complete workload which could lead
guest VM vGPU reset.

v2: uses braces and add Fixes tag.

Fixes: e95433c7 ("drm/i915: Rearrange i915_wait_request() accounting with callers")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent d4362225
...@@ -455,6 +455,8 @@ static int workload_thread(void *priv) ...@@ -455,6 +455,8 @@ static int workload_thread(void *priv)
if (lret < 0) { if (lret < 0) {
workload->status = lret; workload->status = lret;
gvt_err("fail to wait workload, skip\n"); gvt_err("fail to wait workload, skip\n");
} else {
workload->status = 0;
} }
complete: complete:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment