Searched refs:fence_ctx (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/virtio/ |
D | virtgpu_submit.c | 43 u64 fence_ctx; member 51 u64 context = submit->fence_ctx + submit->ring_idx; in virtio_gpu_do_fence_wait() 371 u64 fence_ctx, u32 ring_idx) in virtio_gpu_init_submit() argument 391 out_fence = virtio_gpu_fence_alloc(vgdev, fence_ctx, ring_idx); in virtio_gpu_init_submit() 404 submit->fence_ctx = fence_ctx; in virtio_gpu_init_submit() 478 u64 fence_ctx = vgdev->fence_drv.context; in virtio_gpu_execbuffer_ioctl() local 497 fence_ctx = vfpriv->base_fence_ctx; in virtio_gpu_execbuffer_ioctl() 504 fence_ctx, ring_idx); in virtio_gpu_execbuffer_ioctl()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ib.c | 135 uint64_t fence_ctx; in amdgpu_ib_schedule() local 153 fence_ctx = job->base.s_fence ? in amdgpu_ib_schedule() 161 fence_ctx = 0; in amdgpu_ib_schedule() 193 need_ctx_switch = ring->current_ctx != fence_ctx; in amdgpu_ib_schedule() 301 ring->current_ctx = fence_ctx; in amdgpu_ib_schedule()
|
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_ccb.c | 526 pvr_dev->kccb.fence_ctx.id = dma_fence_context_alloc(1); in pvr_kccb_init() 527 spin_lock_init(&pvr_dev->kccb.fence_ctx.lock); in pvr_kccb_init() 599 &pvr_dev->kccb.fence_ctx.lock, in pvr_kccb_reserve_slot() 600 pvr_dev->kccb.fence_ctx.id, in pvr_kccb_reserve_slot() 601 atomic_inc_return(&pvr_dev->kccb.fence_ctx.seqno)); in pvr_kccb_reserve_slot()
|
D | pvr_queue.c | 265 struct pvr_queue_fence_ctx *fence_ctx) in pvr_queue_fence_init() argument 272 &fence_ctx->lock, fence_ctx->id, in pvr_queue_fence_init() 273 atomic_inc_return(&fence_ctx->seqno)); in pvr_queue_fence_init() 316 pvr_queue_fence_ctx_init(struct pvr_queue_fence_ctx *fence_ctx) in pvr_queue_fence_ctx_init() argument 318 spin_lock_init(&fence_ctx->lock); in pvr_queue_fence_ctx_init() 319 fence_ctx->id = dma_fence_context_alloc(1); in pvr_queue_fence_ctx_init() 320 atomic_set(&fence_ctx->seqno, 0); in pvr_queue_fence_ctx_init()
|
D | pvr_device.h | 274 } fence_ctx; member
|
/linux-6.12.1/drivers/gpu/drm/panthor/ |
D | panthor_sched.c | 478 } fence_ctx; member 844 dma_fence_put(queue->fence_ctx.last_fence); in group_free_queue() 1348 spin_lock(&queue->fence_ctx.lock); in cs_slot_process_fault_event_locked() 1349 list_for_each_entry(job, &queue->fence_ctx.in_flight_jobs, node) { in cs_slot_process_fault_event_locked() 1358 spin_unlock(&queue->fence_ctx.lock); in cs_slot_process_fault_event_locked() 2021 spin_lock(&queue->fence_ctx.lock); in group_term_post_processing() 2022 list_for_each_entry_safe(job, tmp, &queue->fence_ctx.in_flight_jobs, node) { in group_term_post_processing() 2027 spin_unlock(&queue->fence_ctx.lock); in group_term_post_processing() 2032 syncobj->seqno = atomic64_read(&queue->fence_ctx.seqno); in group_term_post_processing() 2812 spin_lock(&queue->fence_ctx.lock); in group_sync_upd_work() [all …]
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_lrc_types.h | 52 struct xe_hw_fence_ctx fence_ctx; member
|
D | xe_lrc.c | 62 return gt_to_xe(lrc->fence_ctx.gt); in lrc_to_xe() 885 xe_hw_fence_ctx_finish(&lrc->fence_ctx); in xe_lrc_finish() 931 xe_hw_fence_ctx_init(&lrc->fence_ctx, hwe->gt, in xe_lrc_init() 1008 xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno - 1); in xe_lrc_init() 1011 xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno - 1); in xe_lrc_init() 1190 xe_hw_fence_init(fence, &lrc->fence_ctx, __xe_lrc_seqno_map(lrc)); in xe_lrc_init_seqno_fence()
|
D | xe_exec_queue.c | 706 return q->lrc[0]->fence_ctx.next_seqno - xe_lrc_seqno(q->lrc[0]) - 1; in xe_exec_queue_num_job_inflight() 744 q->lrc[i]->fence_ctx.next_seqno - 1) in xe_exec_queue_is_idle() 752 q->lrc[0]->fence_ctx.next_seqno - 1; in xe_exec_queue_is_idle()
|