[igt-dev] [PATCH i-g-t 2/2] i915/gem_ctx_exec: Enable resets for basic-nohangcheck

Chris Wilson chris at chris-wilson.co.uk
Sun Oct 27 19:06:04 UTC 2019


Quoting Andi Shyti (2019-10-27 19:01:24)
> Hi Chris,
> 
> > @@ -216,6 +217,8 @@ static void nohangcheck_hostile(int i915)
> >        * we forcibly terminate that context.
> >        */
> >  
> > +     hang = igt_allow_hang(i915, 0, 0);
> > +
> 
> why ctx = 0?

Imagine,

         * we forcibly terminate that context.
         */

-       hang = igt_allow_hang(i915, 0, 0);
-
        dir = igt_sysfs_open_parameters(i915);
        igt_require(dir != -1);

        ctx = gem_context_create(i915);
+       hang = igt_allow_hang(i915, ctx, 0);

        igt_require(__enable_hangcheck(dir, false));


More information about the igt-dev mailing list