Quoting Mika Kuoppala (2019-02-18 12:49:31) > Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> writes: > > > When RECOVERABLE is set, the kernel will attempt to automatically recover > > a context after a hang. But if it is unset, the kernel will ban the > > guilty context on a hang, preventing subsequent execution. > > > > v2: Create a has_recoverable_param() > > > > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > > Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxx> > > Reviewed-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> > > Not a topic for this testcase but just brought up thoughts > that we could reap ppgtt and some selected bits in driver > when we ban. Perhaps a future exercise. Interesting thought. What I would suggest is that you replace the file_priv->context_idr entry with a stub and then the old context and gubbins will die naturally as soon as the requests disappear. As you can't acquire the lock inside reset, you would need to queue a worker to fixup the idr later. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx