Lines Matching defs:ring
44 * command ring and the hw will fetch the commands from the IB
47 * put in IBs for execution by the requested ring.
55 * @ring: ring index the IB is associated with
63 int radeon_ib_get(struct radeon_device *rdev, int ring,
77 ib->ring = ring;
110 * radeon_ib_schedule - schedule an IB (Indirect Buffer) on the ring
117 * Schedule an IB on the associated ring (all asics).
120 * On SI, there are two parallel engines fed from the primary ring,
127 * a CONST_IB), it will be put on the ring prior to the DE IB. Prior
133 struct radeon_ring *ring = &rdev->ring[ib->ring];
136 if (!ib->length_dw || !ring->ready) {
143 r = radeon_ring_lock(rdev, ring, 64 + RADEON_NUM_SYNCS * 8);
152 vm_id_fence = radeon_vm_grab_id(rdev, ib->vm, ib->ring);
157 r = radeon_sync_rings(rdev, &ib->sync, ib->ring);
160 radeon_ring_unlock_undo(rdev, ring);
165 radeon_vm_flush(rdev, ib->vm, ib->ring,
169 radeon_ring_ib_execute(rdev, const_ib->ring, const_ib);
172 radeon_ring_ib_execute(rdev, ib->ring, ib);
173 r = radeon_fence_emit(rdev, &ib->fence, ib->ring);
176 radeon_ring_unlock_undo(rdev, ring);
186 radeon_ring_unlock_commit(rdev, ring, hdp_flush);
260 * Test an IB (Indirect Buffer) on each ring.
261 * If the test fails, disable the ring.
262 * Returns 0 on success, error if the primary GFX ring
271 struct radeon_ring *ring = &rdev->ring[i];
273 if (!ring->ready)
276 r = radeon_ib_test(rdev, i, ring);
279 ring->ready = false;
284 DRM_ERROR("radeon: failed testing IB on GFX ring (%d).\n", r);
290 DRM_ERROR("radeon: failed testing IB on ring %d (%d).\n", i, r);