diff options
| author | Daniel Vetter <[email protected]> | 2012-07-04 22:18:41 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2012-07-05 10:02:24 +0200 |
| commit | 0a6759c6bacb3998e3d9a7cf690177051238ad87 (patch) | |
| tree | 0d95f079646600480196cf5ac98ce3034a5e5d1a /net/unix/af_unix.c | |
| parent | d6b2c790a4742a69624e6884b48e5d72f275abd0 (diff) | |
drm/i915: don't hang userspace when the gpu reset is stuck
With the gpu reset no longer using a trylock we've increased the
chances of userspace getting stuck quite a bit. To make that
(hopefully) rare case more paletable time out when waiting for the gpu
reset code to complete and signal this little issue to the caller by
returning -EIO.
This should help userspace to somewhat gracefully fall back and
hopefully allow the user to grab some logs and reboot the machine
(instead of staring at a frozen X screen in agony).
Suggested by Chris Wilson because I've been stubborn about allowing
the gpu reset code no to fail, ever (by removing the trylock).
Reviewed-by: Chris Wilson <[email protected]>
Tested-by: Chris Wilson <[email protected]>
Signed-Off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions