diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index e207664bbdc..04ec26916db 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -380,7 +380,6 @@ void r300_gpu_init(struct radeon_device *rdev) | |||
380 | bool r300_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | 380 | bool r300_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) |
381 | { | 381 | { |
382 | u32 rbbm_status; | 382 | u32 rbbm_status; |
383 | int r; | ||
384 | 383 | ||
385 | rbbm_status = RREG32(R_000E40_RBBM_STATUS); | 384 | rbbm_status = RREG32(R_000E40_RBBM_STATUS); |
386 | if (!G_000E40_GUI_ACTIVE(rbbm_status)) { | 385 | if (!G_000E40_GUI_ACTIVE(rbbm_status)) { |
@@ -388,14 +387,7 @@ bool r300_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
388 | return false; | 387 | return false; |
389 | } | 388 | } |
390 | /* force CP activities */ | 389 | /* force CP activities */ |
391 | r = radeon_ring_lock(rdev, ring, 2); | 390 | radeon_ring_force_activity(rdev, ring); |
392 | if (!r) { | ||
393 | /* PACKET2 NOP */ | ||
394 | radeon_ring_write(ring, 0x80000000); | ||
395 | radeon_ring_write(ring, 0x80000000); | ||
396 | radeon_ring_unlock_commit(rdev, ring); | ||
397 | } | ||
398 | ring->rptr = RREG32(RADEON_CP_RB_RPTR); | ||
399 | return radeon_ring_test_lockup(rdev, ring); | 391 | return radeon_ring_test_lockup(rdev, ring); |
400 | } | 392 | } |
401 | 393 | ||