drm/radeon/kms: wait for cp idle before stopping it.
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Sep 2009 20:23:45 +0000 (22:23 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Sep 2009 00:12:41 +0000 (10:12 +1000)
If we stop CP and that it's still processing thing GPU hang might
happen, this patch wait for CP idle (the wait can timeout) so we
can avoid shutting down CP at bad time. This is especialy usefull
when reseting the GPU as it seems GPU reset fails to properly reset
CP when the CP wasn't stop after being idle.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found