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>
This commit is contained in:
parent
6c6f478370
commit
069211e555
9 changed files with 69 additions and 91 deletions
|
@ -2217,7 +2217,6 @@ bool si_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
|
|||
u32 srbm_status;
|
||||
u32 grbm_status, grbm_status2;
|
||||
u32 grbm_status_se0, grbm_status_se1;
|
||||
struct r100_gpu_lockup *lockup = &rdev->config.si.lockup;
|
||||
int r;
|
||||
|
||||
srbm_status = RREG32(SRBM_STATUS);
|
||||
|
@ -2226,7 +2225,7 @@ bool si_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
|
|||
grbm_status_se0 = RREG32(GRBM_STATUS_SE0);
|
||||
grbm_status_se1 = RREG32(GRBM_STATUS_SE1);
|
||||
if (!(grbm_status & GUI_ACTIVE)) {
|
||||
r100_gpu_lockup_update(lockup, ring);
|
||||
radeon_ring_lockup_update(ring);
|
||||
return false;
|
||||
}
|
||||
/* force CP activities */
|
||||
|
@ -2239,7 +2238,7 @@ bool si_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
|
|||
}
|
||||
/* XXX deal with CP0,1,2 */
|
||||
ring->rptr = RREG32(ring->rptr_reg);
|
||||
return r100_gpu_cp_is_lockup(rdev, lockup, ring);
|
||||
return radeon_ring_test_lockup(rdev, ring);
|
||||
}
|
||||
|
||||
static int si_gpu_soft_reset(struct radeon_device *rdev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue