/drivers/gpu/drm/radeon/ |
D | radeon_kfd.c | 51 static int alloc_gtt_mem(struct kgd_dev *kgd, size_t size, 55 static void free_gtt_mem(struct kgd_dev *kgd, void *mem_obj); 57 static uint64_t get_vmem_size(struct kgd_dev *kgd); 58 static uint64_t get_gpu_clock_counter(struct kgd_dev *kgd); 60 static uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd); 61 static uint16_t get_fw_version(struct kgd_dev *kgd, enum kgd_engine_type type); 67 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, 71 static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, 74 static int kgd_init_pipeline(struct kgd_dev *kgd, uint32_t pipe_id, 76 static int kgd_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id); [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gfx_v8.c | 49 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, 53 static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, 55 static int kgd_init_pipeline(struct kgd_dev *kgd, uint32_t pipe_id, 57 static int kgd_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id); 58 static int kgd_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 60 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd); 61 static bool kgd_hqd_is_occupied(struct kgd_dev *kgd, uint64_t queue_address, 63 static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd); 64 static int kgd_hqd_destroy(struct kgd_dev *kgd, uint32_t reset_type, 67 static int kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd, [all …]
|
D | amdgpu_amdkfd_gfx_v7.c | 89 static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, 93 static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, 96 static int kgd_init_pipeline(struct kgd_dev *kgd, uint32_t pipe_id, 98 static int kgd_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id); 99 static int kgd_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 101 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd); 102 static bool kgd_hqd_is_occupied(struct kgd_dev *kgd, uint64_t queue_address, 105 static int kgd_hqd_destroy(struct kgd_dev *kgd, uint32_t reset_type, 108 static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd); 109 static int kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd, [all …]
|
D | amdgpu_amdkfd.c | 169 int alloc_gtt_mem(struct kgd_dev *kgd, size_t size, in alloc_gtt_mem() argument 173 struct amdgpu_device *rdev = (struct amdgpu_device *)kgd; in alloc_gtt_mem() 177 BUG_ON(kgd == NULL); in alloc_gtt_mem() 230 void free_gtt_mem(struct kgd_dev *kgd, void *mem_obj) in free_gtt_mem() argument 244 uint64_t get_vmem_size(struct kgd_dev *kgd) in get_vmem_size() argument 247 (struct amdgpu_device *)kgd; in get_vmem_size() 249 BUG_ON(kgd == NULL); in get_vmem_size() 254 uint64_t get_gpu_clock_counter(struct kgd_dev *kgd) in get_gpu_clock_counter() argument 256 struct amdgpu_device *rdev = (struct amdgpu_device *)kgd; in get_gpu_clock_counter() 263 uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd) in get_max_engine_clock_in_mhz() argument [all …]
|
D | amdgpu_amdkfd.h | 56 int alloc_gtt_mem(struct kgd_dev *kgd, size_t size, 59 void free_gtt_mem(struct kgd_dev *kgd, void *mem_obj); 60 uint64_t get_vmem_size(struct kgd_dev *kgd); 61 uint64_t get_gpu_clock_counter(struct kgd_dev *kgd); 63 uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd);
|
/drivers/gpu/drm/amd/include/ |
D | kgd_kfd_interface.h | 126 int (*init_gtt_mem_allocation)(struct kgd_dev *kgd, size_t size, 130 void (*free_gtt_mem)(struct kgd_dev *kgd, void *mem_obj); 132 uint64_t (*get_vmem_size)(struct kgd_dev *kgd); 133 uint64_t (*get_gpu_clock_counter)(struct kgd_dev *kgd); 135 uint32_t (*get_max_engine_clock_in_mhz)(struct kgd_dev *kgd); 138 void (*program_sh_mem_settings)(struct kgd_dev *kgd, uint32_t vmid, 142 int (*set_pasid_vmid_mapping)(struct kgd_dev *kgd, unsigned int pasid, 145 int (*init_pipeline)(struct kgd_dev *kgd, uint32_t pipe_id, 148 int (*init_interrupts)(struct kgd_dev *kgd, uint32_t pipe_id); 150 int (*hqd_load)(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager_cik.c | 156 (mm->dev->kgd, mqd, pipe_id, queue_id, wptr); in load_mqd() 163 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->kgd, mqd); in load_mqd_sdma() 255 return mm->dev->kfd2kgd->hqd_destroy(mm->dev->kgd, type, timeout, in destroy_mqd() 268 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->kgd, mqd, timeout); in destroy_mqd_sdma() 276 return mm->dev->kfd2kgd->hqd_is_occupied(mm->dev->kgd, queue_address, in is_occupied() 285 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->kgd, mqd); in is_occupied_sdma()
|
D | kfd_dbgdev.c | 47 dev->kfd2kgd->address_watch_disable(dev->kgd); in dbgdev_address_watch_disable_nodiq() 340 dbgdev->dev->kgd, in dbgdev_address_watch_nodiq() 441 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 454 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 466 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 484 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 790 return dbgdev->dev->kfd2kgd->wave_control_execute(dbgdev->dev->kgd, in dbgdev_wave_control_nodiq() 825 (dev->kgd, vmid)) { in dbgdev_wave_reset_wavefronts() 827 (dev->kgd, vmid) == p->pasid) { in dbgdev_wave_reset_wavefronts() 853 dev->kfd2kgd->wave_control_execute(dev->kgd, in dbgdev_wave_reset_wavefronts()
|
D | kfd_device.c | 109 struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, in kgd2kfd_probe() argument 124 kfd->kgd = kgd; in kgd2kfd_probe() 248 kfd->kgd, size, &kfd->gtt_mem, in kgd2kfd_device_init() 330 kfd->kfd2kgd->free_gtt_mem(kfd->kgd, kfd->gtt_mem); in kgd2kfd_device_init() 346 kfd->kfd2kgd->free_gtt_mem(kfd->kgd, kfd->gtt_mem); in kgd2kfd_device_exit()
|
D | kfd_mqd_manager_vi.c | 98 (mm->dev->kgd, mqd, pipe_id, queue_id, wptr); in load_mqd() 182 (mm->dev->kgd, type, timeout, in destroy_mqd() 198 mm->dev->kgd, queue_address, in is_occupied()
|
D | kfd_priv.h | 145 struct kgd_dev *kgd; member 206 struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd,
|
D | kfd_device_queue_manager.c | 87 dqm->dev->kgd, qpd->vmid, in program_sh_mem_settings() 468 dqm->dev->kgd, pasid_mapping, in set_pasid_vmid_mapping() 520 dqm->dev->kfd2kgd->init_pipeline(dqm->dev->kgd, inx, in init_pipelines() 534 dqm->dev->kfd2kgd->init_interrupts(dqm->dev->kgd, in init_interrupts()
|
D | kfd_topology.c | 737 dev->gpu->kgd)); in node_show() 744 dev->gpu->kgd, in node_show() 1123 buf[5] = (uint32_t)(gpu->kfd2kgd->get_vmem_size(gpu->kgd) in kfd_generate_gpu_id() 1125 buf[6] = (uint32_t)(gpu->kfd2kgd->get_vmem_size(gpu->kgd) >> 32); in kfd_generate_gpu_id()
|
D | kfd_chardev.c | 744 dev->kfd2kgd->get_gpu_clock_counter(dev->kgd); in kfd_ioctl_get_clock_counters()
|