Lang Yu
2a705f3e49
drm/amdkfd: handle duplicate BOs in reserve_bo_and_cond_vms
Observed on gfx8 ASIC where KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM is used.
Two attachments use the same VM, root PD would be locked twice.
[ 57.910418] Call Trace:
[ 57.793726] ? reserve_bo_and_cond_vms+0x111/0x1c0 [amdgpu]
[ 57.793820] amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu+0x6c/0x1c0 [amdgpu]
[ 57.793923] ? idr_get_next_ul+0xbe/0x100
[ 57.793933] kfd_process_device_free_bos+0x7e/0xf0 [amdgpu]
[ 57.794041] kfd_process_wq_release+0x2ae/0x3c0 [amdgpu]
[ 57.794141] ? process_scheduled_works+0x29c/0x580
[ 57.794147] process_scheduled_works+0x303/0x580
[ 57.794157] ? __pfx_worker_thread+0x10/0x10
[ 57.794160] worker_thread+0x1a2/0x370
[ 57.794165] ? __pfx_worker_thread+0x10/0x10
[ 57.794167] kthread+0x11b/0x150
[ 57.794172] ? __pfx_kthread+0x10/0x10
[ 57.794177] ret_from_fork+0x3d/0x60
[ 57.794181] ? __pfx_kthread+0x10/0x10
[ 57.794184] ret_from_fork_asm+0x1b/0x30
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-05-20 17:17:53 -04:00
..
2024-04-25 17:05:48 +03:00
2024-04-11 14:32:53 +02:00
2024-04-25 19:25:54 +02:00
2024-04-11 15:19:12 +02:00
2024-04-13 10:42:28 +09:00
2024-04-24 10:51:29 +10:00
2024-04-24 16:26:22 -04:00
2024-04-17 13:53:18 +02:00
2024-04-10 20:50:26 -07:00
2024-04-11 15:16:23 +02:00
2024-04-22 08:58:59 -07:00
2024-04-07 17:56:06 +05:30
2024-04-15 13:56:32 -03:00
2024-04-25 08:32:09 -07:00
2024-04-06 09:36:46 +09:00
2024-04-26 18:08:02 +02:00
2024-04-25 14:35:55 +02:00
2024-05-20 17:17:53 -04:00
2024-04-12 17:48:53 +02:00
2024-04-11 16:23:56 -07:00
2024-04-27 12:57:57 +02:00
2024-04-08 13:33:10 +03:00
2024-04-11 14:44:49 +02:00
2024-04-19 14:02:21 -07:00
2024-04-25 14:30:46 +02:00
2024-04-09 17:01:01 -07:00
2024-04-26 11:17:24 -07:00
2024-04-26 07:59:20 +02:00
2024-04-26 13:17:33 -07:00
2024-04-26 13:05:34 -07:00
2024-04-25 08:34:18 -07:00
2024-04-22 14:19:58 -07:00
2024-04-04 08:47:56 -07:00
2024-05-10 10:22:59 +10:00
2024-04-18 07:15:33 -07:00
2024-04-15 17:28:13 +02:00
2024-04-19 09:59:15 -07:00
2024-04-08 21:40:29 -04:00
2024-04-23 12:09:12 +02:00
2024-04-05 21:37:54 -04:00
2024-04-19 15:08:19 +02:00
2024-04-10 10:49:58 +03:00
2024-04-17 13:26:45 +02:00
2024-04-08 15:06:56 -04:00
2024-04-11 16:23:56 -07:00
2024-04-19 16:07:18 +02:00
2024-04-22 17:07:13 -04:00
2024-04-08 04:11:04 -04:00
2024-04-29 20:22:39 +02:00
2024-04-18 14:47:23 +02:00
2024-04-08 04:11:04 -04:00