/linux-6.1.9/include/uapi/linux/ |
D | kfd_ioctl.h | 65 __u32 gpu_id; /* to KFD */ member 108 __u32 gpu_id; /* to KFD */ member 120 __u32 gpu_id; /* to KFD */ member 139 __u32 gpu_id; /* to KFD */ member 150 __u32 gpu_id; /* from KFD */ member 187 __u32 gpu_id; /* to KFD */ member 192 __u32 gpu_id; /* to KFD */ member 198 __u32 gpu_id; /* to KFD */ member 204 __u32 gpu_id; /* to KFD */ member 278 __u32 gpu_id; member [all …]
|
/linux-6.1.9/include/trace/events/ |
D | gpu_mem.h | 32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size), 34 TP_ARGS(gpu_id, pid, size), 37 __field(uint32_t, gpu_id) 43 __entry->gpu_id = gpu_id; 49 __entry->gpu_id,
|
/linux-6.1.9/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_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_dev *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() 452 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show() 1229 static void kfd_notify_gpu_change(uint32_t gpu_id, int arrival) in kfd_notify_gpu_change() argument 1598 uint32_t gpu_id; in kfd_topology_add_device() local 1611 gpu_id = kfd_generate_gpu_id(gpu); in kfd_topology_add_device() 1612 pr_debug("Adding new GPU (ID: 0x%x) to topology\n", gpu_id); in kfd_topology_add_device() 1630 gpu_id); in kfd_topology_add_device() [all …]
|
D | kfd_chardev.c | 68 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 73 pdd = kfd_process_device_data_by_id(p, gpu_id); in kfd_lock_pdd_by_id() 312 pr_debug("Looking for gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 316 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_create_queue() 318 pr_debug("Could not find gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 387 args->doorbell_offset |= KFD_MMAP_GPU_ID(args->gpu_id); in kfd_ioctl_create_queue() 577 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_set_memory_policy() 579 pr_debug("Could not find gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_set_memory_policy() 621 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_set_trap_handler() 674 pdd = kfd_process_device_data_by_id(p, args->gpu_id); in kfd_ioctl_get_clock_counters() [all …]
|
D | kfd_priv.h | 77 #define KFD_MMAP_GPU_ID(gpu_id) ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT)\ argument 676 #define MAKE_HANDLE(gpu_id, idr_handle) \ argument 677 (((uint64_t)(gpu_id) << 32) + idr_handle) 936 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id); 956 uint32_t gpu_id); 1035 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id); 1036 struct kfd_dev *kfd_device_by_id(uint32_t gpu_id); 1115 uint32_t gpu_id; member
|
D | kfd_events.c | 1169 memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_iommu_event() 1246 memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_vm_fault_event() 1312 ev->hw_exception_data.gpu_id = user_gpu_id; in kfd_signal_reset_event() 1320 ev->memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_reset_event() 1350 hw_exception_data.gpu_id = user_gpu_id; in kfd_signal_poison_consumed_event() 1356 memory_exception_data.gpu_id = user_gpu_id; in kfd_signal_poison_consumed_event()
|
D | kfd_topology.h | 127 uint32_t gpu_id; member
|
D | kfd_process_queue_manager.c | 657 q_data->gpu_id = pdd->user_gpu_id; in criu_checkpoint_queue() 690 pr_debug("Dumping Queue: gpu_id:%x queue_id:%u\n", q_data->gpu_id, q_data->q_id); in criu_checkpoint_queue() 854 pdd = kfd_process_device_data_by_id(p, q_data->gpu_id); in kfd_criu_restore_queue()
|
D | kfd_process.c | 1816 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id) in kfd_process_gpuidx_from_gpuid() argument 1821 if (p->pdds[i] && gpu_id == p->pdds[i]->user_gpu_id) in kfd_process_gpuidx_from_gpuid() 2016 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 2020 if (gpu_id) { in kfd_process_device_data_by_id() 2024 if (pdd->user_gpu_id == gpu_id) in kfd_process_device_data_by_id()
|
D | kfd_int_process_v11.c | 308 exception_data.gpu_id = dev->id; in event_interrupt_wq_v11()
|
D | kfd_svm.c | 620 svm_range_get_adev_by_id(struct svm_range *prange, uint32_t gpu_id) in svm_range_get_adev_by_id() argument 628 gpu_idx = kfd_process_gpuidx_from_gpuid(p, gpu_id); in svm_range_get_adev_by_id() 630 pr_debug("failed to get device by id 0x%x\n", gpu_id); in svm_range_get_adev_by_id()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_atpx_handler.c | 465 u16 gpu_id; in amdgpu_atpx_switchto() local 468 gpu_id = ATPX_INTEGRATED_GPU; in amdgpu_atpx_switchto() 470 gpu_id = ATPX_DISCRETE_GPU; in amdgpu_atpx_switchto() 472 amdgpu_atpx_switch_start(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 473 amdgpu_atpx_switch_disp_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 474 amdgpu_atpx_switch_i2c_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 475 amdgpu_atpx_switch_end(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto()
|
D | amdgpu_ras.c | 2849 uint32_t gpu_id = 0; in amdgpu_bad_page_notifier() local 2871 gpu_id = GET_MCA_IPID_GPUID(m->ipid) - GPU_ID_OFFSET; in amdgpu_bad_page_notifier() 2873 adev = find_adev(gpu_id); in amdgpu_bad_page_notifier() 2876 gpu_id); in amdgpu_bad_page_notifier()
|
/linux-6.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 211 u32 gpu_id, num_js, major, minor, status, rev; in panfrost_gpu_init_features() local 254 gpu_id = gpu_read(pfdev, GPU_ID); in panfrost_gpu_init_features() 255 pfdev->features.revision = gpu_id & 0xffff; in panfrost_gpu_init_features() 256 pfdev->features.id = gpu_id >> 16; in panfrost_gpu_init_features() 269 gpu_id = pfdev->features.id; in panfrost_gpu_init_features() 298 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()
|
/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_rd.c | 182 uint32_t gpu_id; in rd_open() local 208 gpu_id = val; in rd_open() 210 rd_write_section(rd, RD_GPU_ID, &gpu_id, sizeof(gpu_id)); in rd_open()
|
/linux-6.1.9/include/uapi/drm/ |
D | panfrost_drm.h | 251 __u32 gpu_id; member
|