drm/i915/gt: Assert the kernel context is using the HWSP
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Jul 2020 11:44:19 +0000 (12:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jul 2020 09:18:29 +0000 (10:18 +0100)
commit2a19abb006292d741e670ea6be804c3a575676ce
tree7eb87c05293a6c25a4639e44024f83fc7dd85343
parentd45171ac186d0d264f6f3b5c345d5f855db8c8aa
drm/i915/gt: Assert the kernel context is using the HWSP

We need to ensure that the kernel context is using the permanently pinned
HWSP so that we can always submit a pm request from any context. By
construction, the engine->kernel_context should only be using the
engine->status_page.vma so let's assert that is still true when we have
to submit a request for parking the engine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200714114419.28713-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_pm.c