diff options
author | Christian König <deathsimple@vodafone.de> | 2012-05-02 09:11:20 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-03 04:16:33 -0400 |
commit | 069211e55561fdaf86d66eedacca57eaad910757 (patch) | |
tree | 07a646396317bef842e32097542c8930a6e2bd85 /drivers/gpu/drm/radeon/r300.c | |
parent | 6c6f478370eccfbfafbdc6fc55c0def03e58f124 (diff) |
drm/radeon: move lockup detection code into radeon_ring.c
It isn't chipset specific, so it makes no sense
to have that inside r100.c.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 26e0db87beb5..e207664bbdc7 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -384,7 +384,7 @@ bool r300_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
384 | 384 | ||
385 | rbbm_status = RREG32(R_000E40_RBBM_STATUS); | 385 | rbbm_status = RREG32(R_000E40_RBBM_STATUS); |
386 | if (!G_000E40_GUI_ACTIVE(rbbm_status)) { | 386 | if (!G_000E40_GUI_ACTIVE(rbbm_status)) { |
387 | r100_gpu_lockup_update(&rdev->config.r300.lockup, ring); | 387 | radeon_ring_lockup_update(ring); |
388 | return false; | 388 | return false; |
389 | } | 389 | } |
390 | /* force CP activities */ | 390 | /* force CP activities */ |
@@ -396,7 +396,7 @@ bool r300_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
396 | radeon_ring_unlock_commit(rdev, ring); | 396 | radeon_ring_unlock_commit(rdev, ring); |
397 | } | 397 | } |
398 | ring->rptr = RREG32(RADEON_CP_RB_RPTR); | 398 | ring->rptr = RREG32(RADEON_CP_RB_RPTR); |
399 | return r100_gpu_cp_is_lockup(rdev, &rdev->config.r300.lockup, ring); | 399 | return radeon_ring_test_lockup(rdev, ring); |
400 | } | 400 | } |
401 | 401 | ||
402 | int r300_asic_reset(struct radeon_device *rdev) | 402 | int r300_asic_reset(struct radeon_device *rdev) |