/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager.c | 51 struct kfd_mem_obj *mqd_mem_obj; 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; 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 …]
|
D | kfd_mqd_manager_cik.c | 79 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local 82 &mqd_mem_obj)) in allocate_mqd() 85 return mqd_mem_obj; in allocate_mqd() 89 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument 95 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd() 96 addr = mqd_mem_obj->gpu_addr; in init_mqd() 143 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument 148 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma() 154 *gart_addr = mqd_mem_obj->gpu_addr; in init_mqd_sdma() 261 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument [all …]
|
D | kfd_mqd_manager_v9.c | 115 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_mqd() local 134 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_mqd() 135 if (!mqd_mem_obj) in allocate_mqd() 141 &(mqd_mem_obj->gtt_mem), in allocate_mqd() 142 &(mqd_mem_obj->gpu_addr), in allocate_mqd() 143 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd() 146 kfree(mqd_mem_obj); in allocate_mqd() 151 &mqd_mem_obj); in allocate_mqd() 156 return mqd_mem_obj; in allocate_mqd() 160 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument [all …]
|
D | kfd_mqd_manager_v10.c | 79 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local 82 &mqd_mem_obj)) in allocate_mqd() 85 return mqd_mem_obj; in allocate_mqd() 89 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument 95 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd() 96 addr = mqd_mem_obj->gpu_addr; in init_mqd() 282 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument 290 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd() 291 addr = mqd_mem_obj->gpu_addr; in restore_mqd() 309 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument [all …]
|
D | kfd_mqd_manager_vi.c | 82 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local 85 &mqd_mem_obj)) in allocate_mqd() 88 return mqd_mem_obj; in allocate_mqd() 92 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument 98 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd() 99 addr = mqd_mem_obj->gpu_addr; in init_mqd() 293 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument 301 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd() 302 addr = mqd_mem_obj->gpu_addr; in restore_mqd() 320 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument [all …]
|
D | kfd_mqd_manager.h | 75 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, 93 struct kfd_mem_obj *mqd_mem_obj); 113 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, 162 struct kfd_mem_obj *mqd_mem_obj); 177 struct kfd_mem_obj *mqd_mem_obj); 196 struct kfd_mem_obj *mqd_mem_obj, uint32_t virtual_xcc_id);
|
D | kfd_mqd_manager_v11.c | 105 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local 117 if (kfd_gtt_sa_allocate(node, size, &mqd_mem_obj)) in allocate_mqd() 120 return mqd_mem_obj; in allocate_mqd() 124 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument 132 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd() 133 addr = mqd_mem_obj->gpu_addr; in init_mqd() 335 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument 343 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd() 344 addr = mqd_mem_obj->gpu_addr; in restore_mqd() 363 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument [all …]
|
D | kfd_mqd_manager_v12.c | 86 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local 92 if (kfd_gtt_sa_allocate(node, PAGE_SIZE, &mqd_mem_obj)) in allocate_mqd() 95 return mqd_mem_obj; in allocate_mqd() 99 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument 105 m = (struct v12_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd() 106 addr = mqd_mem_obj->gpu_addr; in init_mqd() 289 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument 294 init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); in init_mqd_hiq() 303 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument 308 m = (struct v12_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma() [all …]
|
D | kfd_kernel_queue.c | 149 kq->queue->mqd_mem_obj = kq->mqd_mgr->allocate_mqd(kq->mqd_mgr->dev, in kq_initialize() 151 if (!kq->queue->mqd_mem_obj) in kq_initialize() 154 kq->queue->mqd_mem_obj, in kq_initialize() 182 kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, kq->queue->mqd_mem_obj); in kq_initialize() 216 kq->queue->mqd_mem_obj); in kq_uninitialize()
|
D | kfd_device_queue_manager.c | 640 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_nocpsch() 643 if (!q->mqd_mem_obj) { in create_queue_nocpsch() 649 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_nocpsch() 653 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch() 688 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch() 901 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch() 1974 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_cpsch() 1975 if (!q->mqd_mem_obj) { in create_queue_cpsch() 1991 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_cpsch() 1995 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_cpsch() [all …]
|
D | kfd_priv.h | 594 struct kfd_mem_obj *mqd_mem_obj; member
|