All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] lib: Skip aliased bsd ABI ring if bsd2 is available
@ 2018-02-21 11:21 Chris Wilson
  2018-02-21 12:17 ` [PATCH igt v2] " Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Chris Wilson @ 2018-02-21 11:21 UTC (permalink / raw)
  To: intel-gfx

How much do I want this uABI to rot away? Say "Never again!" to implicit
aliasing.

In the meantime, we do not need to perform duplicate work on bsd2
machines, as especially we do not know which engine bsd relates to.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 lib/ioctl_wrappers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 8748cfcf..868d68f7 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -1460,7 +1460,7 @@ bool gem_has_ring(int fd, unsigned ring)
 
 	/* silly ABI, the kernel thinks everyone who has BSD also has BSD2 */
 	if ((ring & ~(3<<13)) == I915_EXEC_BSD) {
-		if (ring & (3 << 13) && !gem_has_bsd2(fd))
+		if (!(ring & (3 << 13)) ^ gem_has_bsd2(fd))
 			return false;
 	}
 
-- 
2.16.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-21 18:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 11:21 [PATCH igt] lib: Skip aliased bsd ABI ring if bsd2 is available Chris Wilson
2018-02-21 12:17 ` [PATCH igt v2] " Chris Wilson
2018-02-21 12:53   ` Tvrtko Ursulin
2018-02-21 12:55     ` Tvrtko Ursulin
2018-02-21 13:07       ` Chris Wilson
2018-02-21 13:35         ` Tvrtko Ursulin
2018-02-21 13:42           ` Chris Wilson
2018-02-21 13:42           ` Tvrtko Ursulin
2018-02-21 13:45             ` Chris Wilson
2018-02-21 12:25 ` [PATCH igt] " Tvrtko Ursulin
2018-02-21 12:29   ` Chris Wilson
2018-02-21 18:33 ` ✗ Fi.CI.BAT: warning for lib: Skip aliased bsd ABI ring if bsd2 is available (rev2) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.