]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move the hw semaphore initialisation from GEM to the engine
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Apr 2016 06:29:13 +0000 (07:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 10:43:38 +0000 (11:43 +0100)
commit67f81165d8f5ed7b3133b7c1350e22447b47b838
tree62f8572fd5c53fb0737a999a4bf3f3e63fe171e8
parent5a7c2ab0aca2303665c16e8521531fe6aa7ffd46
drm/i915: Move the hw semaphore initialisation from GEM to the engine

Since we are setting engine local values that are tied to the hardware,
move it out of i915_gem_init_seqno() into the intel_ring_init_seqno()
backend, next to where the other hw semaphore registers are written.

v2: Make the explanatory comment about always resetting the semaphores to
0 irrespective of the value of the reset seqno.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-4-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_ringbuffer.c