linux/drivers/gpu/drm/amd/amdkfd
Sunil Khatri c0de552910 drm/amdkfd: clean up the code to free hmm_range
a. hmm_range is either NULL or a valid pointer so we
do not need to set range to NULL ever.

b. keep the hmm_range_free in the end irrespective of
the other conditions to avoid some additional checks
and also avoid double free issue.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-11-04 11:33:53 -05:00
..
cik_event_interrupt.c drm/amdkfd: Identical code for different branches 2025-05-29 10:56:54 -04:00
cik_int.h
cik_regs.h
cwsr_trap_handler_gfx8.asm
cwsr_trap_handler_gfx9.asm drm/amdkfd: Clear MODE.VSKIP in gfx9 trap handler 2025-01-24 09:53:05 -05:00
cwsr_trap_handler_gfx10.asm drm/amdkfd: Move gfx12 trap handler to separate file 2025-01-09 16:02:56 -05:00
cwsr_trap_handler_gfx12.asm drm/amdkfd: Fix instruction hazard in gfx12 trap handler 2025-03-13 23:12:28 -04:00
cwsr_trap_handler.h drm/amdkfd: Fix instruction hazard in gfx12 trap handler 2025-03-13 23:12:28 -04:00
Kconfig drm/amdkfd: enable kfd on LoongArch systems 2025-07-15 14:07:50 -04:00
kfd_chardev.c drm/amdkfd: Replace kzalloc + copy_from_user with memdup_user 2025-09-15 16:51:48 -04:00
kfd_crat.c drm/amdgpu: simplify xgmi peer info calls 2025-02-25 11:45:12 -05:00
kfd_crat.h drm/amdkfd: Reconcile the definition and use of oem_id in struct kfd_topology_device 2024-05-08 18:46:26 -04:00
kfd_debug.c drm/amdkfd: delete stray tab in kfd_dbg_set_mes_debug_mode() 2025-03-11 12:36:38 -04:00
kfd_debug.h drm/amdkfd: add gc 9.5.0 support on kfd 2024-12-10 10:26:51 -05:00
kfd_debugfs.c drm/amdkfd: add pasid debugfs entries 2025-04-30 18:06:14 -04:00
kfd_device_queue_manager_cik.c drm/amdkfd: Add support for more per-process flag 2025-03-07 15:33:49 -05:00
kfd_device_queue_manager_v9.c drm/amdkfd: Correct F8_MODE for gfx950 2025-03-13 23:13:12 -04:00
kfd_device_queue_manager_v10.c drm/amdkfd: Add support for more per-process flag 2025-03-07 15:33:49 -05:00
kfd_device_queue_manager_v11.c drm/amdkfd: Add support for more per-process flag 2025-03-07 15:33:49 -05:00
kfd_device_queue_manager_v12.c drm/amdkfd: Add support for more per-process flag 2025-03-07 15:33:49 -05:00
kfd_device_queue_manager_vi.c drm/amdkfd: Add support for more per-process flag 2025-03-07 15:33:49 -05:00
kfd_device_queue_manager.c drm/amdkfd: Fix Unchecked Return Value 2025-10-28 10:10:23 -04:00
kfd_device_queue_manager.h drm/amdkfd: Add pm_config_dequeue_wait_counts API 2025-03-10 13:23:12 -04:00
kfd_device.c amd/amdkfd: enhance kfd process check in switch partition 2025-09-25 15:53:08 -04:00
kfd_doorbell.c drm/amdkfd: get doorbell's absolute offset based on the db_size 2023-10-09 17:02:34 -04:00
kfd_events.c drm: amdgpu: Use struct drm_wedge_task_info inside of struct amdgpu_task_info 2025-06-17 11:32:47 -03:00
kfd_events.h drm/amdkfd: add event_age tracking when receiving interrupt 2023-06-15 11:37:55 -04:00
kfd_flat_memory.c drm/amd: Do not include <linux/export.h> when unused 2025-06-30 11:53:45 -04:00
kfd_int_process_v9.c drm/amdgpu: Add poison consumption sequence numbers for gfx and sdma 2025-10-20 18:18:47 -04:00
kfd_int_process_v10.c drm/amdkfd: drop warning in event_interrupt_isr_v1*() 2025-05-13 09:34:09 -04:00
kfd_int_process_v11.c drm/amdkfd: drop warning in event_interrupt_isr_v1*() 2025-05-13 09:34:09 -04:00
kfd_interrupt.c drm/amdgpu: Show warning message if IH ring overflow 2024-12-18 12:39:07 -05:00
kfd_kernel_queue.c drm/amdkfd: Allow device error to be logged 2025-08-27 13:57:48 -04:00
kfd_kernel_queue.h drm/amdkfd: Skip packet submission on fatal error 2024-02-26 11:14:31 -05:00
kfd_migrate.c drm/amdgpu: update the functions to use amdgpu version of hmm 2025-10-13 14:14:36 -04:00
kfd_migrate.h drm/amdgpu: update the functions to use amdgpu version of hmm 2025-10-13 14:14:36 -04:00
kfd_module.c drm/amdkfd: Destroy KFD debugfs after destroy KFD wq 2025-08-06 16:52:08 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: Check preemption status on all XCDs 2024-03-20 13:38:12 -04:00
kfd_mqd_manager_v9.c drm/amdkfd: Fix checkpoint-restore on multi-xcc 2025-08-04 15:38:49 -04:00
kfd_mqd_manager_v10.c drm/amdkfd: Preserve cp_hqd_pq_control on update_mqd 2025-02-25 11:43:58 -05:00
kfd_mqd_manager_v11.c drm/amdkfd: Preserve cp_hqd_pq_control on update_mqd 2025-02-25 11:43:58 -05:00
kfd_mqd_manager_v12.c drm/amdkfd: Preserve cp_hqd_pq_control on update_mqd 2025-02-25 11:43:58 -05:00
kfd_mqd_manager_vi.c drm/amdkfd: Check preemption status on all XCDs 2024-03-20 13:38:12 -04:00
kfd_mqd_manager.c drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer 2024-07-23 17:34:44 -04:00
kfd_mqd_manager.h drm/amdkfd: Check preemption status on all XCDs 2024-03-20 13:38:12 -04:00
kfd_packet_manager_v9.c drm/amdkfd: Fix race in GWS queue scheduling 2025-06-18 12:19:22 -04:00
kfd_packet_manager_vi.c drm/amdkfd: Add pm_config_dequeue_wait_counts API 2025-03-10 13:23:12 -04:00
kfd_packet_manager.c drm/amdkfd: Support chain runlists of XNACK+/XNACK- 2025-05-16 13:37:29 -04:00
kfd_pm4_headers_ai.h drm/amdkfd: Support chain runlists of XNACK+/XNACK- 2025-05-16 13:37:29 -04:00
kfd_pm4_headers_aldebaran.h drm/amdkfd: Enable processes isolation on gfx9 2024-08-20 22:08:07 -04:00
kfd_pm4_headers_vi.h drm/amdkfd: Fix leftover errors and warnings 2022-02-14 15:08:40 -05:00
kfd_pm4_headers.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_opcodes.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_priv.h amd/amdkfd: enhance kfd process check in switch partition 2025-09-25 15:53:08 -04:00
kfd_process_queue_manager.c drm/amdkfd: Fix checkpoint-restore on multi-xcc 2025-08-04 15:38:49 -04:00
kfd_process.c drm/amd: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-28 11:31:45 -04:00
kfd_queue.c drm/amdkfd: Drop workaround for GC v9.4.3 revID 0 2025-04-07 15:18:59 -04:00
kfd_smi_events.c drm: amdgpu: Use struct drm_wedge_task_info inside of struct amdgpu_task_info 2025-06-17 11:32:47 -03:00
kfd_smi_events.h drm/amdkfd: add smi events for process start and end 2025-04-11 17:01:25 -04:00
kfd_svm.c drm/amdkfd: clean up the code to free hmm_range 2025-11-04 11:33:53 -05:00
kfd_svm.h drm/amdgpu: update the functions to use amdgpu version of hmm 2025-10-13 14:14:36 -04:00
kfd_topology.c drm/amdkfd: fix p2p links bug in topology 2025-09-05 16:06:43 -04:00
kfd_topology.h drm/amdkfd: flag per-sdma queue reset supported to user space 2025-03-05 10:47:33 -05:00
Makefile drm/amdkfd: remove kfd_pasid.c from amdgpu driver build 2025-02-27 16:50:04 -05:00
soc15_int.h drm/amdkfd: Check int source id for utcl2 poison event 2024-08-23 10:52:33 -04:00