/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_fence.c | 101 struct amdgpu_fence_driver *drv = &ring->fence_drv; in amdgpu_fence_write() 117 struct amdgpu_fence_driver *drv = &ring->fence_drv; in amdgpu_fence_read() 161 seq = ++ring->fence_drv.sync_seq; in amdgpu_fence_emit() 170 &ring->fence_drv.lock, in amdgpu_fence_emit() 176 &ring->fence_drv.lock, in amdgpu_fence_emit() 181 amdgpu_ring_emit_fence(ring, ring->fence_drv.gpu_addr, in amdgpu_fence_emit() 184 ptr = &ring->fence_drv.fences[seq & ring->fence_drv.num_fences_mask]; in amdgpu_fence_emit() 232 seq = ++ring->fence_drv.sync_seq; in amdgpu_fence_emit_polling() 234 seq - ring->fence_drv.num_fences_mask, in amdgpu_fence_emit_polling() 239 amdgpu_ring_emit_fence(ring, ring->fence_drv.gpu_addr, in amdgpu_fence_emit_polling() [all …]
|
H A D | umsch_mm_v4_0.c | 310 set_hw_resources.api_status.api_completion_fence_addr = umsch->ring.fence_drv.gpu_addr; in umsch_mm_v4_0_set_hw_resources() 311 set_hw_resources.api_status.api_completion_fence_value = ++umsch->ring.fence_drv.sync_seq; in umsch_mm_v4_0_set_hw_resources() 360 add_queue.api_status.api_completion_fence_addr = umsch->ring.fence_drv.gpu_addr; in umsch_mm_v4_0_add_queue() 361 add_queue.api_status.api_completion_fence_value = ++umsch->ring.fence_drv.sync_seq; in umsch_mm_v4_0_add_queue() 392 remove_queue.api_status.api_completion_fence_addr = umsch->ring.fence_drv.gpu_addr; in umsch_mm_v4_0_remove_queue() 393 remove_queue.api_status.api_completion_fence_value = ++umsch->ring.fence_drv.sync_seq; in umsch_mm_v4_0_remove_queue()
|
H A D | amdgpu_ring_mux.c | 99 last_seq = atomic_read(&e->ring->fence_drv.last_seq); in amdgpu_mux_resubmit_chunks() 109 le32_to_cpu(*(e->ring->fence_drv.cpu_addr + 2))) { in amdgpu_mux_resubmit_chunks() 473 last_seq = atomic_read(&ring->fence_drv.last_seq); in scan_and_remove_signaled_chunk() 536 chunk->sync_seq = READ_ONCE(ring->fence_drv.sync_seq); in amdgpu_ring_mux_end_ib() 569 mux->seqno_to_resubmit = ring->fence_drv.sync_seq; in amdgpu_mcbp_handle_trailing_fence_irq()
|
H A D | amdgpu_job.c | 124 job->base.sched->name, atomic_read(&ring->fence_drv.last_seq), in amdgpu_job_timedout() 125 ring->fence_drv.sync_seq); in amdgpu_job_timedout()
|
H A D | uvd_v6_0.c | 1093 uint32_t seq = ring->fence_drv.sync_seq; in uvd_v6_0_ring_emit_pipeline_sync() 1094 uint64_t addr = ring->fence_drv.gpu_addr; in uvd_v6_0_ring_emit_pipeline_sync() 1122 uint32_t seq = ring->fence_drv.sync_seq; in uvd_v6_0_enc_ring_emit_pipeline_sync() 1123 uint64_t addr = ring->fence_drv.gpu_addr; in uvd_v6_0_enc_ring_emit_pipeline_sync()
|
H A D | si_dma.c | 415 uint32_t seq = ring->fence_drv.sync_seq; in si_dma_ring_emit_pipeline_sync() 416 uint64_t addr = ring->fence_drv.gpu_addr; in si_dma_ring_emit_pipeline_sync()
|
H A D | vce_v3_0.c | 888 uint32_t seq = ring->fence_drv.sync_seq; in vce_v3_0_emit_pipeline_sync() 889 uint64_t addr = ring->fence_drv.gpu_addr; in vce_v3_0_emit_pipeline_sync()
|
H A D | amdgpu_vpe.c | 537 uint32_t seq = ring->fence_drv.sync_seq; in vpe_ring_emit_pipeline_sync() 538 uint64_t addr = ring->fence_drv.gpu_addr; in vpe_ring_emit_pipeline_sync()
|
H A D | amdgpu_umsch_mm.c | 511 r = amdgpu_fence_wait_polling(ring, ring->fence_drv.sync_seq, adev->usec_timeout); in amdgpu_umsch_mm_query_fence() 514 ring->fence_drv.sync_seq); in amdgpu_umsch_mm_query_fence()
|
H A D | mes_v12_0.c | 186 seq = ++ring->fence_drv.sync_seq; in mes_v12_0_submit_pkt_and_poll_completion() 188 seq - ring->fence_drv.num_fences_mask, in mes_v12_0_submit_pkt_and_poll_completion() 204 ring->fence_drv.gpu_addr; in mes_v12_0_submit_pkt_and_poll_completion()
|
H A D | sdma_v2_4.c | 758 uint32_t seq = ring->fence_drv.sync_seq; in sdma_v2_4_ring_emit_pipeline_sync() 759 uint64_t addr = ring->fence_drv.gpu_addr; in sdma_v2_4_ring_emit_pipeline_sync()
|
H A D | cik_sdma.c | 823 uint32_t seq = ring->fence_drv.sync_seq; in cik_sdma_ring_emit_pipeline_sync() 824 uint64_t addr = ring->fence_drv.gpu_addr; in cik_sdma_ring_emit_pipeline_sync()
|
H A D | mes_v11_0.c | 200 seq = ++ring->fence_drv.sync_seq; in mes_v11_0_submit_pkt_and_poll_completion() 202 seq - ring->fence_drv.num_fences_mask, in mes_v11_0_submit_pkt_and_poll_completion() 218 ring->fence_drv.gpu_addr; in mes_v11_0_submit_pkt_and_poll_completion()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_fence.c | 69 struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; in radeon_fence_write() 90 struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; in radeon_fence_read() 119 &rdev->fence_drv[ring].lockup_work, in radeon_fence_schedule_check() 145 (*fence)->seq = seq = ++rdev->fence_drv[ring].sync_seq[ring]; in radeon_fence_emit() 177 seq = atomic64_read(&fence->rdev->fence_drv[fence->ring].last_seq); in radeon_fence_check_signaled() 224 last_seq = atomic64_read(&rdev->fence_drv[ring].last_seq); in radeon_fence_activity() 226 last_emitted = rdev->fence_drv[ring].sync_seq[ring]; in radeon_fence_activity() 251 } while (atomic64_xchg(&rdev->fence_drv[ring].last_seq, seq) > seq); in radeon_fence_activity() 269 struct radeon_fence_driver *fence_drv; in radeon_fence_check_lockup() local 273 fence_drv = container_of(work, struct radeon_fence_driver, in radeon_fence_check_lockup() [all …]
|
H A D | uvd_v2_2.c | 43 uint64_t addr = rdev->fence_drv[fence->ring].gpu_addr; in uvd_v2_2_fence_emit()
|
H A D | evergreen_dma.c | 44 u64 addr = rdev->fence_drv[fence->ring].gpu_addr; in evergreen_dma_fence_ring_emit()
|
H A D | uvd_v1_0.c | 85 uint64_t addr = rdev->fence_drv[fence->ring].gpu_addr; in uvd_v1_0_fence_emit()
|
H A D | r600_dma.c | 290 u64 addr = rdev->fence_drv[fence->ring].gpu_addr; in r600_dma_fence_ring_emit()
|
/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_fence.c | 79 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_alloc() 105 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_emit() 130 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_event_process() 135 atomic64_set(&vgdev->fence_drv.last_fence_id, fence_id); in virtio_gpu_fence_event_process()
|
H A D | virtgpu_debugfs.c | 75 (u64)atomic64_read(&vgdev->fence_drv.last_fence_id), in virtio_gpu_debugfs_irq_info() 76 vgdev->fence_drv.current_fence_id); in virtio_gpu_debugfs_irq_info()
|
H A D | virtgpu_kms.c | 149 vgdev->fence_drv.context = dma_fence_context_alloc(1); in virtio_gpu_init() 150 spin_lock_init(&vgdev->fence_drv.lock); in virtio_gpu_init() 151 INIT_LIST_HEAD(&vgdev->fence_drv.fences); in virtio_gpu_init()
|
H A D | virtgpu_ioctl.c | 172 fence = virtio_gpu_fence_alloc(vgdev, vgdev->fence_drv.context, 0); in virtio_gpu_resource_create_ioctl() 259 fence = virtio_gpu_fence_alloc(vgdev, vgdev->fence_drv.context, 0); in virtio_gpu_transfer_from_host_ioctl() 319 fence = virtio_gpu_fence_alloc(vgdev, vgdev->fence_drv.context, in virtio_gpu_transfer_to_host_ioctl()
|
H A D | virtgpu_plane.c | 261 vgfb->fence = virtio_gpu_fence_alloc(vgdev, vgdev->fence_drv.context, in virtio_gpu_plane_prepare_fb()
|
H A D | virtgpu_drv.h | 241 struct virtio_gpu_fence_driver fence_drv; member
|
H A D | virtgpu_submit.c | 478 u64 fence_ctx = vgdev->fence_drv.context; in virtio_gpu_execbuffer_ioctl()
|