drm/i915: Fix rsvd2 mask when out-fence is returned
authorDaniele Ceraolo Spurio <[email protected]>
Wed, 14 Feb 2018 19:18:25 +0000 (11:18 -0800)
committerRodrigo Vivi <[email protected]>
Wed, 28 Feb 2018 19:10:28 +0000 (11:10 -0800)
commitb1b13780ab06ef8c770dd9cbe31dac549a11630e
tree1bd39726db265f8896f11ca60992c1ec2767dda0
parent4a3928c6f8a53fa1aed28ccba227742486e8ddcb
drm/i915: Fix rsvd2 mask when out-fence is returned

GENMASK_ULL wants the high bit of the mask first. The current value
cancels the in-fence when an out-fence is returned.

Fixes: fec0445caa273 ("drm/i915: Support explicit fencing for execbuf")
Testcase: igt/gem_exec_fence/keep-in-fence*
Cc: Chris Wilson <[email protected]>
Signed-off-by: Daniele Ceraolo Spurio <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Cc: <[email protected]> # v4.12+
(cherry picked from commit b6a88e4a804cf5a71159906e16df2c1fc7196f92)
Signed-off-by: Rodrigo Vivi <[email protected]>
drivers/gpu/drm/i915/i915_gem_execbuffer.c