]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assert that the context-switch completion matches our context
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Jan 2017 11:31:32 +0000 (11:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Jan 2017 12:04:46 +0000 (12:04 +0000)
commit5b6089a779ba9c0e7a8a79ef6008d41e59230e05
tree7cbdf4172d9bbf5d6686f4e0f128f1aa86307099
parente7dcba91776f55617ea666dff436a83af568fbc7
drm/i915: Assert that the context-switch completion matches our context

When execlists signals the context completion, it also provides the
context id for the status event. Assert that id matches the one we expect.

v2: The upper dword of the context status is a duplicate of the upper
dword from elsp submission (i.e. includes the group id as well as the
context id). Include this check as well.
v3: Only check against lrc_desc (as this contains the hw_id check)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170123113132.18665-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c