[Intel-gfx] [PATCH igt] lib/ioctl_wrappers: handle ENODEV from from GEM_SET_CACHING ioctl
Imre Deak
imre.deak at intel.com
Fri Aug 14 08:44:38 PDT 2015
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 at intel.com>
---
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
More information about the Intel-gfx
mailing list