nvidiafb: prevent triggering of softlockup
commite15de77e74d429f14641ebe7a29ccd8aa6656f3c
authorDave Jones <davej@redhat.com>
Tue, 8 May 2007 07:39:35 +0000 (8 00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:32 +0000 (8 11:15 -0700)
tree8cfca1fbea8c7357c1575e34243ac7425bb8d6e4
parentd4a96b53125c3d31266c05f2a8432d956dd26141
nvidiafb: prevent triggering of softlockup

If the chip locks up, we get into a long polling loop,
where the softlockup detector kicks in.
See https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=151878
for an example.

[adaplas]
Chip lockup can occur at 3 points (flush, sync, and wait). Consolidate and
allow the driver to go to safe mode cleanly.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/nvidia/nv_accel.c
drivers/video/nvidia/nv_local.h