On Wed, Oct 26, 2016 at 04:54:40PM +0300, Marius Vlad wrote:
> +int main(void)
> +{
> +     struct drm_i915_gem_sw_finish arg = { 0 };
> +     int fd;
> +
> +     signal(SIGALRM, SIG_IGN);
> +
> +     fd = __drm_open_driver(DRIVER_INTEL);
> +     if (fd < 0)
> +             return IGT_EXIT_SKIP;
> +
> +     alarm(1);
> +     if (ioctl(fd, DRM_IOCTL_I915_GEM_SW_FINISH, &arg) == 0)
> +             return IGT_EXIT_SKIP;

Hmm, good point. sw-finish work like this any more. The key was that we
used to wait on the struct_mutex before doing the lookup (and so we
could probe whether the driver was stuck on the reset, or just stuck).

Current candidate for replacement is the SET_CACHEING ioctl
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to