drm/i915: Fix irq checks in ring->irq_get/put functions
authorDaniel Vetter <[email protected]>
Mon, 15 Sep 2014 09:38:57 +0000 (11:38 +0200)
committerDaniel Vetter <[email protected]>
Fri, 19 Sep 2014 12:43:13 +0000 (14:43 +0200)
commit7cd512f1520f85bf8e45f75b82fece58f0265cec
tree7d07a85afba99cadfcabe4715fe405bc9b9d1eef
parent950eabaf5a87257040e0c207be09487954113f54
drm/i915: Fix irq checks in ring->irq_get/put functions

Yet another place that wasn't properly transformed when implementing
SOix. While at it convert the checks to WARN_ON on gen5+ (since we
don't have UMS potentially doing stupid things on those platforms).
And also add the corresponding checks to the put functions (again with
a WARN_ON) for gen5+.

v2: Drop the WARNINGS in the irq_put functions (including the existing
one for vebox), Chris convinced me that they're not that terribly
useful.

v3: Don't forget about execlist code.

Cc: Imre Deak <[email protected]>
Cc: Jesse Barnes <[email protected]>
Cc: "Volkin, Bradley D" <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c