<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 15, 2024 at 7:14 PM Friedrich Vock <<a href="mailto:friedrich.vock@gmx.de">friedrich.vock@gmx.de</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">Re-sending as plaintext, sorry about that<br>
<br>
On 15.01.24 18:54, Michel Dänzer wrote:<br>
> On 2024-01-15 18:26, Friedrich Vock wrote:<br>
>> [snip]<br>
>> The fundamental problem here is that not telling applications that<br>
>> something went wrong when you just canceled their work midway is an<br>
>> out-of-spec hack.<br>
>> When there is a report of real-world apps breaking because of that hack,<br>
>> reports of different apps working (even if it's convenient that they<br>
>> work) doesn't justify keeping the broken code.<br>
> If the breaking apps hit multiple soft resets in a row, I've laid out a pragmatic solution which covers both cases.<br>
Hitting soft reset every time is the lucky path. Once GPU work is<br>
interrupted out of nowhere, all bets are off and it might as well<br>
trigger a full system hang next time. No hang recovery should be able to<br>
cause that under any circumstance.<br></blockquote><div><br></div><div>I think the more insidious situation is no further hangs but wrong results because we skipped some work. That we skipped work may e.g. result in some texture not being uploaded or some GPGPU work not being done and causing further errors downstream (say if a game is doing AI/physics on the GPU not to say anything of actual GPGPU work one might be doing like AI)<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
><br>
><br>
>> If mutter needs to be robust against faults it caused itself, it should be robust<br>
>> against GPU resets.<br>
> It's unlikely that the hangs I've seen were caused by mutter itself, more likely Mesa or amdgpu.<br>
><br>
> Anyway, this will happen at some point, the reality is it hasn't yet though.<br>
><br>
><br>
</blockquote></div></div>