]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.9/drm-i915-fix-i915_exec_ring_mask.patch
4.4-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.9 / drm-i915-fix-i915_exec_ring_mask.patch
CommitLineData
6dceed85
GKH
1From d90c06d57027203f73021bb7ddb30b800d65c636 Mon Sep 17 00:00:00 2001
2From: Chris Wilson <chris@chris-wilson.co.uk>
3Date: Fri, 1 Mar 2019 14:03:47 +0000
4Subject: drm/i915: Fix I915_EXEC_RING_MASK
5
6From: Chris Wilson <chris@chris-wilson.co.uk>
7
8commit d90c06d57027203f73021bb7ddb30b800d65c636 upstream.
9
10This was supposed to be a mask of all known rings, but it is being used
11by execbuffer to filter out invalid rings, and so is instead mapping high
12unused values onto valid rings. Instead of a mask of all known rings,
13we need it to be the mask of all possible rings.
14
15Fixes: 549f7365820a ("drm/i915: Enable SandyBridge blitter ring")
16Fixes: de1add360522 ("drm/i915: Decouple execbuf uAPI from internal implementation")
17Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
18Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
19Cc: <stable@vger.kernel.org> # v4.6+
20Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
21Link: https://patchwork.freedesktop.org/patch/msgid/20190301140404.26690-21-chris@chris-wilson.co.uk
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24---
25 include/uapi/drm/i915_drm.h | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28--- a/include/uapi/drm/i915_drm.h
29+++ b/include/uapi/drm/i915_drm.h
30@@ -756,7 +756,7 @@ struct drm_i915_gem_execbuffer2 {
31 __u32 num_cliprects;
32 /** This is a struct drm_clip_rect *cliprects */
33 __u64 cliprects_ptr;
34-#define I915_EXEC_RING_MASK (7<<0)
35+#define I915_EXEC_RING_MASK (0x3f)
36 #define I915_EXEC_DEFAULT (0<<0)
37 #define I915_EXEC_RENDER (1<<0)
38 #define I915_EXEC_BSD (2<<0)