Quoting Mika Kuoppala (2019-02-18 12:49:31) > Chris Wilson <[email protected]> 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 <[email protected]> > > Cc: Mika Kuoppala <[email protected]> > > Reviewed-by: Mika Kuoppala <[email protected]> > > 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
