drm/radeon/kms: add some loop timeouts in pageflip code
commit6a82412403cee54e4ce87b9dea9c275a46d4e682
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Nov 2011 19:49:26 +0000 (28 14:49 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:38 +0000 (9 08:52 -0800)
treef42d46311970aa411832e2b8ab3b14e674167b67
parent08d618b2080d8b3afac6db1a361c54d827b8d044
drm/radeon/kms: add some loop timeouts in pageflip code

commit f64964796dedca340608fb1075ab6baad5625851 upstream.

Avoid infinite loops waiting for surface updates if a GPU
reset happens while waiting for a page flip.

See:
https://bugs.freedesktop.org/show_bug.cgi?id=43191

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Tested-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rv770.c