drm/i915: Assert we idle in the kernel context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 22:40:57 +0000 (23:40 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 12:38:40 +0000 (13:38 +0100)
commit1934f5deaf8f53e0af0b55f87b7fc519b76515a0
treec7e5611333da0d6ea43e06eb5c6e149fe6cb18f5
parentec92ad00a393d07f7f6c1c9a0ff65141f2173050
drm/i915: Assert we idle in the kernel context

Now that we always switch to the kernel context upon idling, we can
make that assertion.

References: 4dfacb0bcbee ("drm/i915: Switch to kernel context before idling at runtime")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180531224057.6036-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c