]> 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)
commit5382a45648872516e553e13afc30b51841e06e31
tree4ebc72797c1890906a4179c6d6b8dd08ef7b719c
parent6f8b20a8ae07ca172de1d528e9996d989d7f6e9b
drm/i915/gvt: Fix workload status after wait

From commit 6c5bae6713acf691de21ab7e19c40ac801e7639d, 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: 6c5bae6713ac ("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