<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Well signaling that something happened is not the question. We do
this for both soft as well as hard resets.<br>
<br>
The question is if errors result in blocking further submissions
with the same context or not.<br>
<br>
In case of a hard reset and potential loss of state we have to kill
the context, otherwise a follow up submission would just lockup the
hardware once more.<br>
<br>
In case of a soft reset I think we can keep the context alive, this
way even applications without robustness handling can keep work.<br>
<br>
You potentially still get some corruption, but at least not your
compositor killed.<br>
<br>
Christian.<br>
<br>
<div class="moz-cite-prefix">Am 25.04.23 um 13:07 schrieb Marek
Olšák:<br>
</div>
<blockquote type="cite" cite="mid:CAAxE2A6iuuVA7zjHM8YcTGMpEWuYV=hGRR1YW6W-qXHwAg9w7w@mail.gmail.com">
<div dir="ltr">
<div>That supposedly depends on the compositor. There may be
compositors for very specific cases (e.g. Steam Deck) that
handle resets very well, and those would like to be properly
notified of all resets because that's how they get the best
outcome, e.g. no corruption. A soft reset that is unhandled by
userspace may result in persistent corruption.</div>
<div><br>
</div>
<div>Marek<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Apr 25, 2023 at
6:27 AM Michel Dänzer <<a href="mailto:michel.daenzer@mailbox.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">michel.daenzer@mailbox.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
4/24/23 18:45, Marek Olšák wrote:<br>
> Soft resets are fatal just as hard resets, but no reset
is "always fatal". There are cases when apps keep working
depending on which features are being used. It's still unsafe.<br>
<br>
Agreed, in theory.<br>
<br>
In practice, from a user PoV, right now there's pretty much 0
chance of the user session surviving if the GPU context in
certain critical processes (e.g. the Wayland compositor or
Xwayland) hits a fatal reset. There's a > 0 chance of it
surviving after a soft reset. There's ongoing work towards
making user-space components more robust against fatal resets,
but it's taking time. Meanwhile, I suspect most users would
take the > 0 chance.<br>
<br>
<br>
-- <br>
Earthling Michel Dänzer | <a href="https://redhat.com" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://redhat.com</a><br>
Libre software enthusiast | Mesa and Xwayland
developer<br>
<br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>