Created attachment 127949 [details]
When playing Portal2 or L4D2 with DRI3 on, after some quite short time game locks and kernel log has the following messages.
0000:01:00.0: GPU fault detected: 147 0x00060802
0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x00000000
0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x06008002
0000:01:00.0: VM fault (0x02, vmid 3) at page 0, read from '' (0x00000000) (8)
My hardware is HD7750, Linux is 4.9.0-rc4, rc1 was also affected. Mesa version is 13.1-dev, 13.0 and 13.0-rc2 were affected as well.
I have the same issue with radeon kernel driver as well (Linux 4.6-4.9, Mesa 12.0 - 13.1 dev), but in this case kernel log is clear. So, possibly, this issue is in Mesa code, or in code ported from radeon.ko. With DRI2 I don't have this issue in any case.
If it's just the game itself that freezes, you may be running into the known buggy version of libxcb.so.1 in the Steam runtime. See https://bugs.freedesktop.org/show_bug.cgi?id=97174#c7 for how to avoid that via the LD_PRELOAD environment variable.
Thanks Michel, it's indeed steam's bug, so I'll close this bugreport.
*** This bug has been marked as a duplicate of bug 97174 ***