]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move breadcrumbs irq_posted up a level to engine
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:18:05 +0000 (15:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:55:36 +0000 (15:55 +0000)
commitf150c68a1c571945a18bb7c59c704bfda990f08f
tree7b0e0db60b711a16c65d9b139a2aa3517619cd86
parent1a4e2b82534c7e24821906e05c61caab4edc1175
drm/i915: Move breadcrumbs irq_posted up a level to engine

In the next patch, we will use the irq_posted technique for another
engine interrupt, rather than use two members for the atomic updates, we
can use two bits of one instead. First, we need to update the
breadcrumbs to use the new common engine->irq_posted.

v2: Use set_bit() rather than __set_bit() to ensure atomicity with
respect to other bits in the mask

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170124151805.26146-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_ringbuffer.h