From: Jerome Glisse Date: Wed, 9 Sep 2009 20:23:45 +0000 (+0200) Subject: drm/radeon/kms: wait for cp idle before stopping it. X-Git-Tag: v2.6.32-rc1~159^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45600232b3dbb97817c9e15de848c742901893e1;p=pandora-kernel.git drm/radeon/kms: wait for cp idle before stopping it. 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 Signed-off-by: Dave Airlie --- Reading git-diff-tree failed