Linux: Port fixes for gpu hang to 3.17

Those fixed were done by chris wilson here: https://bugs.freedesktop.org/show_bug.cgi?id=83677

This port does not pick the ringbuffer changes as they are not needed according to chris.

This PR needs testing, especially from the chromebox guys. If testing works, it should go into OE5