]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move the get/put irq locking into the caller
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:27 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 20:04:16 +0000 (21:04 +0100)
commit9f97e8fee3f31a9f5015572a0a8edc8dfa0b188d
treef816368de8d4b969b6efbf1b7f1e454c2e217b18
parent9b99e385b4c85abf3713e5b5a8fe47cd65474c95
drm/i915: Move the get/put irq locking into the caller

With only a single callsite for intel_engine_cs->irq_get and ->irq_put,
we can reduce the code size by moving the common preamble into the
caller, and we can also eliminate the reference counting.

For completeness, as we are no longer doing reference counting on irq,
rename the get/put vfunctions to enable/disable respectively and are
able to review the use of posting reads. We only require the
serialisation with hardware when enabling the interrupt (i.e. so we
cannot miss an interrupt by going to sleep before the hardware truly
enables it).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-18-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h