]> git.karo-electronics.de Git - linux-beck.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)
commit9b172345caa4e21423c649c4b98b32f53b6c89cb
tree4ebc72797c1890906a4179c6d6b8dd08ef7b719c
parentd4362225e8cbd4416ab08f3b4b98622b70817d6a
drm/i915/gvt: Fix workload status after wait

From commit e95433c73a11759203af1cae5958f998c9673370, 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: e95433c73a11 ("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