diff options
author | Jerome Glisse <jglisse@redhat.com> | 2013-01-02 15:12:15 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-01-03 13:18:41 -0500 |
commit | eaaa6983ab2ccdf826c90838eb584211e0cadb76 (patch) | |
tree | 7685122542cd9f8d6932aca08cae6471bc9d9805 /drivers/gpu/drm/radeon/evergreen.c | |
parent | 4d0091904cba756274bc4973157f63fb878befc3 (diff) |
drm/radeon: print dma status reg on lockup (v2)
To help debug dma related lockup.
v2: agd5f: update SI as well
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index f95d7fc1f5e0..6dc9ee78f4a8 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -2331,6 +2331,8 @@ static int evergreen_gpu_soft_reset(struct radeon_device *rdev) | |||
2331 | RREG32(CP_BUSY_STAT)); | 2331 | RREG32(CP_BUSY_STAT)); |
2332 | dev_info(rdev->dev, " R_008680_CP_STAT = 0x%08X\n", | 2332 | dev_info(rdev->dev, " R_008680_CP_STAT = 0x%08X\n", |
2333 | RREG32(CP_STAT)); | 2333 | RREG32(CP_STAT)); |
2334 | dev_info(rdev->dev, " R_00D034_DMA_STATUS_REG = 0x%08X\n", | ||
2335 | RREG32(DMA_STATUS_REG)); | ||
2334 | evergreen_mc_stop(rdev, &save); | 2336 | evergreen_mc_stop(rdev, &save); |
2335 | if (evergreen_mc_wait_for_idle(rdev)) { | 2337 | if (evergreen_mc_wait_for_idle(rdev)) { |
2336 | dev_warn(rdev->dev, "Wait for MC idle timedout !\n"); | 2338 | dev_warn(rdev->dev, "Wait for MC idle timedout !\n"); |
@@ -2376,6 +2378,8 @@ static int evergreen_gpu_soft_reset(struct radeon_device *rdev) | |||
2376 | RREG32(CP_BUSY_STAT)); | 2378 | RREG32(CP_BUSY_STAT)); |
2377 | dev_info(rdev->dev, " R_008680_CP_STAT = 0x%08X\n", | 2379 | dev_info(rdev->dev, " R_008680_CP_STAT = 0x%08X\n", |
2378 | RREG32(CP_STAT)); | 2380 | RREG32(CP_STAT)); |
2381 | dev_info(rdev->dev, " R_00D034_DMA_STATUS_REG = 0x%08X\n", | ||
2382 | RREG32(DMA_STATUS_REG)); | ||
2379 | evergreen_mc_resume(rdev, &save); | 2383 | evergreen_mc_resume(rdev, &save); |
2380 | return 0; | 2384 | return 0; |
2381 | } | 2385 | } |