[PATCH igt] lib/ioctl_wrappers: handle ENODEV from from GEM_SET_CACHING ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Imre Deak <imre.deak@xxxxxxxxx>
---
 lib/ioctl_wrappers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 53bd635..25f0b2c 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -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;
 }
-- 
2.1.4

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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux