]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Fix workload status after wait
authorZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 2 Nov 2016 07:00:15 +0000 (15:00 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 7 Nov 2016 06:17:00 +0000 (14:17 +0800)
commit89739d2c589e66850c2078f2e2818c703d521388
tree4ebc72797c1890906a4179c6d6b8dd08ef7b719c
parent9080bb18ba8e8098a7aa9bfc97272fc58cb36697
drm/i915/gvt: Fix workload status after wait

From commit 9e9d47e265399692427ecf3bb4699f8a71bff0e5, 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: 9e9d47e26539 ("drm/i915: Rearrange i915_wait_request() accounting with callers")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c