drm/i915: Fix gen8 semaphores id for legacy mode
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Apr 2016 12:18:23 +0000 (13:18 +0100)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 May 2016 08:17:39 +0000 (11:17 +0300)
commit83e538020018e3235f5ec40a1f2dfc673bb5ae3c
tree650f1b641c169bf3de4c25709bb682f69e244a23
parent2bae0304684cab917f348ec411cae600130fa6a9
drm/i915: Fix gen8 semaphores id for legacy mode

With the introduction of a distinct engine->id vs the hardware id, we need
to fix up the value we use for selecting the target engine when signaling
a semaphore. Note that these values can be merged with engine->guc_id.

Fixes: de1add360522c876c25ef2bbbbab1c94bdb509ab
Cc: stable@vger.kernel.org # v4.6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461932305-14637-3-git-send-email-chris@chris-wilson.co.uk
(cherry picked from commit 215a7e3210eb208abe634480741e418b5a8bf60c)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h