drm/radeon/kms: add some loop timeouts in pageflip code
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Nov 2011 19:49:26 +0000 (14:49 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Dec 2011 09:56:31 +0000 (09:56 +0000)
commitf64964796dedca340608fb1075ab6baad5625851
tree60812ba63cd0ffe4da61d5cbdf5b97c27a3eb474
parent4f3e0b1d33bfeb1e05e53073c6f277176ff9e368
drm/radeon/kms: add some loop timeouts in pageflip code

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>
Cc: stable@kernel.org
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>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rv770.c