drm/i915: fix i9xx irq enable/disable
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 29 Mar 2019 16:50:18 +0000 (09:50 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Mar 2019 17:59:12 +0000 (17:59 +0000)
commite15be4298f3570366d40dbec06e5b0d6e0626eb4
tree53cab03ef5231d100966a66a1f328957dbf2bb95
parentf6ac993fb0ca5d8c0233ac17a71aacb22f84ac54
drm/i915: fix i9xx irq enable/disable

Those functions are used on gen4 as well and gen4 does have a non-RCS
engine, so remove the BUG_ON and flip back the logic to what it was
before the ENGINE_READ/WRITE update

v2: update the posting read as well (Chris, Ville).

Fixes: baba6e572b38 ("drm/i915: take a reference to uncore in the engine and use it")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190329165018.32953-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/intel_ringbuffer.c