Skip to content

Commit e5b4ed2

Browse files
icklegregkh
authored andcommitted
drm/i915: Fix I915_EXEC_RING_MASK
commit d90c06d upstream. This was supposed to be a mask of all known rings, but it is being used by execbuffer to filter out invalid rings, and so is instead mapping high unused values onto valid rings. Instead of a mask of all known rings, we need it to be the mask of all possible rings. Fixes: 549f736 ("drm/i915: Enable SandyBridge blitter ring") Fixes: de1add3 ("drm/i915: Decouple execbuf uAPI from internal implementation") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: <stable@vger.kernel.org> # v4.6+ Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190301140404.26690-21-chris@chris-wilson.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6f9d5b8 commit e5b4ed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/drm/i915_drm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ struct drm_i915_gem_execbuffer2 {
972972
* struct drm_i915_gem_exec_fence *fences.
973973
*/
974974
__u64 cliprects_ptr;
975-
#define I915_EXEC_RING_MASK (7<<0)
975+
#define I915_EXEC_RING_MASK (0x3f)
976976
#define I915_EXEC_DEFAULT (0<<0)
977977
#define I915_EXEC_RENDER (1<<0)
978978
#define I915_EXEC_BSD (2<<0)

0 commit comments

Comments
 (0)