Home
last modified time | relevance | path

Searched refs:mqd_mem_obj (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c51 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_hiq_mqd() local
53 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_hiq_mqd()
54 if (!mqd_mem_obj) in allocate_hiq_mqd()
57 mqd_mem_obj->gtt_mem = dev->dqm->hiq_sdma_mqd.gtt_mem; in allocate_hiq_mqd()
58 mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr; in allocate_hiq_mqd()
59 mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; in allocate_hiq_mqd()
61 return mqd_mem_obj; in allocate_hiq_mqd()
67 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_sdma_mqd() local
70 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_sdma_mqd()
71 if (!mqd_mem_obj) in allocate_sdma_mqd()
[all …]
Dkfd_mqd_manager_v9.c90 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_mqd() local
109 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_mqd()
110 if (!mqd_mem_obj) in allocate_mqd()
115 &(mqd_mem_obj->gtt_mem), in allocate_mqd()
116 &(mqd_mem_obj->gpu_addr), in allocate_mqd()
117 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd()
120 &mqd_mem_obj); in allocate_mqd()
124 kfree(mqd_mem_obj); in allocate_mqd()
128 return mqd_mem_obj; in allocate_mqd()
133 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
[all …]
Dkfd_mqd_manager_cik.c80 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
83 &mqd_mem_obj)) in allocate_mqd()
86 return mqd_mem_obj; in allocate_mqd()
90 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
96 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
97 addr = mqd_mem_obj->gpu_addr; in init_mqd()
144 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument
149 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
155 *gart_addr = mqd_mem_obj->gpu_addr; in init_mqd_sdma()
269 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
[all …]
Dkfd_mqd_manager_v10.c80 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
83 &mqd_mem_obj)) in allocate_mqd()
86 return mqd_mem_obj; in allocate_mqd()
90 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
96 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
97 addr = mqd_mem_obj->gpu_addr; in init_mqd()
266 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
274 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
275 addr = mqd_mem_obj->gpu_addr; in restore_mqd()
293 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
[all …]
Dkfd_mqd_manager_vi.c83 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
86 &mqd_mem_obj)) in allocate_mqd()
89 return mqd_mem_obj; in allocate_mqd()
93 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
99 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
100 addr = mqd_mem_obj->gpu_addr; in init_mqd()
301 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
309 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
310 addr = mqd_mem_obj->gpu_addr; in restore_mqd()
328 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
[all …]
Dkfd_mqd_manager_v11.c87 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
99 if (kfd_gtt_sa_allocate(kfd, size, &mqd_mem_obj)) in allocate_mqd()
102 return mqd_mem_obj; in allocate_mqd()
106 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
113 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
114 addr = mqd_mem_obj->gpu_addr; in init_mqd()
293 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
298 init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); in init_mqd_hiq()
307 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument
312 m = (struct v11_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
[all …]
Dkfd_mqd_manager.h75 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr,
93 struct kfd_mem_obj *mqd_mem_obj);
112 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr,
134 struct kfd_mem_obj *mqd_mem_obj);
149 struct kfd_mem_obj *mqd_mem_obj);
Dkfd_kernel_queue.c147 kq->queue->mqd_mem_obj = kq->mqd_mgr->allocate_mqd(kq->mqd_mgr->dev, in kq_initialize()
149 if (!kq->queue->mqd_mem_obj) in kq_initialize()
152 kq->queue->mqd_mem_obj, in kq_initialize()
180 kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, kq->queue->mqd_mem_obj); in kq_initialize()
212 kq->queue->mqd_mem_obj); in kq_uninitialize()
Dkfd_device_queue_manager.c556 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_nocpsch()
559 if (!q->mqd_mem_obj) { in create_queue_nocpsch()
565 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_nocpsch()
569 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch()
604 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch()
813 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch()
1648 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_cpsch()
1649 if (!q->mqd_mem_obj) { in create_queue_cpsch()
1663 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_cpsch()
1667 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_cpsch()
[all …]
Dkfd_priv.h553 struct kfd_mem_obj *mqd_mem_obj; member