Bug 83195 - destroy GL context on stall recovery
Summary: destroy GL context on stall recovery
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All Linux (All)
: medium minor
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-28 14:08 UTC by Stanisław Halik
Modified: 2014-09-11 05:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stanisław Halik 2014-08-28 14:08:42 UTC
If stall recovery occurs, don't allow further GL calls as if nothing happened from the process.

Rather X crash, than have process resend stall-incuding stream, the second stall recovery isn't successful usually.
Comment 1 Kenneth Graunke 2014-08-30 06:05:41 UTC
Sorry, but I don't understand this bug report.  What stalls are you talking about?  What recovery process?
Comment 2 Stanisław Halik 2014-08-30 06:10:47 UTC
CP/CS stall, recovery after several seconds, in dmesg.

If GPU hangs, recovery, GLX process causing it runs as previous, it'll repeat the stall.
Comment 3 Stanisław Halik 2014-09-09 06:15:52 UTC
Just to be extra-clear:

Talking about GPU reset procedure.

The one where dmesg prints register state.

Is that enough context or is further info needed?

-sh
Comment 4 Kenneth Graunke 2014-09-11 05:42:55 UTC
I don't think there is a Mesa core bug here.

We support the GL_ARB_robustness extension, which allows applications to detect GPU hangs, and possibly tell whether or not it was their fault.  (This requires kernel driver support for your particular hardware.)  Such applications can decide to gracefully stop what they're doing to avoid continuing to hang the GPU.  For example, Chrome will disable WebGL on pages if it detects GPU hangs, but otherwise keeps working.

The kernel driver for your hardware may also ban processes from accessing the GPU if they hang it too many times.  This guards against applications that crash a lot but don't use ARB_robustness.  For example, the Intel driver does this.  If your hardware driver does not, feel free to open a bug against your kernel driver.

We can't solve a problem like this for Mesa as a whole.  It's very driver specific.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.