/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_debugfs.c | 48 uint32_t gpu_id; in kfd_debugfs_hang_hws_write() local 60 if (kstrtoint(tmp, 10, &gpu_id)) { in kfd_debugfs_hang_hws_write() 64 dev = kfd_device_by_id(gpu_id); in kfd_debugfs_hang_hws_write() 69 pr_err("Cannot find device %d.\n", gpu_id); in kfd_debugfs_hang_hws_write()
|
D | kfd_chardev.c | 69 static inline struct kfd_process_device *kfd_lock_pdd_by_id(struct kfd_process *p, __u32 gpu_id) in kfd_lock_pdd_by_id() argument 74 pdd = kfd_process_device_data_by_id(p, gpu_id); in kfd_lock_pdd_by_id() 318 pr_debug("Looking for gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 322 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_create_queue() 324 pr_debug("Could not find gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 395 args->doorbell_offset |= KFD_MMAP_GPU_ID(args->gpu_id); in kfd_ioctl_create_queue() 590 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_set_memory_policy() 592 pr_debug("Could not find gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_set_memory_policy() 634 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_set_trap_handler() 687 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_get_clock_counters() [all …]
|
D | kfd_topology.c | 81 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id) in kfd_topology_device_by_id() argument 89 if (top_dev->gpu_id == gpu_id) { in kfd_topology_device_by_id() 99 struct kfd_node *kfd_device_by_id(uint32_t gpu_id) in kfd_device_by_id() argument 103 top_dev = kfd_topology_device_by_id(gpu_id); in kfd_device_by_id() 434 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show() 1159 static void kfd_notify_gpu_change(uint32_t gpu_id, int arrival) in kfd_notify_gpu_change() argument 1762 static int kfd_topology_add_device_locked(struct kfd_node *gpu, uint32_t gpu_id, in kfd_topology_add_device_locked() argument 1776 gpu_id); in kfd_topology_add_device_locked() 1788 gpu_id); in kfd_topology_add_device_locked() 1815 gpu_id, res); in kfd_topology_add_device_locked() [all …]
|
D | kfd_priv.h | 77 #define KFD_MMAP_GPU_ID(gpu_id) ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT)\ argument 709 #define MAKE_HANDLE(gpu_id, idr_handle) \ argument 710 (((uint64_t)(gpu_id) << 32) + idr_handle) 1019 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id); 1038 uint32_t gpu_id); 1117 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id); 1118 struct kfd_node *kfd_device_by_id(uint32_t gpu_id); 1227 uint32_t gpu_id; member
|
D | kfd_events.c | 1186 memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_vm_fault_event() 1256 ev->hw_exception_data.gpu_id = user_gpu_id; in kfd_signal_reset_event() 1264 ev->memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_reset_event() 1294 hw_exception_data.gpu_id = user_gpu_id; in kfd_signal_poison_consumed_event() 1300 memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_poison_consumed_event()
|
D | kfd_debug.c | 33 unsigned int *gpu_id, in kfd_dbg_ev_query_debug_event() argument 47 *gpu_id = 0; in kfd_dbg_ev_query_debug_event() 64 *gpu_id = pqn->q->device->id; in kfd_dbg_ev_query_debug_event() 79 *gpu_id = pdd->dev->id; in kfd_dbg_ev_query_debug_event() 1043 device_info.gpu_id = pdd->dev->id; in kfd_dbg_trap_device_snapshot()
|
D | kfd_debug.h | 32 unsigned int *gpu_id,
|
D | kfd_topology.h | 139 uint32_t gpu_id; member
|
D | kfd_svm.h | 167 uint32_t gpu_id);
|
D | kfd_process.c | 1890 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id) in kfd_process_gpuidx_from_gpuid() argument 1895 if (p->pdds[i] && gpu_id == p->pdds[i]->user_gpu_id) in kfd_process_gpuidx_from_gpuid() 2218 struct kfd_process_device *kfd_process_device_data_by_id(struct kfd_process *p, uint32_t gpu_id) in kfd_process_device_data_by_id() argument 2222 if (gpu_id) { in kfd_process_device_data_by_id() 2226 if (pdd->user_gpu_id == gpu_id) in kfd_process_device_data_by_id()
|
D | kfd_process_queue_manager.c | 750 q_data->gpu_id = pdd->user_gpu_id; in criu_checkpoint_queue() 783 pr_debug("Dumping Queue: gpu_id:%x queue_id:%u\n", q_data->gpu_id, q_data->q_id); in criu_checkpoint_queue() 947 pdd = kfd_process_device_data_by_id(p, q_data->gpu_id); in kfd_criu_restore_queue()
|
D | kfd_int_process_v10.c | 385 exception_data.gpu_id = dev->id; in event_interrupt_wq_v10()
|
D | kfd_int_process_v11.c | 309 exception_data.gpu_id = dev->id; in event_interrupt_wq_v11()
|
D | kfd_int_process_v9.c | 431 exception_data.gpu_id = dev->id; in event_interrupt_wq_v9()
|
D | kfd_svm.c | 638 svm_range_get_node_by_id(struct svm_range *prange, uint32_t gpu_id) in svm_range_get_node_by_id() argument 644 pdd = kfd_process_device_data_by_id(p, gpu_id); in svm_range_get_node_by_id() 646 pr_debug("failed to get kfd process device by id 0x%x\n", gpu_id); in svm_range_get_node_by_id()
|
D | kfd_device_queue_manager.c | 3077 qss_entry->gpu_id = q->device->id; in set_queue_snapshot_entry()
|
/drivers/gpu/drm/radeon/ |
D | radeon_atpx_handler.c | 435 u16 gpu_id; in radeon_atpx_switchto() local 438 gpu_id = ATPX_INTEGRATED_GPU; in radeon_atpx_switchto() 440 gpu_id = ATPX_DISCRETE_GPU; in radeon_atpx_switchto() 442 radeon_atpx_switch_start(&radeon_atpx_priv.atpx, gpu_id); in radeon_atpx_switchto() 443 radeon_atpx_switch_disp_mux(&radeon_atpx_priv.atpx, gpu_id); in radeon_atpx_switchto() 444 radeon_atpx_switch_i2c_mux(&radeon_atpx_priv.atpx, gpu_id); in radeon_atpx_switchto() 445 radeon_atpx_switch_end(&radeon_atpx_priv.atpx, gpu_id); in radeon_atpx_switchto()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_atpx_handler.c | 470 u16 gpu_id; in amdgpu_atpx_switchto() local 473 gpu_id = ATPX_INTEGRATED_GPU; in amdgpu_atpx_switchto() 475 gpu_id = ATPX_DISCRETE_GPU; in amdgpu_atpx_switchto() 477 amdgpu_atpx_switch_start(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 478 amdgpu_atpx_switch_disp_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 479 amdgpu_atpx_switch_i2c_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 480 amdgpu_atpx_switch_end(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto()
|
D | amdgpu_ras.c | 3052 uint32_t gpu_id = 0; in amdgpu_bad_page_notifier() local 3073 gpu_id = GET_MCA_IPID_GPUID(m->ipid) - GPU_ID_OFFSET; in amdgpu_bad_page_notifier() 3075 adev = find_adev(gpu_id); in amdgpu_bad_page_notifier() 3078 gpu_id); in amdgpu_bad_page_notifier()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 224 u32 gpu_id, num_js, major, minor, status, rev; in panfrost_gpu_init_features() local 267 gpu_id = gpu_read(pfdev, GPU_ID); in panfrost_gpu_init_features() 268 pfdev->features.revision = gpu_id & 0xffff; in panfrost_gpu_init_features() 269 pfdev->features.id = gpu_id >> 16; in panfrost_gpu_init_features() 282 gpu_id = pfdev->features.id; in panfrost_gpu_init_features() 311 name, gpu_id, major, minor, status); in panfrost_gpu_init_features()
|
D | panfrost_dump.c | 183 iter.hdr->reghdr.gpu_id = pfdev->features.id; in panfrost_core_dump()
|
/drivers/gpu/drm/msm/ |
D | msm_rd.c | 177 uint32_t gpu_id; in rd_open() local 203 gpu_id = val; in rd_open() 205 rd_write_section(rd, RD_GPU_ID, &gpu_id, sizeof(gpu_id)); in rd_open()
|