lib/ioctl_wrappers: handle ENODEV from from GEM_SET_CACHING ioctl
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.
Signed-off-by Imre Deak <[email protected]>
--- lib/ioctl_wrappers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/ioctl_wrappers.c +2 -1
@@ -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