/linux-6.6.21/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 | 114 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_mqd() local 133 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_mqd() 134 if (!mqd_mem_obj) in allocate_mqd() 140 &(mqd_mem_obj->gtt_mem), in allocate_mqd() 141 &(mqd_mem_obj->gpu_addr), in allocate_mqd() 142 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd() 145 kfree(mqd_mem_obj); in allocate_mqd() 150 &mqd_mem_obj); in allocate_mqd() 155 return mqd_mem_obj; in allocate_mqd() 159 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, 137 struct kfd_mem_obj *mqd_mem_obj); 152 struct kfd_mem_obj *mqd_mem_obj); 171 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_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 | 585 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_nocpsch() 588 if (!q->mqd_mem_obj) { in create_queue_nocpsch() 594 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_nocpsch() 598 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch() 633 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch() 845 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch() 1813 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_cpsch() 1814 if (!q->mqd_mem_obj) { in create_queue_cpsch() 1830 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_cpsch() 1834 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_cpsch() [all …]
|
D | kfd_priv.h | 583 struct kfd_mem_obj *mqd_mem_obj; member
|