summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/r600.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-21 15:38:22 +0000
committerDave Airlie <airlied@gmail.com>2011-01-24 11:05:25 +1000
commit8d96fe9381fa235a81c73c8f940e2fcc84f41caf (patch)
treeeedf45c7dbee1b27694243d4820ff136a7321af6 /drivers/gpu/drm/radeon/r600.c
parentbe23da8ad219650517cbbb7acbeaeb235667113a (diff)
downloadlinux-3.10-8d96fe9381fa235a81c73c8f940e2fcc84f41caf.tar.gz
linux-3.10-8d96fe9381fa235a81c73c8f940e2fcc84f41caf.tar.bz2
linux-3.10-8d96fe9381fa235a81c73c8f940e2fcc84f41caf.zip
drm/radeon/kms: match r6xx/r7xx/evergreen asic_reset with previous asics
Don't reset if the engine isn't busy. This matches the behavior of previous asics. Reseting a non-hung block can lead to a hang. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33272 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r--drivers/gpu/drm/radeon/r600.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index aca2236268f..1e10e3e2ba2 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -1287,6 +1287,9 @@ int r600_gpu_soft_reset(struct radeon_device *rdev)
S_008014_CB2_BUSY(1) | S_008014_CB3_BUSY(1);
u32 tmp;
+ if (!(RREG32(GRBM_STATUS) & GUI_ACTIVE))
+ return 0;
+
dev_info(rdev->dev, "GPU softreset \n");
dev_info(rdev->dev, " R_008010_GRBM_STATUS=0x%08X\n",
RREG32(R_008010_GRBM_STATUS));