<p dir="ltr">I've not read the series yet, but I think we should also "lose" the context on a command submission failure and drop all future CS requests for that context. You don't need a working GPU reset for that and it's a very sensible thing to do.</p>
<p dir="ltr">It would also be a good test for all the interfaces.</p>
<p dir="ltr">Marek</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 4, 2016 10:11 AM, "Nicolai Hähnle" <<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
so after the discussion on the KHR_robustness patch, it seemed like a good<br>
idea to set up a path by which the driver can notify the state tracker of<br>
a device reset even when it isn't explicitly queried for. This series does<br>
that, with an initial implementation for radeon.<br>
<br>
The current radeon implementation is still a bit sketchy. Really, I think that<br>
it should be the kernel's job to notify us of resets via appropriate error<br>
codes on relevant ioctls. In particular, we have no choice but to rely on the<br>
kernel for implementing the right semantics for fences during/after a reset.<br>
Then again, it's all a bit academic anyway unless the kernel's reset<br>
mechanism is bullet-proof.<br>
<br>
In any case, I think the interface and state tracker bits are sound, and the<br>
radeon parts can be improved once the kernel driver gets better. Please<br>
review!<br>
<br>
Thanks,<br>
Nicolai<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>