diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r-- | drivers/gpu/drm/radeon/ni.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 01464289d32c..8404b2a2386d 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c | |||
@@ -1397,7 +1397,6 @@ bool cayman_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
1397 | u32 srbm_status; | 1397 | u32 srbm_status; |
1398 | u32 grbm_status; | 1398 | u32 grbm_status; |
1399 | u32 grbm_status_se0, grbm_status_se1; | 1399 | u32 grbm_status_se0, grbm_status_se1; |
1400 | struct r100_gpu_lockup *lockup = &rdev->config.cayman.lockup; | ||
1401 | int r; | 1400 | int r; |
1402 | 1401 | ||
1403 | srbm_status = RREG32(SRBM_STATUS); | 1402 | srbm_status = RREG32(SRBM_STATUS); |
@@ -1405,7 +1404,7 @@ bool cayman_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
1405 | grbm_status_se0 = RREG32(GRBM_STATUS_SE0); | 1404 | grbm_status_se0 = RREG32(GRBM_STATUS_SE0); |
1406 | grbm_status_se1 = RREG32(GRBM_STATUS_SE1); | 1405 | grbm_status_se1 = RREG32(GRBM_STATUS_SE1); |
1407 | if (!(grbm_status & GUI_ACTIVE)) { | 1406 | if (!(grbm_status & GUI_ACTIVE)) { |
1408 | r100_gpu_lockup_update(lockup, ring); | 1407 | radeon_ring_lockup_update(ring); |
1409 | return false; | 1408 | return false; |
1410 | } | 1409 | } |
1411 | /* force CP activities */ | 1410 | /* force CP activities */ |
@@ -1418,7 +1417,7 @@ bool cayman_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
1418 | } | 1417 | } |
1419 | /* XXX deal with CP0,1,2 */ | 1418 | /* XXX deal with CP0,1,2 */ |
1420 | ring->rptr = RREG32(ring->rptr_reg); | 1419 | ring->rptr = RREG32(ring->rptr_reg); |
1421 | return r100_gpu_cp_is_lockup(rdev, lockup, ring); | 1420 | return radeon_ring_test_lockup(rdev, ring); |
1422 | } | 1421 | } |
1423 | 1422 | ||
1424 | static int cayman_gpu_soft_reset(struct radeon_device *rdev) | 1423 | static int cayman_gpu_soft_reset(struct radeon_device *rdev) |