drm/i915: Move irqs enabled assertion deeper for mock breadcrumbs
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Nov 2017 10:20:03 +0000 (10:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Nov 2017 11:52:57 +0000 (11:52 +0000)
commitc16c4ba7250b681e103126c54481a8b17c073758
treed05402fcf704fd50b29024f56eeff491ab81e367
parentb1a1e5d2cebf4630d971628d20b3034dfe9c2c40
drm/i915: Move irqs enabled assertion deeper for mock breadcrumbs

In order to allow the mock breadcrumbs tests to run without device irqs
being enabled, move the intel_irqs_enabled() assert deeper to just
before we commit to enabling the HW irq.

v2: Add a FIXME explaining that placing the assertion so deep is not
ideal, but a compromise for mock breadcrumbs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107102003.1802-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_breadcrumbs.c