Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_sched.c26 nouveau_job_init(struct nouveau_job *job, in nouveau_job_init() argument
32 INIT_LIST_HEAD(&job->entry); in nouveau_job_init()
34 job->file_priv = args->file_priv; in nouveau_job_init()
35 job->cli = nouveau_cli(args->file_priv); in nouveau_job_init()
36 job->sched = sched; in nouveau_job_init()
38 job->sync = args->sync; in nouveau_job_init()
39 job->resv_usage = args->resv_usage; in nouveau_job_init()
41 job->ops = args->ops; in nouveau_job_init()
43 job->in_sync.count = args->in_sync.count; in nouveau_job_init()
44 if (job->in_sync.count) { in nouveau_job_init()
[all …]
Dnouveau_exec.c87 nouveau_exec_job_submit(struct nouveau_job *job, in nouveau_exec_job_submit() argument
90 struct nouveau_exec_job *exec_job = to_nouveau_exec_job(job); in nouveau_exec_job_submit()
91 struct nouveau_cli *cli = job->cli; in nouveau_exec_job_submit()
118 nouveau_exec_job_armed_submit(struct nouveau_job *job, in nouveau_exec_job_armed_submit() argument
121 drm_gpuvm_exec_resv_add_fence(vme, job->done_fence, in nouveau_exec_job_armed_submit()
122 job->resv_usage, job->resv_usage); in nouveau_exec_job_armed_submit()
127 nouveau_exec_job_run(struct nouveau_job *job) in nouveau_exec_job_run() argument
129 struct nouveau_exec_job *exec_job = to_nouveau_exec_job(job); in nouveau_exec_job_run()
136 NV_PRINTK(err, job->cli, "nv50cal_space: %d\n", ret); in nouveau_exec_job_run()
150 NV_PRINTK(err, job->cli, "error fencing pushbuf: %d\n", ret); in nouveau_exec_job_run()
[all …]
/linux-6.12.1/drivers/gpu/host1x/
Djob.c30 struct host1x_job *job = NULL; in host1x_job_alloc() local
51 mem = job = kzalloc(total, GFP_KERNEL); in host1x_job_alloc()
52 if (!job) in host1x_job_alloc()
55 job->enable_firewall = enable_firewall; in host1x_job_alloc()
57 kref_init(&job->ref); in host1x_job_alloc()
58 job->channel = ch; in host1x_job_alloc()
62 job->relocs = num_relocs ? mem : NULL; in host1x_job_alloc()
64 job->unpins = num_unpins ? mem : NULL; in host1x_job_alloc()
66 job->cmds = num_cmdbufs ? mem : NULL; in host1x_job_alloc()
68 job->addr_phys = num_unpins ? mem : NULL; in host1x_job_alloc()
[all …]
Dcdma.c274 struct host1x_job *job) in cdma_start_timer_locked() argument
281 cdma->timeout.client = job->client; in cdma_start_timer_locked()
282 cdma->timeout.syncpt = job->syncpt; in cdma_start_timer_locked()
283 cdma->timeout.syncpt_val = job->syncpt_end; in cdma_start_timer_locked()
287 msecs_to_jiffies(job->timeout)); in cdma_start_timer_locked()
313 struct host1x_job *job, *n; in update_cdma_locked() local
319 list_for_each_entry_safe(job, n, &cdma->sync_queue, list) { in update_cdma_locked()
320 struct host1x_syncpt *sp = job->syncpt; in update_cdma_locked()
323 if (!host1x_syncpt_is_expired(sp, job->syncpt_end) && in update_cdma_locked()
324 !job->cancelled) { in update_cdma_locked()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_sched_job.c68 static void job_free(struct xe_sched_job *job) in job_free() argument
70 struct xe_exec_queue *q = job->q; in job_free()
73 kmem_cache_free(xe_exec_queue_is_parallel(job->q) || is_migration ? in job_free()
74 xe_sched_job_parallel_slab : xe_sched_job_slab, job); in job_free()
77 static struct xe_device *job_to_xe(struct xe_sched_job *job) in job_to_xe() argument
79 return gt_to_xe(job->q->gt); in job_to_xe()
83 static void xe_sched_job_free_fences(struct xe_sched_job *job) in xe_sched_job_free_fences() argument
87 for (i = 0; i < job->q->width; ++i) { in xe_sched_job_free_fences()
88 struct xe_job_ptrs *ptrs = &job->ptrs[i]; in xe_sched_job_free_fences()
100 struct xe_sched_job *job; in xe_sched_job_create() local
[all …]
Dxe_sched_job.h31 static inline struct xe_sched_job *xe_sched_job_get(struct xe_sched_job *job) in xe_sched_job_get() argument
33 kref_get(&job->refcount); in xe_sched_job_get()
34 return job; in xe_sched_job_get()
44 static inline void xe_sched_job_put(struct xe_sched_job *job) in xe_sched_job_put() argument
46 kref_put(&job->refcount, xe_sched_job_destroy); in xe_sched_job_put()
49 void xe_sched_job_set_error(struct xe_sched_job *job, int error);
50 static inline bool xe_sched_job_is_error(struct xe_sched_job *job) in xe_sched_job_is_error() argument
52 return job->fence->error < 0; in xe_sched_job_is_error()
55 bool xe_sched_job_started(struct xe_sched_job *job);
56 bool xe_sched_job_completed(struct xe_sched_job *job);
[all …]
Dxe_ring_ops.c174 static int emit_render_cache_flush(struct xe_sched_job *job, u32 *dw, int i) in emit_render_cache_flush() argument
176 struct xe_gt *gt = job->q->gt; in emit_render_cache_flush()
192 else if (job->q->class == XE_ENGINE_CLASS_COMPUTE) in emit_render_cache_flush()
222 static u32 get_ppgtt_flag(struct xe_sched_job *job) in get_ppgtt_flag() argument
224 return job->q->vm ? BIT(8) : 0; in get_ppgtt_flag()
241 static void __emit_job_gen12_simple(struct xe_sched_job *job, struct xe_lrc *lrc, in __emit_job_gen12_simple() argument
245 u32 ppgtt_flag = get_ppgtt_flag(job); in __emit_job_gen12_simple()
246 struct xe_gt *gt = job->q->gt; in __emit_job_gen12_simple()
250 if (job->ring_ops_flush_tlb) { in __emit_job_gen12_simple()
262 if (job->user_fence.used) { in __emit_job_gen12_simple()
[all …]
/linux-6.12.1/drivers/md/
Ddm-kcopyd.c420 struct kcopyd_job *job; in pop_io_job() local
426 list_for_each_entry(job, jobs, list) { in pop_io_job()
427 if (job->op == REQ_OP_READ || in pop_io_job()
428 !(job->flags & BIT(DM_KCOPYD_WRITE_SEQ))) { in pop_io_job()
429 list_del(&job->list); in pop_io_job()
430 return job; in pop_io_job()
433 if (job->write_offset == job->master_job->write_offset) { in pop_io_job()
434 job->master_job->write_offset += job->source.count; in pop_io_job()
435 list_del(&job->list); in pop_io_job()
436 return job; in pop_io_job()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_job.c37 struct amdgpu_job *job) in amdgpu_job_do_core_dump() argument
48 amdgpu_coredump(adev, true, false, job); in amdgpu_job_do_core_dump()
52 struct amdgpu_job *job) in amdgpu_job_core_dump() argument
80 amdgpu_job_do_core_dump(tmp_adev, job); in amdgpu_job_core_dump()
91 struct amdgpu_job *job = to_amdgpu_job(s_job); in amdgpu_job_timedout() local
114 amdgpu_job_core_dump(adev, job); in amdgpu_job_timedout()
117 amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) { in amdgpu_job_timedout()
124 job->base.sched->name, atomic_read(&ring->fence_drv.last_seq), in amdgpu_job_timedout()
127 ti = amdgpu_vm_get_task_info_pasid(ring->adev, job->pasid); in amdgpu_job_timedout()
145 r = amdgpu_ring_reset(ring, job->vmid); in amdgpu_job_timedout()
[all …]
Damdgpu_ib.c127 struct amdgpu_ib *ibs, struct amdgpu_job *job, in amdgpu_ib_schedule() argument
140 int vmid = AMDGPU_JOB_GET_VMID(job); in amdgpu_ib_schedule()
151 if (job) { in amdgpu_ib_schedule()
152 vm = job->vm; in amdgpu_ib_schedule()
153 fence_ctx = job->base.s_fence ? in amdgpu_ib_schedule()
154 job->base.s_fence->scheduled.context : 0; in amdgpu_ib_schedule()
155 shadow_va = job->shadow_va; in amdgpu_ib_schedule()
156 csa_va = job->csa_va; in amdgpu_ib_schedule()
157 gds_va = job->gds_va; in amdgpu_ib_schedule()
158 init_shadow = job->init_shadow; in amdgpu_ib_schedule()
[all …]
Damdgpu_ids.c169 struct amdgpu_job *job) in amdgpu_vmid_gds_switch_needed() argument
171 return id->gds_base != job->gds_base || in amdgpu_vmid_gds_switch_needed()
172 id->gds_size != job->gds_size || in amdgpu_vmid_gds_switch_needed()
173 id->gws_base != job->gws_base || in amdgpu_vmid_gds_switch_needed()
174 id->gws_size != job->gws_size || in amdgpu_vmid_gds_switch_needed()
175 id->oa_base != job->oa_base || in amdgpu_vmid_gds_switch_needed()
176 id->oa_size != job->oa_size; in amdgpu_vmid_gds_switch_needed()
181 struct amdgpu_job *job) in amdgpu_vmid_compatible() argument
183 return id->pd_gpu_addr == job->vm_pd_addr && in amdgpu_vmid_compatible()
184 !amdgpu_vmid_gds_switch_needed(id, job); in amdgpu_vmid_compatible()
[all …]
Damdgpu_job.h42 #define AMDGPU_JOB_GET_VMID(job) ((job) ? (job)->vmid : 0) argument
86 static inline struct amdgpu_ring *amdgpu_job_ring(struct amdgpu_job *job) in amdgpu_job_ring() argument
88 return to_amdgpu_ring(job->base.entity->rq->sched); in amdgpu_job_ring()
93 unsigned int num_ibs, struct amdgpu_job **job);
97 struct amdgpu_job **job);
98 void amdgpu_job_set_resources(struct amdgpu_job *job, struct amdgpu_bo *gds,
100 void amdgpu_job_free_resources(struct amdgpu_job *job);
101 void amdgpu_job_set_gang_leader(struct amdgpu_job *job,
103 void amdgpu_job_free(struct amdgpu_job *job);
104 struct dma_fence *amdgpu_job_submit(struct amdgpu_job *job);
[all …]
/linux-6.12.1/drivers/gpu/host1x/hw/
Dchannel_hw.c50 static void submit_wait(struct host1x_job *job, u32 id, u32 threshold, in submit_wait() argument
53 struct host1x_cdma *cdma = &job->channel->cdma; in submit_wait()
63 if (job->memory_context) in submit_wait()
64 stream_id = job->memory_context->stream_id; in submit_wait()
66 stream_id = job->engine_fallback_streamid; in submit_wait()
79 host1x_cdma_push_wide(&job->channel->cdma, in submit_wait()
80 host1x_opcode_setclass(job->class, 0, 0), in submit_wait()
82 host1x_opcode_setstreamid(job->engine_streamid_offset / 4), in submit_wait()
113 static void submit_gathers(struct host1x_job *job, u32 job_syncpt_base) in submit_gathers() argument
115 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers()
[all …]
/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_job.c25 struct pvr_job *job = container_of(kref, struct pvr_job, ref_count); in pvr_job_release() local
27 xa_erase(&job->pvr_dev->job_ids, job->id); in pvr_job_release()
29 pvr_hwrt_data_put(job->hwrt); in pvr_job_release()
30 pvr_context_put(job->ctx); in pvr_job_release()
32 WARN_ON(job->paired_job); in pvr_job_release()
34 pvr_queue_job_cleanup(job); in pvr_job_release()
35 pvr_job_release_pm_ref(job); in pvr_job_release()
37 kfree(job->cmd); in pvr_job_release()
38 kfree(job); in pvr_job_release()
46 pvr_job_put(struct pvr_job *job) in pvr_job_put() argument
[all …]
Dpvr_queue.c340 static u32 job_cmds_size(struct pvr_job *job, u32 ufo_wait_count) in job_cmds_size() argument
346 pvr_cccb_get_size_of_cmd_with_hdr(job->cmd_len); in job_cmds_size()
355 static unsigned long job_count_remaining_native_deps(struct pvr_job *job) in job_count_remaining_native_deps() argument
361 xa_for_each(&job->base.dependencies, index, fence) { in job_count_remaining_native_deps()
388 pvr_queue_get_job_cccb_fence(struct pvr_queue *queue, struct pvr_job *job) in pvr_queue_get_job_cccb_fence() argument
396 if (!job->cccb_fence) in pvr_queue_get_job_cccb_fence()
402 native_deps_remaining = job_count_remaining_native_deps(job); in pvr_queue_get_job_cccb_fence()
403 if (pvr_cccb_cmdseq_fits(&queue->cccb, job_cmds_size(job, native_deps_remaining))) { in pvr_queue_get_job_cccb_fence()
404 pvr_queue_fence_put(job->cccb_fence); in pvr_queue_get_job_cccb_fence()
405 job->cccb_fence = NULL; in pvr_queue_get_job_cccb_fence()
[all …]
Dpvr_job.h104 pvr_job_get(struct pvr_job *job) in pvr_job_get() argument
106 if (job) in pvr_job_get()
107 kref_get(&job->ref_count); in pvr_job_get()
109 return job; in pvr_job_get()
112 void pvr_job_put(struct pvr_job *job);
119 pvr_job_release_pm_ref(struct pvr_job *job) in pvr_job_release_pm_ref() argument
121 if (job->has_pm_ref) { in pvr_job_release_pm_ref()
122 pvr_power_put(job->pvr_dev); in pvr_job_release_pm_ref()
123 job->has_pm_ref = false; in pvr_job_release_pm_ref()
136 pvr_job_get_pm_ref(struct pvr_job *job) in pvr_job_get_pm_ref() argument
[all …]
/linux-6.12.1/drivers/gpu/drm/v3d/
Dv3d_sched.c71 struct v3d_job *job = to_v3d_job(sched_job); in v3d_sched_job_free() local
73 v3d_job_cleanup(job); in v3d_sched_job_free()
109 struct v3d_cpu_job *job = to_cpu_job(sched_job); in v3d_cpu_job_free() local
111 v3d_timestamp_query_info_free(&job->timestamp_query, in v3d_cpu_job_free()
112 job->timestamp_query.count); in v3d_cpu_job_free()
114 v3d_performance_query_info_free(&job->performance_query, in v3d_cpu_job_free()
115 job->performance_query.count); in v3d_cpu_job_free()
117 v3d_job_cleanup(&job->base); in v3d_cpu_job_free()
121 v3d_switch_perfmon(struct v3d_dev *v3d, struct v3d_job *job) in v3d_switch_perfmon() argument
123 if (job->perfmon != v3d->active_perfmon) in v3d_switch_perfmon()
[all …]
Dv3d_submit.c21 v3d_lock_bo_reservations(struct v3d_job *job, in v3d_lock_bo_reservations() argument
26 ret = drm_gem_lock_reservations(job->bo, job->bo_count, acquire_ctx); in v3d_lock_bo_reservations()
30 for (i = 0; i < job->bo_count; i++) { in v3d_lock_bo_reservations()
31 ret = dma_resv_reserve_fences(job->bo[i]->resv, 1); in v3d_lock_bo_reservations()
35 ret = drm_sched_job_add_implicit_dependencies(&job->base, in v3d_lock_bo_reservations()
36 job->bo[i], true); in v3d_lock_bo_reservations()
44 drm_gem_unlock_reservations(job->bo, job->bo_count, acquire_ctx); in v3d_lock_bo_reservations()
67 struct v3d_job *job, in v3d_lookup_bos() argument
71 job->bo_count = bo_count; in v3d_lookup_bos()
73 if (!job->bo_count) { in v3d_lookup_bos()
[all …]
/linux-6.12.1/block/
Dbsg-lib.c31 struct bsg_job *job; in bsg_transport_sg_io_fn() local
49 job = blk_mq_rq_to_pdu(rq); in bsg_transport_sg_io_fn()
50 reply = job->reply; in bsg_transport_sg_io_fn()
51 memset(job, 0, sizeof(*job)); in bsg_transport_sg_io_fn()
52 job->reply = reply; in bsg_transport_sg_io_fn()
53 job->reply_len = SCSI_SENSE_BUFFERSIZE; in bsg_transport_sg_io_fn()
54 job->dd_data = job + 1; in bsg_transport_sg_io_fn()
56 job->request_len = hdr->request_len; in bsg_transport_sg_io_fn()
57 job->request = memdup_user(uptr64(hdr->request), hdr->request_len); in bsg_transport_sg_io_fn()
58 if (IS_ERR(job->request)) { in bsg_transport_sg_io_fn()
[all …]
/linux-6.12.1/drivers/gpu/drm/panfrost/
Dpanfrost_job.c106 int panfrost_job_get_slot(struct panfrost_job *job) in panfrost_job_get_slot() argument
112 if (job->requirements & PANFROST_JD_REQ_FS) in panfrost_job_get_slot()
117 if (job->requirements & PANFROST_JD_REQ_ONLY_COMPUTE) { in panfrost_job_get_slot()
118 if ((job->requirements & PANFROST_JD_REQ_CORE_GRP_MASK) && in panfrost_job_get_slot()
119 (job->pfdev->features.nr_core_groups == 2)) in panfrost_job_get_slot()
121 if (panfrost_has_hw_issue(job->pfdev, HW_ISSUE_8987)) in panfrost_job_get_slot()
146 panfrost_get_job_chain_flag(const struct panfrost_job *job) in panfrost_get_job_chain_flag() argument
148 struct panfrost_fence *f = to_panfrost_fence(job->done_fence); in panfrost_get_job_chain_flag()
150 if (!panfrost_has_hw_feature(job->pfdev, HW_FEATURE_JOBCHAIN_DISAMBIGUATION)) in panfrost_get_job_chain_flag()
159 struct panfrost_job *job = pfdev->jobs[slot][0]; in panfrost_dequeue_job() local
[all …]
/linux-6.12.1/drivers/accel/ivpu/
Divpu_job.c342 static int ivpu_cmdq_push_job(struct ivpu_cmdq *cmdq, struct ivpu_job *job) in ivpu_cmdq_push_job() argument
344 struct ivpu_device *vdev = job->vdev; in ivpu_cmdq_push_job()
353 job->file_priv->ctx.id, job->engine_idx, cmdq->db_id, header->head, tail); in ivpu_cmdq_push_job()
357 entry = &cmdq->jobq->job[tail]; in ivpu_cmdq_push_job()
358 entry->batch_buf_addr = job->cmd_buf_vpu_addr; in ivpu_cmdq_push_job()
359 entry->job_id = job->job_id; in ivpu_cmdq_push_job()
422 static void ivpu_job_destroy(struct ivpu_job *job) in ivpu_job_destroy() argument
424 struct ivpu_device *vdev = job->vdev; in ivpu_job_destroy()
428 job->job_id, job->file_priv->ctx.id, job->engine_idx); in ivpu_job_destroy()
430 for (i = 0; i < job->bo_count; i++) in ivpu_job_destroy()
[all …]
/linux-6.12.1/drivers/gpu/drm/
Ddrm_writeback.c312 int drm_writeback_prepare_job(struct drm_writeback_job *job) in drm_writeback_prepare_job() argument
314 struct drm_writeback_connector *connector = job->connector; in drm_writeback_prepare_job()
320 ret = funcs->prepare_writeback_job(connector, job); in drm_writeback_prepare_job()
325 job->prepared = true; in drm_writeback_prepare_job()
352 struct drm_writeback_job *job; in drm_writeback_queue_job() local
355 job = conn_state->writeback_job; in drm_writeback_queue_job()
359 list_add_tail(&job->list_entry, &wb_connector->job_queue); in drm_writeback_queue_job()
364 void drm_writeback_cleanup_job(struct drm_writeback_job *job) in drm_writeback_cleanup_job() argument
366 struct drm_writeback_connector *connector = job->connector; in drm_writeback_cleanup_job()
370 if (job->prepared && funcs->cleanup_writeback_job) in drm_writeback_cleanup_job()
[all …]
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_bsg.c295 struct bsg_job *job; in lpfc_bsg_send_mgmt_cmd_cmp() local
308 job = dd_data->set_job; in lpfc_bsg_send_mgmt_cmd_cmp()
309 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
310 bsg_reply = job->reply; in lpfc_bsg_send_mgmt_cmd_cmp()
312 job->dd_data = NULL; in lpfc_bsg_send_mgmt_cmd_cmp()
332 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
351 lpfc_bsg_copy_data(rmp, &job->reply_payload, in lpfc_bsg_send_mgmt_cmd_cmp()
366 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
368 bsg_job_done(job, bsg_reply->result, in lpfc_bsg_send_mgmt_cmd_cmp()
379 lpfc_bsg_send_mgmt_cmd(struct bsg_job *job) in lpfc_bsg_send_mgmt_cmd() argument
[all …]
/linux-6.12.1/drivers/gpu/drm/tegra/
Dsubmit.c327 static int submit_get_syncpt(struct tegra_drm_context *context, struct host1x_job *job, in submit_get_syncpt() argument
344 job->syncpt = host1x_syncpt_get(sp); in submit_get_syncpt()
345 job->syncpt_incrs = args->syncpt.increments; in submit_get_syncpt()
350 static int submit_job_add_gather(struct host1x_job *job, struct tegra_drm_context *context, in submit_job_add_gather() argument
385 host1x_job_add_gather(job, &bo->base, cmd->words, *offset * 4); in submit_job_add_gather()
399 struct host1x_job *job; in submit_create_job() local
412 job = host1x_job_alloc(context->channel, args->num_cmds, 0, true); in submit_create_job()
413 if (!job) { in submit_create_job()
415 job = ERR_PTR(-ENOMEM); in submit_create_job()
419 err = submit_get_syncpt(context, job, syncpoints, args); in submit_create_job()
[all …]
/linux-6.12.1/drivers/gpu/drm/scheduler/
Dsched_main.c394 struct drm_sched_job *job; in drm_sched_run_free_queue() local
397 job = list_first_entry_or_null(&sched->pending_list, in drm_sched_run_free_queue()
399 if (job && dma_fence_is_signaled(&job->s_fence->finished)) in drm_sched_run_free_queue()
556 struct drm_sched_job *job; in drm_sched_job_timedout() local
563 job = list_first_entry_or_null(&sched->pending_list, in drm_sched_job_timedout()
566 if (job) { in drm_sched_job_timedout()
572 list_del_init(&job->list); in drm_sched_job_timedout()
575 status = job->sched->ops->timedout_job(job); in drm_sched_job_timedout()
582 job->sched->ops->free_job(job); in drm_sched_job_timedout()
788 int drm_sched_job_init(struct drm_sched_job *job, in drm_sched_job_init() argument
[all …]

12345678910>>...15