/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_debugfs.c | 47 uint32_t gpu_id; in kfd_debugfs_hang_hws_write() local 59 if (kstrtoint(tmp, 10, &gpu_id)) { in kfd_debugfs_hang_hws_write() 63 dev = kfd_device_by_id(gpu_id); in kfd_debugfs_hang_hws_write() 68 pr_err("Cannot find device %d.\n", gpu_id); in kfd_debugfs_hang_hws_write()
|
D | kfd_chardev.c | 294 pr_debug("Looking for gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 295 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_create_queue() 297 pr_debug("Could not find gpu id 0x%x\n", args->gpu_id); in kfd_ioctl_create_queue() 323 args->doorbell_offset |= KFD_MMAP_GPU_ID(args->gpu_id); in kfd_ioctl_create_queue() 507 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_set_memory_policy() 548 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_set_trap_handler() 578 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_dbg_register() 629 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_dbg_unregister() 674 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_dbg_address_watch() 782 dev = kfd_device_by_id(args->gpu_id); in kfd_ioctl_dbg_wave_control() [all …]
|
D | kfd_topology.c | 69 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id) in kfd_topology_device_by_id() argument 77 if (top_dev->gpu_id == gpu_id) { in kfd_topology_device_by_id() 87 struct kfd_dev *kfd_device_by_id(uint32_t gpu_id) in kfd_device_by_id() argument 91 top_dev = kfd_topology_device_by_id(gpu_id); in kfd_device_by_id() 431 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show() 1167 static void kfd_notify_gpu_change(uint32_t gpu_id, int arrival) in kfd_notify_gpu_change() argument 1281 uint32_t gpu_id; in kfd_topology_add_device() local 1293 gpu_id = kfd_generate_gpu_id(gpu); in kfd_topology_add_device() 1295 pr_debug("Adding new GPU (ID: 0x%x) to topology\n", gpu_id); in kfd_topology_add_device() 1312 gpu_id); in kfd_topology_add_device() [all …]
|
D | kfd_priv.h | 75 #define KFD_MMAP_GPU_ID(gpu_id) ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT)\ argument 636 #define MAKE_HANDLE(gpu_id, idr_handle) \ argument 637 (((uint64_t)(gpu_id) << 32) + idr_handle) 878 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id); 969 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id); 970 struct kfd_dev *kfd_device_by_id(uint32_t gpu_id);
|
D | kfd_events.c | 906 memory_exception_data.gpu_id = dev->id; in kfd_signal_iommu_event() 984 memory_exception_data.gpu_id = dev->id; in kfd_signal_vm_fault_event() 1024 hw_exception_data.gpu_id = dev->id; in kfd_signal_reset_event() 1030 memory_exception_data.gpu_id = dev->id; in kfd_signal_reset_event() 1065 hw_exception_data.gpu_id = dev->id; in kfd_signal_poison_consumed_event() 1071 memory_exception_data.gpu_id = dev->id; in kfd_signal_poison_consumed_event()
|
D | kfd_topology.h | 169 uint32_t gpu_id; member
|
D | kfd_process.c | 1716 int kfd_process_gpuidx_from_gpuid(struct kfd_process *p, uint32_t gpu_id) in kfd_process_gpuidx_from_gpuid() argument 1721 if (p->pdds[i] && gpu_id == p->pdds[i]->dev->id) in kfd_process_gpuidx_from_gpuid()
|
D | kfd_svm.c | 560 svm_range_get_adev_by_id(struct svm_range *prange, uint32_t gpu_id) in svm_range_get_adev_by_id() argument 568 gpu_idx = kfd_process_gpuidx_from_gpuid(p, gpu_id); in svm_range_get_adev_by_id() 570 pr_debug("failed to get device by id 0x%x\n", gpu_id); in svm_range_get_adev_by_id()
|
/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 | 464 u16 gpu_id; in amdgpu_atpx_switchto() local 467 gpu_id = ATPX_INTEGRATED_GPU; in amdgpu_atpx_switchto() 469 gpu_id = ATPX_DISCRETE_GPU; in amdgpu_atpx_switchto() 471 amdgpu_atpx_switch_start(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 472 amdgpu_atpx_switch_disp_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 473 amdgpu_atpx_switch_i2c_mux(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto() 474 amdgpu_atpx_switch_end(&amdgpu_atpx_priv.atpx, gpu_id); in amdgpu_atpx_switchto()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 214 u32 gpu_id, num_js, major, minor, status, rev; in panfrost_gpu_init_features() local 257 gpu_id = gpu_read(pfdev, GPU_ID); in panfrost_gpu_init_features() 258 pfdev->features.revision = gpu_id & 0xffff; in panfrost_gpu_init_features() 259 pfdev->features.id = gpu_id >> 16; in panfrost_gpu_init_features() 272 gpu_id = pfdev->features.id; in panfrost_gpu_init_features() 301 name, gpu_id, major, minor, status); in panfrost_gpu_init_features()
|
/drivers/gpu/drm/msm/ |
D | msm_rd.c | 181 uint32_t gpu_id; in rd_open() local 204 gpu_id = val; in rd_open() 206 rd_write_section(rd, RD_GPU_ID, &gpu_id, sizeof(gpu_id)); in rd_open()
|