Home
last modified time | relevance | path

Searched refs:kfd_node (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.h27 int kfd_smi_event_open(struct kfd_node *dev, uint32_t *fd);
28 void kfd_smi_event_update_vmfault(struct kfd_node *dev, uint16_t pasid);
29 void kfd_smi_event_update_thermal_throttling(struct kfd_node *dev,
31 void kfd_smi_event_update_gpu_reset(struct kfd_node *dev, bool post_reset);
32 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid,
35 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid,
37 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid,
42 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid,
45 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid,
47 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid);
[all …]
H A Dkfd_priv.h211 struct kfd_node;
259 struct kfd_node { struct
361 struct kfd_node *nodes[MAX_KFD_NODES];
595 struct kfd_node *device;
732 struct kfd_node *dev;
1287 struct kfd_node *dev);
1289 struct kfd_node *dev);
1291 struct kfd_node *dev);
1293 struct kfd_node *dev);
1295 struct kfd_node *dev);
[all …]
H A Dkfd_interrupt.c53 int kfd_interrupt_init(struct kfd_node *node) in kfd_interrupt_init()
87 void kfd_interrupt_exit(struct kfd_node *node) in kfd_interrupt_exit()
113 bool enqueue_ih_ring_entry(struct kfd_node *node, const void *ih_ring_entry) in enqueue_ih_ring_entry()
132 static bool dequeue_ih_ring_entry(struct kfd_node *node, void *ih_ring_entry) in dequeue_ih_ring_entry()
146 struct kfd_node *dev = container_of(work, struct kfd_node, in interrupt_wq()
169 bool interrupt_is_wanted(struct kfd_node *dev, in interrupt_is_wanted()
H A Dkfd_smi_events.c39 struct kfd_node *dev;
152 struct kfd_node *dev = client->dev; in kfd_smi_ev_release()
174 static void add_event_to_kfifo(pid_t pid, struct kfd_node *dev, in add_event_to_kfifo()
199 static void kfd_smi_event_add(pid_t pid, struct kfd_node *dev, in kfd_smi_event_add()
231 void kfd_smi_event_update_thermal_throttling(struct kfd_node *dev, in kfd_smi_event_update_thermal_throttling()
262 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_end()
282 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid, in kfd_smi_event_migration_end()
292 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid, in kfd_smi_event_queue_eviction()
300 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid) in kfd_smi_event_queue_restore()
327 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid, in kfd_smi_event_unmap_from_gpu()
[all …]
H A Dkfd_debug.h35 bool kfd_set_dbg_ev_from_interrupt(struct kfd_node *dev,
42 struct kfd_process *process, struct kfd_node *dev,
77 static inline bool kfd_dbg_is_per_vmid_supported(struct kfd_node *dev) in kfd_dbg_is_per_vmid_supported()
98 static inline bool kfd_dbg_is_rlc_restore_supported(struct kfd_node *dev) in kfd_dbg_is_rlc_restore_supported()
104 static inline bool kfd_dbg_has_cwsr_workaround(struct kfd_node *dev) in kfd_dbg_has_cwsr_workaround()
110 static inline bool kfd_dbg_has_gws_support(struct kfd_node *dev) in kfd_dbg_has_gws_support()
131 static inline bool kfd_dbg_has_ttmps_always_setup(struct kfd_node *dev) in kfd_dbg_has_ttmps_always_setup()
H A Dkfd_mqd_manager.h71 struct kfd_mem_obj* (*allocate_mqd)(struct kfd_node *kfd,
127 struct kfd_node *dev;
131 struct kfd_mem_obj *allocate_hiq_mqd(struct kfd_node *dev,
134 struct kfd_mem_obj *allocate_sdma_mqd(struct kfd_node *dev,
170 void kfd_get_hiq_xcc_mqd(struct kfd_node *dev,
173 uint64_t kfd_hiq_mqd_stride(struct kfd_node *dev);
H A Dkfd_device.c64 static int kfd_resume(struct kfd_node *kfd);
483 static int kfd_gws_init(struct kfd_node *node) in kfd_gws_init()
514 static void kfd_smi_init(struct kfd_node *dev) in kfd_smi_init()
520 static int kfd_init_node(struct kfd_node *node) in kfd_init_node()
570 struct kfd_node *knode; in kfd_cleanup_nodes()
624 struct kfd_node *node; in kgd2kfd_device_init()
867 struct kfd_node *node; in kgd2kfd_pre_reset()
896 struct kfd_node *node; in kgd2kfd_post_reset()
929 struct kfd_node *node; in kgd2kfd_suspend()
975 static int kfd_resume(struct kfd_node *node) in kfd_resume()
[all …]
H A Dkfd_topology.h87 struct kfd_node *gpu;
105 struct kfd_node *gpu;
125 struct kfd_node *gpu;
147 struct kfd_node *gpu;
H A Dkfd_svm.h51 struct kfd_node *node;
166 struct kfd_node *svm_range_get_node_by_id(struct svm_range *prange,
168 int svm_range_vram_node_new(struct kfd_node *node, struct svm_range *prange,
196 svm_range_get_pdd_by_node(struct svm_range *prange, struct kfd_node *node);
H A Dkfd_mqd_manager.c49 struct kfd_mem_obj *allocate_hiq_mqd(struct kfd_node *dev, struct queue_properties *q) in allocate_hiq_mqd()
64 struct kfd_mem_obj *allocate_sdma_mqd(struct kfd_node *dev, in allocate_sdma_mqd()
269 uint64_t kfd_hiq_mqd_stride(struct kfd_node *dev) in kfd_hiq_mqd_stride()
274 void kfd_get_hiq_xcc_mqd(struct kfd_node *dev, struct kfd_mem_obj *mqd_mem_obj, in kfd_get_hiq_xcc_mqd()
H A Dkfd_crat.h300 struct kfd_node;
312 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info);
318 int flags, struct kfd_node *kdev,
H A Dcik_event_interrupt.c29 static bool cik_event_interrupt_isr(struct kfd_node *dev, in cik_event_interrupt_isr()
88 static void cik_event_interrupt_wq(struct kfd_node *dev, in cik_event_interrupt_wq()
H A Dkfd_int_process_v9.c143 static void event_interrupt_poison_consumption_v9(struct kfd_node *dev, in event_interrupt_poison_consumption_v9()
213 static bool event_interrupt_isr_v9(struct kfd_node *dev, in event_interrupt_isr_v9()
310 static void event_interrupt_wq_v9(struct kfd_node *dev, in event_interrupt_wq_v9()
450 static bool event_interrupt_isr_v9_4_3(struct kfd_node *node, in event_interrupt_isr_v9_4_3()
H A Dkfd_process.c270 struct kfd_node *dev = NULL; in kfd_get_cu_occupancy()
692 struct kfd_node *dev = pdd->dev; in kfd_process_free_gpuvm()
714 struct kfd_node *kdev = pdd->dev; in kfd_process_alloc_gpuvm()
989 struct kfd_node *kdev; in kfd_process_kunmap_signal_bo()
1296 struct kfd_node *dev = p->pdds[i]->dev; in kfd_process_init_cwsr_apu()
1332 struct kfd_node *dev = pdd->dev; in kfd_process_device_init_cwsr_dgpu()
1368 struct kfd_node *dev = pdd->dev; in kfd_process_device_destroy_cwsr_dgpu()
1415 struct kfd_node *dev = p->pdds[i]->dev; in kfd_process_xnack_mode()
1648 struct kfd_node *dev; in kfd_process_device_init_vm()
1901 kfd_process_gpuid_from_node(struct kfd_process *p, struct kfd_node *node, in kfd_process_gpuid_from_node()
[all …]
H A Dkfd_int_process_v11.c191 static void event_interrupt_poison_consumption_v11(struct kfd_node *dev, in event_interrupt_poison_consumption_v11()
229 static bool event_interrupt_isr_v11(struct kfd_node *dev, in event_interrupt_isr_v11()
278 static void event_interrupt_wq_v11(struct kfd_node *dev, in event_interrupt_wq_v11()
H A Dkfd_int_process_v10.c132 static void event_interrupt_poison_consumption(struct kfd_node *dev, in event_interrupt_poison_consumption()
183 static bool event_interrupt_isr_v10(struct kfd_node *dev, in event_interrupt_isr_v10()
245 static void event_interrupt_wq_v10(struct kfd_node *dev, in event_interrupt_wq_v10()
H A Dkfd_kernel_queue.h56 struct kfd_node *dev;
H A Dkfd_kernel_queue.c41 static bool kq_initialize(struct kernel_queue *kq, struct kfd_node *dev, in kq_initialize()
323 struct kernel_queue *kernel_queue_init(struct kfd_node *dev, in kernel_queue_init()
348 static __attribute__((unused)) void test_kq(struct kfd_node *dev) in test_kq()
H A Dkfd_device_queue_manager.h211 struct kfd_node *dev);
232 struct kfd_node *dev;
H A Dkfd_debugfs.c46 struct kfd_node *dev; in kfd_debugfs_hang_hws_write()
H A Dkfd_process_queue_manager.c84 struct kfd_node *dev = pdd->dev; in kfd_process_dequeue_from_device()
98 struct kfd_node *dev = NULL; in pqm_set_gws()
177 struct kfd_node *dev; in pqm_clean_queue_resource()
222 struct kfd_node *dev, struct queue **q, in init_user_queue()
269 struct kfd_node *dev, in pqm_create_queue()
447 struct kfd_node *dev; in pqm_destroy_queue()
H A Dkfd_crat.c1407 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info) in kfd_get_gpu_cache_info()
1790 struct kfd_node *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity()
1819 static void kfd_find_numa_node_in_srat(struct kfd_node *kdev) in kfd_find_numa_node_in_srat()
1917 struct kfd_node *kdev, in kfd_fill_gpu_direct_io_link_to_cpu()
1984 struct kfd_node *kdev, in kfd_fill_gpu_xgmi_link_to_gpu()
1985 struct kfd_node *peer_kdev, in kfd_fill_gpu_xgmi_link_to_gpu()
2036 size_t *size, struct kfd_node *kdev, in kfd_create_vcrat_image_gpu()
2210 int flags, struct kfd_node *kdev, in kfd_create_crat_image_virtual()
H A Dkfd_topology.c99 struct kfd_node *kfd_device_by_id(uint32_t gpu_id) in kfd_device_by_id()
110 struct kfd_node *kfd_device_by_pci_dev(const struct pci_dev *pdev) in kfd_device_by_pci_dev()
113 struct kfd_node *device = NULL; in kfd_device_by_pci_dev()
1093 static uint32_t kfd_generate_gpu_id(struct kfd_node *gpu) in kfd_generate_gpu_id()
1125 static struct kfd_topology_device *kfd_assign_gpu(struct kfd_node *gpu) in kfd_assign_gpu()
1605 struct kfd_node *knode) in fill_in_l2_l3_pcache()
1675 static void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct kfd_node *kdev) in kfd_fill_cache_non_crat_info()
1762 static int kfd_topology_add_device_locked(struct kfd_node *gpu, uint32_t gpu_id, in kfd_topology_add_device_locked()
1922 int kfd_topology_add_device(struct kfd_node *gpu) in kfd_topology_add_device()
2151 int kfd_topology_remove_device(struct kfd_node *gpu) in kfd_topology_remove_device()
[all …]
H A Dkfd_migrate.c290 svm_migrate_copy_to_vram(struct kfd_node *node, struct svm_range *prange, in svm_migrate_copy_to_vram()
394 svm_migrate_vma_to_vram(struct kfd_node *node, struct svm_range *prange, in svm_migrate_vma_to_vram()
497 struct kfd_node *node; in svm_migrate_ram_to_vram()
685 svm_migrate_vma_to_ram(struct kfd_node *node, struct svm_range *prange, in svm_migrate_vma_to_ram()
790 struct kfd_node *node; in svm_migrate_vram_to_ram()
H A Dkfd_flat_memory.c359 struct kfd_node *dev; in kfd_init_apertures()

12