
Lang YuandGreg Kroah-Hartman
3194771798
drm/amdkfd: handle duplicate BOs in reserve_bo_and_cond_vms
commit 2a705f3e49 upstream.
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>
Cc: stable@vger.kernel.org # 6.6.x only
Signed-off-by: Tomáš Trnka <trnka@scm.com>
[TT: trivially adjusted for 6.6 which does not have commit 05d249352f
(third argument to drm_exec_init removed)]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:47:44 +02:00
..
2024-02-05 20:14:30 +00:00
2023-08-15 18:07:42 -04:00
2023-08-15 18:08:27 -04:00
2023-07-12 10:58:01 -04:00
2024-02-05 20:14:30 +00:00
2023-07-12 10:58:01 -04:00
2023-09-11 18:15:43 -04:00
2023-09-11 18:15:43 -04:00
2023-09-11 18:15:43 -04:00
2023-09-11 18:15:43 -04:00
2023-07-27 14:59:29 -04:00
2024-06-16 13:47:44 +02:00
2023-09-11 18:16:31 -04:00
2023-08-11 14:47:25 -04:00
2023-09-20 17:26:15 -04:00
2023-08-09 09:43:40 -04:00
2024-06-16 13:47:37 +02:00
2023-08-07 17:13:10 -04:00
2023-11-28 17:20:17 +00:00
2023-11-28 17:20:17 +00:00
2023-07-12 14:14:50 +02:00
2023-08-07 17:12:49 -04:00
2024-05-02 16:32:41 +02:00
2023-07-12 14:14:50 +02:00
2023-07-12 14:14:36 +02:00
2023-10-21 20:27:15 -04:00
2024-01-25 15:35:36 -08:00
2024-04-13 13:07:41 +02:00
2024-03-26 18:19:45 -04:00
2023-12-08 08:52:17 +01:00
2023-10-19 18:56:57 -04:00
2023-12-13 18:45:11 +01:00
2023-12-13 18:45:11 +01:00
2024-04-10 16:35:55 +02:00
2023-07-27 14:59:29 -04:00
2024-05-02 16:32:41 +02:00
2023-08-16 11:34:57 -04:00
2023-10-04 22:43:26 -04:00
2023-08-09 09:45:55 -04:00
2023-07-25 13:36:08 -04:00
2024-01-01 12:42:25 +00:00
2024-02-23 09:25:01 +01:00
2023-09-11 18:16:31 -04:00
2024-02-05 20:14:33 +00:00
2024-04-03 15:29:04 +02:00
2023-07-25 13:47:26 -04:00
2023-07-12 10:57:25 -04:00
2023-11-20 11:59:10 +01:00
2023-07-12 10:57:25 -04:00
2024-05-17 12:02:16 +02:00
2024-01-25 15:35:58 -08:00
2024-06-12 11:11:23 +02:00
2024-02-05 20:14:28 +00:00
2023-08-09 09:46:05 -04:00
2023-08-09 09:46:05 -04:00
2024-06-12 11:11:23 +02:00
2024-05-17 12:02:27 +02:00
2023-08-09 18:08:51 -04:00
2024-03-01 13:34:56 +01:00
2023-08-31 17:58:58 -04:00
2023-08-31 17:58:58 -04:00
2023-12-08 08:52:17 +01:00
2024-05-25 16:22:54 +02:00
2023-08-07 17:14:06 -04:00
2023-07-27 14:59:29 -04:00
2023-08-15 17:44:02 -04:00
2023-07-27 15:04:19 -04:00
2024-04-03 15:28:57 +02:00
2023-08-09 09:43:45 -04:00
2023-07-18 11:16:41 -04:00
2023-09-01 15:12:07 +02:00
2023-07-25 13:47:26 -04:00
2024-02-05 20:14:30 +00:00
2023-08-09 09:43:43 -04:00
2024-05-17 12:02:27 +02:00
2024-05-02 16:32:41 +02:00
2024-02-05 20:14:30 +00:00
2023-11-28 17:19:39 +00:00
2023-07-25 13:39:21 -04:00
2023-08-09 09:43:47 -04:00
2023-07-25 13:35:23 -04:00
2023-11-28 17:19:41 +00:00
2023-12-20 17:02:04 +01:00
2024-04-27 17:11:42 +02:00
2023-08-04 11:10:18 +02:00
2023-08-16 11:34:11 -04:00
2023-07-18 11:19:02 -04:00
2023-07-25 13:47:26 -04:00
2024-04-10 16:35:55 +02:00
2024-05-17 12:02:16 +02:00
2024-03-26 18:19:53 -04:00
2023-08-15 18:07:42 -04:00
2024-02-23 09:25:02 +01:00
2023-08-21 14:11:35 -05:00
2024-02-23 09:25:02 +01:00
2023-08-09 09:43:36 -04:00
2023-08-09 09:43:30 -04:00
2023-09-11 18:16:31 -04:00
2023-09-11 18:16:31 -04:00
2023-12-08 08:52:17 +01:00
2024-06-12 11:11:23 +02:00
2024-06-12 11:12:41 +02:00
2024-06-12 11:11:23 +02:00
2024-06-12 11:11:23 +02:00
2024-02-05 20:14:30 +00:00
2024-02-05 20:14:30 +00:00
2023-07-10 09:02:36 -04:00
2023-07-10 09:02:36 -04:00
2023-07-10 09:02:37 -04:00
2023-07-10 09:02:37 -04:00
2024-02-05 20:14:39 +00:00
2024-02-05 20:14:39 +00:00
2024-02-05 20:14:39 +00:00
2024-02-05 20:14:39 +00:00
2024-02-05 20:14:30 +00:00
2024-02-05 20:14:30 +00:00
2024-02-23 09:25:02 +01:00
2024-02-23 09:25:02 +01:00
2024-02-23 09:25:02 +01:00
2023-08-07 16:35:38 -04:00
2023-08-09 09:43:28 -04:00
2023-08-09 09:39:56 -04:00
2023-08-31 17:54:18 -04:00
2023-08-09 09:39:56 -04:00
2023-07-12 14:14:26 +02:00
2023-08-07 16:35:38 -04:00
2023-07-25 13:47:26 -04:00
2023-08-09 09:43:42 -04:00
2024-02-05 20:14:30 +00:00
2023-12-13 18:45:00 +01:00
2023-08-07 17:12:49 -04:00
2023-08-09 09:43:22 -04:00
2023-08-15 18:08:27 -04:00
2023-08-09 09:43:32 -04:00
2023-08-09 09:43:51 -04:00
2024-02-23 09:25:02 +01:00
2023-11-28 17:20:17 +00:00
2023-09-11 18:19:48 -04:00
2024-03-01 13:34:56 +01:00
2023-08-09 09:46:04 -04:00
2023-08-09 09:43:49 -04:00
2023-12-13 18:45:36 +01:00
2024-06-16 13:47:32 +02:00
2024-05-17 12:02:16 +02:00
2023-07-25 13:47:26 -04:00
2024-05-02 16:32:45 +02:00
2023-08-07 16:32:46 -04:00
2024-02-23 09:25:02 +01:00
2023-08-21 14:11:35 -05:00
2023-07-18 11:16:41 -04:00
2024-03-26 18:19:14 -04:00
2024-04-17 11:19:37 +02:00
2024-02-23 09:25:02 +01:00
2023-08-09 09:43:52 -04:00
2023-08-09 09:43:26 -04:00
2023-08-09 09:43:15 -04:00
2023-08-09 09:43:34 -04:00
2023-07-12 11:12:09 -04:00
2023-07-12 11:12:09 -04:00
2023-08-09 09:44:00 -04:00
2023-08-16 11:33:59 -04:00
2023-08-09 09:43:54 -04:00
2024-02-23 09:25:02 +01:00
2024-02-23 09:25:02 +01:00
2023-10-25 09:53:17 -04:00