/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager.c | 51 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 …]
|
D | kfd_mqd_manager_v9.c | 90 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 …]
|
D | kfd_mqd_manager_cik.c | 80 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 …]
|
D | kfd_mqd_manager_v10.c | 80 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 …]
|
D | kfd_mqd_manager_vi.c | 83 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 …]
|
D | kfd_mqd_manager_v11.c | 87 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 …]
|
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); 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);
|
D | kfd_kernel_queue.c | 147 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()
|
D | kfd_device_queue_manager.c | 556 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 …]
|
D | kfd_priv.h | 553 struct kfd_mem_obj *mqd_mem_obj; member
|