Skip to contentSkip to conversation

drm/i915: Fix I915_EXEC_RING_MASK

RFC Superseded Tvrtko Ursulin 1 participant 1 message Jul 17, 2018 1 message not in the archive

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

RFC 12/23 drm/i915: Fix I915_EXEC_RING_MASK

From: Chris Wilson <[email protected]>

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 549f7365820a ("drm/i915: Enable SandyBridge blitter ring")
Fixes de1add360522 ("drm/i915: Decouple execbuf uAPI from internal implementation")
Cc Tvrtko Ursulin <[email protected]>
Cc <[email protected]> # v4.6+
---
 include/uapi/drm/i915_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/i915_drm.h +1 -1
index eadefaa..51a754e 100644
@@ -966,7 +966,7 @@ struct drm_i915_gem_execbuffer2 {
 	 * struct drm_i915_gem_exec_fence *fences.
 	 */
 	__u64 cliprects_ptr;
-#define I915_EXEC_RING_MASK              (7<<0)
+#define I915_EXEC_RING_MASK              (0x3f)
 #define I915_EXEC_DEFAULT                (0<<0)
 #define I915_EXEC_RENDER                 (1<<0)
 #define I915_EXEC_BSD                    (2<<0)
Signature · 1 line
2.7.4