Skip to contentSkip to conversation

lib/ioctl_wrappers: handle ENODEV from from GEM_SET_CACHING ioctl

PATCH New Imre Deak 1 participant 1 message Aug 14, 2015 Library code

lore
Share & tools
lore

Imre Deak

author
#0 lore raw

PATCH 1/1 lib/ioctl_wrappers: handle ENODEV from from GEM_SET_CACHING ioctl

The ENODEV return value was introduced to the GEM_SET_CACHING ioctl to mean that the given platform doesn't support the requested caching level (currently only due to a HW issues on BXT A steppings). Handle this as the other cases where we want to skip the related subtests.

---
 lib/ioctl_wrappers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/ioctl_wrappers.c +2 -1
index 53bd635..25f0b2c 100644
@@ -201,7 +201,8 @@ void gem_set_caching(int fd, uint32_t handle, uint32_t caching)
 	arg.caching = caching;
 	ret = ioctl(fd, LOCAL_DRM_IOCTL_I915_GEM_SET_CACHEING, &arg);
 
-	igt_assert(ret == 0 || (errno == ENOTTY || errno == EINVAL));
+	igt_assert(ret == 0 || (errno == ENOTTY || errno == EINVAL ||
+				errno == ENODEV));
 	igt_require(ret == 0);
 	errno = 0;
 }
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx