From a21a4f47f5e9cf4d5ca5be4784cf4571157c01bd Mon Sep 17 00:00:00 2001 From: John Harrison Date: Fri, 6 May 2016 10:59:02 +0100 Subject: Mush: fix broken count --- drivers/gpu/drm/i915/i915_scheduler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c index 4fde0829e260..ba9d9a13a0d5 100644 --- a/drivers/gpu/drm/i915/i915_scheduler.c +++ b/drivers/gpu/drm/i915/i915_scheduler.c @@ -1400,6 +1400,8 @@ i915_scheduler_preemption_postprocess(struct intel_engine_cs *engine) } else if (!WARN_ON(!I915_SQS_IS_FLYING(node))) { preempted += 1; node->status = I915_SQS_PREEMPTED; + scheduler->counts[req->engine->id].flying--; + scheduler->counts[req->engine->id].queued++; trace_i915_scheduler_unfly(engine, node); trace_i915_scheduler_node_state_change(engine, node); -- cgit v1.2.3