FreeBSD/sys/dev/drm2/radeon/ni.c
/**
 * cayman_dma_is_lockup - Check if the DMA engine is locked up
 *
 * @rdev: radeon_device pointer
 * @ring: radeon_ring structure holding ring information
 *
 * Check if the async DMA engine is locked up (cayman-SI).
 * Returns true if the engine appears to be locked up, false if not.
 */
Check if the DMA engine is locked up
@rdev: radeon_device pointer
@ring: radeon_ring structure holding ring information

Check if the async DMA engine is locked up (cayman-SI).
Returns true if the engine appears to be locked up, false if not.
Check if the DMA engine is locked up @rdev : radeon_device pointer @ring : radeon_ring structure holding ring information Check if the async DMA engine is locked up ( cayman - SI ) . Returns true if the engine appears to be locked up false if not .
bool cayman_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
{
	u32 dma_status_reg;
	if (ring->idx == R600_RING_TYPE_DMA_INDEX)
		dma_status_reg = RREG32(DMA_STATUS_REG + DMA0_REGISTER_OFFSET);
	else
		dma_status_reg = RREG32(DMA_STATUS_REG + DMA1_REGISTER_OFFSET);
	if (dma_status_reg & DMA_IDLE) {
		radeon_ring_lockup_update(ring);
		return false;
	}
	radeon_ring_force_activity(rdev, ring);
	return radeon_ring_test_lockup(rdev, ring);
}
bool cayman_dma_is_lockup ( struct radeon_device * rdev , struct radeon_ring * ring ) { u32 dma_status_reg ; if ( ring -> idx == R600_RING_TYPE_DMA_INDEX ) dma_status_reg = RREG32 ( DMA_STATUS_REG + DMA0_REGISTER_OFFSET ) ; else dma_status_reg = RREG32 ( DMA_STATUS_REG + DMA1_REGISTER_OFFSET ) ; if ( dma_status_reg & DMA_IDLE ) { radeon_ring_lockup_update ( ring ) ; return false ; } radeon_ring_force_activity ( rdev , ring ) ; return radeon_ring_test_lockup ( rdev , ring ) ; }
cayman_dma_is_lockup - Check if the DMA engine is locked up
 @rdev: radeon_device pointer
 @ring: radeon_ring structure holding ring information
cayman_dma_is_lockup - Check if the DMA engine is locked up @rdev : radeon_device pointer @ring : radeon_ring structure holding ring information
/* force ring activities */