public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/gvt: Fix workload status after wait
@ 2016-11-02  5:41 Zhenyu Wang
  2016-11-02  6:24 ` ✗ Fi.CI.BAT: failure for " Patchwork
  2016-11-02  6:47 ` [PATCH] " Joonas Lahtinen
  0 siblings, 2 replies; 5+ messages in thread
From: Zhenyu Wang @ 2016-11-02  5:41 UTC (permalink / raw)
  To: igvt-g-dev; +Cc: intel-gfx

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.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
 drivers/gpu/drm/i915/gvt/scheduler.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c
index 18acb45..bc4c14a 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.c
+++ b/drivers/gpu/drm/i915/gvt/scheduler.c
@@ -455,7 +455,8 @@ static int workload_thread(void *priv)
 		if (lret < 0) {
 			workload->status = lret;
 			gvt_err("fail to wait workload, skip\n");
-		}
+		} else
+			workload->status = 0;
 
 complete:
 		gvt_dbg_sched("will complete workload %p\n, status: %d\n",
-- 
2.10.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-02  7:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02  5:41 [PATCH] drm/i915/gvt: Fix workload status after wait Zhenyu Wang
2016-11-02  6:24 ` ✗ Fi.CI.BAT: failure for " Patchwork
2016-11-02  7:08   ` Saarinen, Jani
2016-11-02  6:47 ` [PATCH] " Joonas Lahtinen
2016-11-02  7:07   ` Zhenyu Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox