/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gfx_v8.c | 42 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 44 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 47 static void lock_srbm(struct kgd_dev *kgd, uint32_t mec, uint32_t pipe, in lock_srbm() argument 50 struct amdgpu_device *adev = get_amdgpu_device(kgd); in lock_srbm() 57 static void unlock_srbm(struct kgd_dev *kgd) in unlock_srbm() argument 59 struct amdgpu_device *adev = get_amdgpu_device(kgd); in unlock_srbm() 65 static void acquire_queue(struct kgd_dev *kgd, uint32_t pipe_id, in acquire_queue() argument 68 struct amdgpu_device *adev = get_amdgpu_device(kgd); in acquire_queue() 73 lock_srbm(kgd, mec, pipe, queue_id, 0); in acquire_queue() 76 static void release_queue(struct kgd_dev *kgd) in release_queue() argument [all …]
|
D | amdgpu_amdkfd_gfx_v7.c | 85 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 87 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 90 static void lock_srbm(struct kgd_dev *kgd, uint32_t mec, uint32_t pipe, in lock_srbm() argument 93 struct amdgpu_device *adev = get_amdgpu_device(kgd); in lock_srbm() 100 static void unlock_srbm(struct kgd_dev *kgd) in unlock_srbm() argument 102 struct amdgpu_device *adev = get_amdgpu_device(kgd); in unlock_srbm() 108 static void acquire_queue(struct kgd_dev *kgd, uint32_t pipe_id, in acquire_queue() argument 111 struct amdgpu_device *adev = get_amdgpu_device(kgd); in acquire_queue() 116 lock_srbm(kgd, mec, pipe, queue_id, 0); in acquire_queue() 119 static void release_queue(struct kgd_dev *kgd) in release_queue() argument [all …]
|
D | amdgpu_amdkfd_gfx_v10.c | 42 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 44 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 47 static void lock_srbm(struct kgd_dev *kgd, uint32_t mec, uint32_t pipe, in lock_srbm() argument 50 struct amdgpu_device *adev = get_amdgpu_device(kgd); in lock_srbm() 56 static void unlock_srbm(struct kgd_dev *kgd) in unlock_srbm() argument 58 struct amdgpu_device *adev = get_amdgpu_device(kgd); in unlock_srbm() 64 static void acquire_queue(struct kgd_dev *kgd, uint32_t pipe_id, in acquire_queue() argument 67 struct amdgpu_device *adev = get_amdgpu_device(kgd); in acquire_queue() 72 lock_srbm(kgd, mec, pipe, queue_id, 0); in acquire_queue() 84 static void release_queue(struct kgd_dev *kgd) in release_queue() argument [all …]
|
D | amdgpu_amdkfd_gfx_v10_3.c | 41 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 43 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 46 static void lock_srbm(struct kgd_dev *kgd, uint32_t mec, uint32_t pipe, in lock_srbm() argument 49 struct amdgpu_device *adev = get_amdgpu_device(kgd); in lock_srbm() 55 static void unlock_srbm(struct kgd_dev *kgd) in unlock_srbm() argument 57 struct amdgpu_device *adev = get_amdgpu_device(kgd); in unlock_srbm() 63 static void acquire_queue(struct kgd_dev *kgd, uint32_t pipe_id, in acquire_queue() argument 66 struct amdgpu_device *adev = get_amdgpu_device(kgd); in acquire_queue() 71 lock_srbm(kgd, mec, pipe, queue_id, 0); in acquire_queue() 83 static void release_queue(struct kgd_dev *kgd) in release_queue() argument [all …]
|
D | amdgpu_amdkfd_gfx_v9.c | 49 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 51 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 54 static void lock_srbm(struct kgd_dev *kgd, uint32_t mec, uint32_t pipe, in lock_srbm() argument 57 struct amdgpu_device *adev = get_amdgpu_device(kgd); in lock_srbm() 63 static void unlock_srbm(struct kgd_dev *kgd) in unlock_srbm() argument 65 struct amdgpu_device *adev = get_amdgpu_device(kgd); in unlock_srbm() 71 static void acquire_queue(struct kgd_dev *kgd, uint32_t pipe_id, in acquire_queue() argument 74 struct amdgpu_device *adev = get_amdgpu_device(kgd); in acquire_queue() 79 lock_srbm(kgd, mec, pipe, queue_id, 0); in acquire_queue() 91 static void release_queue(struct kgd_dev *kgd) in release_queue() argument [all …]
|
D | amdgpu_amdkfd.h | 147 int amdgpu_amdkfd_submit_ib(struct kgd_dev *kgd, enum kgd_engine_type engine, 150 void amdgpu_amdkfd_set_compute_idle(struct kgd_dev *kgd, bool idle); 151 bool amdgpu_amdkfd_have_atomics_support(struct kgd_dev *kgd); 152 int amdgpu_amdkfd_flush_gpu_tlb_vmid(struct kgd_dev *kgd, uint16_t vmid); 153 int amdgpu_amdkfd_flush_gpu_tlb_pasid(struct kgd_dev *kgd, uint16_t pasid, 162 void amdgpu_amdkfd_gpu_reset(struct kgd_dev *kgd); 201 int amdgpu_amdkfd_alloc_gtt_mem(struct kgd_dev *kgd, size_t size, 204 void amdgpu_amdkfd_free_gtt_mem(struct kgd_dev *kgd, void *mem_obj); 205 int amdgpu_amdkfd_alloc_gws(struct kgd_dev *kgd, size_t size, void **mem_obj); 206 void amdgpu_amdkfd_free_gws(struct kgd_dev *kgd, void *mem_obj); [all …]
|
D | amdgpu_amdkfd_gfx_v9.h | 25 void kgd_gfx_v9_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, 29 int kgd_gfx_v9_set_pasid_vmid_mapping(struct kgd_dev *kgd, u32 pasid, 31 int kgd_gfx_v9_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id); 32 int kgd_gfx_v9_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 36 int kgd_gfx_v9_hiq_mqd_load(struct kgd_dev *kgd, void *mqd, 39 int kgd_gfx_v9_hqd_dump(struct kgd_dev *kgd, 42 bool kgd_gfx_v9_hqd_is_occupied(struct kgd_dev *kgd, uint64_t queue_address, 44 int kgd_gfx_v9_hqd_destroy(struct kgd_dev *kgd, void *mqd, 48 int kgd_gfx_v9_address_watch_disable(struct kgd_dev *kgd); 49 int kgd_gfx_v9_address_watch_execute(struct kgd_dev *kgd, [all …]
|
D | amdgpu_amdkfd.c | 235 void amdgpu_amdkfd_gpu_reset(struct kgd_dev *kgd) in amdgpu_amdkfd_gpu_reset() argument 237 struct amdgpu_device *adev = (struct amdgpu_device *)kgd; in amdgpu_amdkfd_gpu_reset() 243 int amdgpu_amdkfd_alloc_gtt_mem(struct kgd_dev *kgd, size_t size, in amdgpu_amdkfd_alloc_gtt_mem() argument 247 struct amdgpu_device *adev = (struct amdgpu_device *)kgd; in amdgpu_amdkfd_alloc_gtt_mem() 316 void amdgpu_amdkfd_free_gtt_mem(struct kgd_dev *kgd, void *mem_obj) in amdgpu_amdkfd_free_gtt_mem() argument 327 int amdgpu_amdkfd_alloc_gws(struct kgd_dev *kgd, size_t size, in amdgpu_amdkfd_alloc_gws() argument 330 struct amdgpu_device *adev = (struct amdgpu_device *)kgd; in amdgpu_amdkfd_alloc_gws() 357 void amdgpu_amdkfd_free_gws(struct kgd_dev *kgd, void *mem_obj) in amdgpu_amdkfd_free_gws() argument 364 uint32_t amdgpu_amdkfd_get_fw_version(struct kgd_dev *kgd, in amdgpu_amdkfd_get_fw_version() argument 367 struct amdgpu_device *adev = (struct amdgpu_device *)kgd; in amdgpu_amdkfd_get_fw_version() [all …]
|
D | amdgpu_amdkfd_arcturus.c | 60 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 62 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 126 int kgd_arcturus_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_arcturus_hqd_sdma_load() argument 129 struct amdgpu_device *adev = get_amdgpu_device(kgd); in kgd_arcturus_hqd_sdma_load() 196 int kgd_arcturus_hqd_sdma_dump(struct kgd_dev *kgd, in kgd_arcturus_hqd_sdma_dump() argument 200 struct amdgpu_device *adev = get_amdgpu_device(kgd); in kgd_arcturus_hqd_sdma_dump() 228 bool kgd_arcturus_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd) in kgd_arcturus_hqd_sdma_is_occupied() argument 230 struct amdgpu_device *adev = get_amdgpu_device(kgd); in kgd_arcturus_hqd_sdma_is_occupied() 247 int kgd_arcturus_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd, in kgd_arcturus_hqd_sdma_destroy() argument 250 struct amdgpu_device *adev = get_amdgpu_device(kgd); in kgd_arcturus_hqd_sdma_destroy()
|
D | amdgpu_amdkfd_arcturus.h | 23 int kgd_arcturus_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, 25 int kgd_arcturus_hqd_sdma_dump(struct kgd_dev *kgd, 28 bool kgd_arcturus_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd); 29 int kgd_arcturus_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd,
|
D | amdgpu_amdkfd_gpuvm.c | 64 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd) in get_amdgpu_device() argument 66 return (struct amdgpu_device *)kgd; in get_amdgpu_device() 1272 int amdgpu_amdkfd_gpuvm_acquire_process_vm(struct kgd_dev *kgd, in amdgpu_amdkfd_gpuvm_acquire_process_vm() argument 1277 struct amdgpu_device *adev = get_amdgpu_device(kgd); in amdgpu_amdkfd_gpuvm_acquire_process_vm() 1347 void amdgpu_amdkfd_gpuvm_release_process_vm(struct kgd_dev *kgd, void *drm_priv) in amdgpu_amdkfd_gpuvm_release_process_vm() argument 1349 struct amdgpu_device *adev = get_amdgpu_device(kgd); in amdgpu_amdkfd_gpuvm_release_process_vm() 1352 if (WARN_ON(!kgd || !drm_priv)) in amdgpu_amdkfd_gpuvm_release_process_vm() 1380 struct kgd_dev *kgd, uint64_t va, uint64_t size, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() argument 1384 struct amdgpu_device *adev = get_amdgpu_device(kgd); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1519 struct kgd_dev *kgd, struct kgd_mem *mem, void *drm_priv, in amdgpu_amdkfd_gpuvm_free_memory_of_gpu() argument [all …]
|
/drivers/gpu/drm/amd/include/ |
D | kgd_kfd_interface.h | 231 void (*program_sh_mem_settings)(struct kgd_dev *kgd, uint32_t vmid, 235 int (*set_pasid_vmid_mapping)(struct kgd_dev *kgd, u32 pasid, 238 int (*init_interrupts)(struct kgd_dev *kgd, uint32_t pipe_id); 240 int (*hqd_load)(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 245 int (*hiq_mqd_load)(struct kgd_dev *kgd, void *mqd, 249 int (*hqd_sdma_load)(struct kgd_dev *kgd, void *mqd, 252 int (*hqd_dump)(struct kgd_dev *kgd, 256 int (*hqd_sdma_dump)(struct kgd_dev *kgd, 260 bool (*hqd_is_occupied)(struct kgd_dev *kgd, uint64_t queue_address, 263 int (*hqd_destroy)(struct kgd_dev *kgd, void *mqd, uint32_t reset_type, [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_device.c | 694 struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, in kgd2kfd_probe() argument 720 kfd->kgd = kgd; in kgd2kfd_probe() 788 ret = amdgpu_amdkfd_alloc_gws(kfd->kgd, in kfd_gws_init() 789 amdgpu_amdkfd_get_num_gws(kfd->kgd), &kfd->gws); in kfd_gws_init() 806 kfd->mec_fw_version = amdgpu_amdkfd_get_fw_version(kfd->kgd, in kgd2kfd_device_init() 808 kfd->mec2_fw_version = amdgpu_amdkfd_get_fw_version(kfd->kgd, in kgd2kfd_device_init() 810 kfd->sdma_fw_version = amdgpu_amdkfd_get_fw_version(kfd->kgd, in kgd2kfd_device_init() 823 kfd->pci_atomic_requested = amdgpu_amdkfd_have_atomics_support(kfd->kgd); in kgd2kfd_device_init() 865 kfd->kgd, size, &kfd->gtt_mem, in kgd2kfd_device_init() 886 kfd->hive_id = amdgpu_amdkfd_get_hive_id(kfd->kgd); in kgd2kfd_device_init() [all …]
|
D | kfd_mqd_manager_v9.c | 110 retval = amdgpu_amdkfd_alloc_gtt_mem(kfd->kgd, in allocate_mqd() 202 return mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() 211 return mm->dev->kfd2kgd->hiq_mqd_load(mm->dev->kgd, mqd, pipe_id, in hiq_load_mqd_kiq() 293 (mm->dev->kgd, mqd, type, timeout, in destroy_mqd() 303 amdgpu_amdkfd_free_gtt_mem(kfd->kgd, mqd_mem_obj->gtt_mem); in free_mqd() 315 mm->dev->kgd, queue_address, in is_occupied() 377 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->kgd, mqd, in load_mqd_sdma() 419 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->kgd, mqd, timeout); in destroy_mqd_sdma() 426 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->kgd, mqd); in is_occupied_sdma()
|
D | kfd_mqd_manager_v10.c | 150 r = mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() 160 return mm->dev->kfd2kgd->hiq_mqd_load(mm->dev->kgd, mqd, pipe_id, in hiq_load_mqd_kiq() 240 (mm->dev->kgd, mqd, type, timeout, in destroy_mqd() 255 mm->dev->kgd, queue_address, in is_occupied() 321 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->kgd, mqd, in load_mqd_sdma() 363 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->kgd, mqd, timeout); in destroy_mqd_sdma() 370 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->kgd, mqd); in is_occupied_sdma()
|
D | cik_event_interrupt.c | 53 vmid = f2g->read_vmid_from_vmfault_reg(dev->kgd); in cik_event_interrupt_isr() 54 ret = f2g->get_atc_vmid_pasid_mapping_info(dev->kgd, vmid, &pasid); in cik_event_interrupt_isr() 116 amdgpu_amdkfd_gpuvm_get_vm_fault_info(dev->kgd, &info); in cik_event_interrupt_wq()
|
D | kfd_process.c | 289 dev->kfd2kgd->get_cu_occupancy(dev->kgd, proc->pasid, &wave_cnt, in kfd_get_cu_occupancy() 692 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(dev->kgd, mem, pdd->drm_priv); in kfd_process_free_gpuvm() 693 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->kgd, mem, pdd->drm_priv, in kfd_process_free_gpuvm() 712 err = amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(kdev->kgd, gpu_va, size, in kfd_process_alloc_gpuvm() 717 err = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(kdev->kgd, mem, in kfd_process_alloc_gpuvm() 722 err = amdgpu_amdkfd_gpuvm_sync_memory(kdev->kgd, mem, true); in kfd_process_alloc_gpuvm() 741 err = amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel(kdev->kgd, in kfd_process_alloc_gpuvm() 759 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->kgd, mem, pdd->drm_priv, in kfd_process_alloc_gpuvm() 941 peer_pdd->dev->kgd, mem, peer_pdd->drm_priv); in kfd_process_device_free_bos() 944 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->kgd, mem, in kfd_process_device_free_bos() [all …]
|
D | kfd_mqd_manager_cik.c | 173 return mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() 182 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->kgd, mqd, in load_mqd_sdma() 274 return mm->dev->kfd2kgd->hqd_destroy(mm->dev->kgd, mqd, type, timeout, in destroy_mqd() 287 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->kgd, mqd, timeout); in destroy_mqd_sdma() 295 return mm->dev->kfd2kgd->hqd_is_occupied(mm->dev->kgd, queue_address, in is_occupied() 304 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->kgd, mqd); in is_occupied_sdma()
|
D | kfd_dbgdev.c | 44 dev->kfd2kgd->address_watch_disable(dev->kgd); in dbgdev_address_watch_disable_nodiq() 325 dbgdev->dev->kgd, in dbgdev_address_watch_nodiq() 423 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 434 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 444 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 460 dbgdev->dev->kgd, in dbgdev_address_watch_diq() 755 return dbgdev->dev->kfd2kgd->wave_control_execute(dbgdev->dev->kgd, in dbgdev_wave_control_nodiq() 787 (dev->kgd, vmid, &queried_pasid); in dbgdev_wave_reset_wavefronts() 814 dev->kfd2kgd->wave_control_execute(dev->kgd, in dbgdev_wave_reset_wavefronts()
|
D | kfd_mqd_manager_vi.c | 164 return mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() 265 (mm->dev->kgd, mqd, type, timeout, in destroy_mqd() 280 mm->dev->kgd, queue_address, in is_occupied() 346 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->kgd, mqd, in load_mqd_sdma() 387 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->kgd, mqd, timeout); in destroy_mqd_sdma() 394 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->kgd, mqd); in is_occupied_sdma()
|
D | kfd_chardev.c | 853 args->gpu_clock_counter = amdgpu_amdkfd_get_gpu_clock_counter(dev->kgd); in kfd_ioctl_get_clock_counters() 1042 err = amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel(kfd->kgd, in kfd_ioctl_create_event() 1133 dev->kgd, args->va_addr, pdd->qpd.vmid); in kfd_ioctl_set_scratch_backing_va() 1154 amdgpu_amdkfd_get_tile_config(dev->kgd, &config); in kfd_ioctl_get_tile_config() 1240 amdgpu_amdkfd_get_local_mem_info(dev->kgd, &mem_info); in kfd_dev_is_large_bar() 1292 offset = amdgpu_amdkfd_get_mmio_remap_phys_addr(dev->kgd); in kfd_ioctl_alloc_memory_of_gpu() 1300 dev->kgd, args->va_addr, args->size, in kfd_ioctl_alloc_memory_of_gpu() 1332 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->kgd, (struct kgd_mem *)mem, in kfd_ioctl_alloc_memory_of_gpu() 1369 ret = amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->kgd, in kfd_ioctl_free_memory_of_gpu() 1454 peer->kgd, (struct kgd_mem *)mem, in kfd_ioctl_map_memory_to_gpu() [all …]
|
D | kfd_device_queue_manager.c | 133 dqm->dev->kgd, qpd->vmid, in program_sh_mem_settings() 233 dqm->dev->kgd, qpd->vmid, in program_trap_handler_settings() 274 dqm->dev->kfd2kgd->set_vm_context_page_table_base(dqm->dev->kgd, in allocate_vmid() 281 dqm->dev->kfd2kgd->set_scratch_backing_va(dqm->dev->kgd, in allocate_vmid() 300 return amdgpu_amdkfd_submit_ib(kdev->kgd, KGD_ENGINE_MEC1, qpd->vmid, in flush_texture_cache_nocpsch() 782 dqm->dev->kgd, in restore_process_queues_nocpsch() 956 dqm->dev->kgd, pasid, vmid); in set_pasid_vmid_mapping() 965 dqm->dev->kfd2kgd->init_interrupts(dqm->dev->kgd, i); in init_interrupts() 1134 (struct amdgpu_device *)dqm->dev->kgd, i); in set_sched_resources() 1843 retval = amdgpu_amdkfd_alloc_gtt_mem(dev->kgd, size, in allocate_hiq_sdma_mqd() [all …]
|
D | kfd_crat.c | 1969 struct amdgpu_device *adev = (struct amdgpu_device *)kdev->kgd; in kfd_fill_gpu_direct_io_link_to_cpu() 1999 kdev->kgd, NULL, true); in kfd_fill_gpu_direct_io_link_to_cpu() 2006 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->kgd, true); in kfd_fill_gpu_direct_io_link_to_cpu() 2008 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->kgd, false); in kfd_fill_gpu_direct_io_link_to_cpu() 2050 amdgpu_amdkfd_get_xgmi_hops_count(kdev->kgd, peer_kdev->kgd); in kfd_fill_gpu_xgmi_link_to_gpu() 2052 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->kgd, peer_kdev->kgd, false); in kfd_fill_gpu_xgmi_link_to_gpu() 2054 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->kgd, NULL, true) : 0; in kfd_fill_gpu_xgmi_link_to_gpu() 2120 amdgpu_amdkfd_get_cu_info(kdev->kgd, &cu_info); in kfd_create_vcrat_image_gpu() 2151 amdgpu_amdkfd_get_local_mem_info(kdev->kgd, &local_mem_info); in kfd_create_vcrat_image_gpu()
|
D | kfd_topology.c | 116 struct kfd_dev *kfd_device_by_kgd(const struct kgd_dev *kgd) in kfd_device_by_kgd() argument 124 if (top_dev->gpu && top_dev->gpu->kgd == kgd) { in kfd_device_by_kgd() 534 amdgpu_amdkfd_get_unique_id(dev->gpu->kgd)); in node_show() 1109 amdgpu_amdkfd_get_local_mem_info(gpu->kgd, &local_mem_info); in kfd_generate_gpu_id() 1192 amdgpu_amdkfd_get_local_mem_info(dev->gpu->kgd, &local_mem_info); in kfd_fill_mem_clk_max_info() 1357 amdgpu_amdkfd_get_cu_info(dev->gpu->kgd, &cu_info); in kfd_topology_add_device() 1369 ((amdgpu_amdkfd_get_asic_rev_id(dev->gpu->kgd) << in kfd_topology_add_device() 1375 amdgpu_amdkfd_get_max_engine_clock_in_mhz(dev->gpu->kgd); in kfd_topology_add_device() 1389 amdgpu_amdkfd_get_num_gws(dev->gpu->kgd) : 0; in kfd_topology_add_device() 1460 adev = (struct amdgpu_device *)(dev->gpu->kgd); in kfd_topology_add_device()
|
D | kfd_smi_events.c | 210 struct amdgpu_device *adev = (struct amdgpu_device *)dev->kgd; in kfd_smi_event_update_thermal_throttling() 233 struct amdgpu_device *adev = (struct amdgpu_device *)dev->kgd; in kfd_smi_event_update_vmfault()
|