linux-stable/drivers/gpu/drm/amd/amdkfd
David Belanger 22e3d9343b drm/amdkfd: Fixed kfd_process cleanup on module exit.
Handle case when module is unloaded (kfd_exit) before a process space
(mm_struct) is released.

v2: Fixed potential race conditions by removing all kfd_process from
the process table first, then working on releasing the resources.

v3: Fixed loop element access / synchronization.  Fixed extra empty lines.

Signed-off-by: David Belanger <david.belanger@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-03-15 18:45:26 -04:00
..
cik_event_interrupt.c
cik_int.h
cik_regs.h
cwsr_trap_handler.h drm/amdkfd: update GFX11 CWSR trap handler 2022-11-04 16:05:52 -04:00
cwsr_trap_handler_gfx8.asm
cwsr_trap_handler_gfx9.asm drm/amdkfd: port cwsr trap handler from dkms branch 2022-05-26 14:56:32 -04:00
cwsr_trap_handler_gfx10.asm drm/amdkfd: update GFX11 CWSR trap handler 2022-11-04 16:05:52 -04:00
Kconfig drm/amdkfd: Define config HSA_AMD_P2P to support peer-to-peer 2022-06-08 11:40:12 -04:00
kfd_chardev.c drm/amdkfd: fix potential kgd_mem UAFs 2023-03-13 17:27:48 -04:00
kfd_crat.c drm/amdkfd: add GC 11.0.4 KFD support 2022-11-29 11:03:36 -05:00
kfd_crat.h drm/amdkfd: Fix the warning of array-index-out-of-bounds 2022-11-04 16:05:53 -04:00
kfd_debugfs.c drm/amdgpu: add debugfs for kfd system and ttm mem used 2022-07-28 16:05:16 -04:00
kfd_device.c drm/amdkfd: simplify cases 2023-01-05 11:41:57 -05:00
kfd_device_queue_manager.c drm/amdkfd: To fix sdma page fault issue for GC 11 2023-02-23 17:35:57 -05:00
kfd_device_queue_manager.h
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_v9.c drm/amdkfd: Support process XNACK mode dynamic change 2023-01-17 16:11:51 -05:00
kfd_device_queue_manager_v10.c
kfd_device_queue_manager_v11.c
kfd_device_queue_manager_vi.c
kfd_doorbell.c drm/amdgpu: fix return value check in kfd 2023-03-07 14:22:14 -05:00
kfd_events.c drm/amdkfd: Fix an illegal memory access 2023-02-23 17:35:58 -05:00
kfd_events.h
kfd_flat_memory.c
kfd_int_process_v9.c
kfd_int_process_v11.c drm/amdkfd: fix dropped interrupt in kfd_int_process_v11 2022-09-29 09:41:44 -04:00
kfd_interrupt.c drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b" 2022-07-29 15:17:31 -04:00
kfd_iommu.c drm/amdkfd: Cleanup kfd_dev struct 2022-10-27 15:12:09 -04:00
kfd_iommu.h
kfd_kernel_queue.c
kfd_kernel_queue.h
kfd_migrate.c drm/amdkfd: Get prange->offset after svm_range_vram_node_new 2023-03-13 17:27:47 -04:00
kfd_migrate.h mm/memory.c: fix race when faulting a device private page 2022-10-12 18:51:49 -07:00
kfd_module.c drm/amdkfd: Fixed kfd_process cleanup on module exit. 2023-03-15 18:45:26 -04:00
kfd_mqd_manager.c drm/amdkfd: fix cu mask for asics with wgps 2022-06-30 15:28:03 -04:00
kfd_mqd_manager.h
kfd_mqd_manager_cik.c
kfd_mqd_manager_v9.c
kfd_mqd_manager_v10.c
kfd_mqd_manager_v11.c drm/amdkfd: To fix sdma page fault issue for GC 11 2023-02-23 17:35:57 -05:00
kfd_mqd_manager_vi.c
kfd_packet_manager.c
kfd_packet_manager_v9.c
kfd_packet_manager_vi.c
kfd_pasid.c
kfd_pm4_headers.h
kfd_pm4_headers_ai.h
kfd_pm4_headers_aldebaran.h
kfd_pm4_headers_vi.h
kfd_pm4_opcodes.h
kfd_priv.h drm/amdkfd: Fixed kfd_process cleanup on module exit. 2023-03-15 18:45:26 -04:00
kfd_process.c drm/amdkfd: Fixed kfd_process cleanup on module exit. 2023-03-15 18:45:26 -04:00
kfd_process_queue_manager.c drm/amdkfd: fix a potential double free in pqm_create_queue 2023-03-13 17:14:28 -04:00
kfd_queue.c
kfd_smi_events.c drm/amdkfd: Asynchronously free smi_client 2022-06-30 15:31:30 -04:00
kfd_smi_events.h drm/amdkfd: Add unmap from GPU SMI event 2022-06-30 15:31:21 -04:00
kfd_svm.c Merge tag 'amd-drm-next-6.3-2023-01-13' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2023-01-16 15:04:13 +10:00
kfd_svm.h drm/amdkfd: Track unified memory when switching xnack mode 2022-09-30 11:21:14 -04:00
kfd_topology.c drm/amdkfd: Make kobj_type structures constant 2023-02-23 17:35:59 -05:00
kfd_topology.h drm/amdkfd: Fix the warning of array-index-out-of-bounds 2022-11-04 16:05:53 -04:00
Makefile
soc15_int.h