-
- Downloads
drm/amdkfd: Have kfd driver use same PASID values from graphic driver
Current kfd driver has its own PASID value for a kfd process and uses it to locate vm at interrupt handler or mapping between kfd process and vm. That design is not working when a physical gpu device has multiple spatial partitions, ex: adev in CPX mode. This patch has kfd driver use same pasid values that graphic driver generated which is per vm per pasid. These pasid values are passed to fw/hardware. We do not need change interrupt handler though more pasid values are used. Also, pasid values at log are replaced by user process pid; pasid values are not exposed to user. Users see their process pids that have meaning in user space. Signed-off-by:Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by:
Felix Kuehling <felix.kuehling@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h 1 addition, 2 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 0 additions, 21 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
- drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c 14 additions, 4 deletionsdrivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c
- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 13 additions, 12 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c
- drivers/gpu/drm/amd/amdkfd/kfd_debug.c 7 additions, 7 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_debug.c
- drivers/gpu/drm/amd/amdkfd/kfd_device.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_device.c
- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 42 additions, 43 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_events.c 24 additions, 19 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_events.c
- drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c
- drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c 2 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c 2 additions, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
- drivers/gpu/drm/amd/amdkfd/kfd_priv.h 6 additions, 5 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_priv.h
- drivers/gpu/drm/amd/amdkfd/kfd_process.c 66 additions, 49 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_process.c
- drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 5 additions, 5 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c 11 additions, 8 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_svm.c
Loading