drm/i915/tgl: Extend MI_SEMAPHORE_WAIT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Sep 2019 12:30:55 +0000 (13:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Sep 2019 14:33:21 +0000 (15:33 +0100)
commitc210e85b8f3371168ce78c8da00b913839a84ec7
treea5da8c5f71c4e61585ec02bc7212a64adc439760
parent80fa64d62067ea7390cd27d924dcb7c028e455e9
drm/i915/tgl: Extend MI_SEMAPHORE_WAIT

On Tigerlake, MI_SEMAPHORE_WAIT grew an extra dword, so be sure to
update the length field and emit that extra parameter and any padding
noop as required.

v2: Define the token shift while we are adding the updated MI_SEMAPHORE_WAIT
v3: Use int instead of bool in the addition so that readers are not left
wondering about the intricacies of the C spec. Now they just have to
worry what the integer value of a boolean operation is...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190917123055.28965-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gpu_commands.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/i915_request.c