Yifan Zhang
c8b0507f40
drm/amdkfd: judge get_atc_vmid_pasid_mapping_info before call
Fix the NULL point issue:
[ 3076.255609] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 3076.255624] #PF: supervisor instruction fetch in kernel mode
[ 3076.255637] #PF: error_code(0x0010) - not-present page
[ 3076.255649] PGD 0 P4D 0
[ 3076.255660] Oops: 0010 [#1] SMP NOPTI
[ 3076.255669] CPU: 20 PID: 2415 Comm: kfdtest Tainted: G W OE 5.11.0-41-generic #45~20.04.1-Ubuntu
[ 3076.255691] Hardware name: AMD Splinter/Splinter-RPL, BIOS VS2326337N.FD 02/07/2022
[ 3076.255706] RIP: 0010:0x0
[ 3076.255718] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[ 3076.255732] RSP: 0018:ffffb64283e3fc10 EFLAGS: 00010297
[ 3076.255744] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000027
[ 3076.255759] RDX: ffffb64283e3fc1e RSI: 0000000000000008 RDI: ffff8c7a87f60000
[ 3076.255776] RBP: ffffb64283e3fc78 R08: ffff8c7d88518ac0 R09: ffffb64283e3fa60
[ 3076.255791] R10: 0000000000000001 R11: 0000000000000001 R12: 000000000000000f
[ 3076.255805] R13: ffff8c7bdcea5800 R14: ffff8c7a9f3f3000 R15: ffff8c7a8696bc00
[ 3076.255820] FS: 0000000000000000(0000) GS:ffff8c7d88500000(0000) knlGS:0000000000000000
[ 3076.255839] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3076.255851] CR2: ffffffffffffffd6 CR3: 0000000109e3c000 CR4: 0000000000750ee0
[ 3076.255866] PKRU: 55555554
[ 3076.255873] Call Trace:
[ 3076.255884] dbgdev_wave_reset_wavefronts+0x72/0x160 [amdgpu]
[ 3076.256025] process_termination_cpsch.cold+0x26/0x2f [amdgpu]
[ 3076.256182] ? ktime_get_mono_fast_ns+0x4e/0xa0
[ 3076.256196] kfd_process_dequeue_from_all_devices+0x49/0x70 [amdgpu]
[ 3076.256328] kfd_process_notifier_release+0x187/0x2b0 [amdgpu]
[ 3076.256451] ? mn_itree_inv_end+0xdc/0x110
[ 3076.256463] __mmu_notifier_release+0x74/0x1f0
[ 3076.256474] exit_mmap+0x170/0x200
[ 3076.256484] ? __handle_mm_fault+0x677/0x920
[ 3076.256496] ? _cond_resched+0x19/0x30
[ 3076.256507] mmput+0x5d/0x130
[ 3076.256518] do_exit+0x332/0xaf0
[ 3076.256526] ? handle_mm_fault+0xd7/0x2b0
[ 3076.256537] do_group_exit+0x43/0xa0
[ 3076.256548] __x64_sys_exit_group+0x18/0x20
[ 3076.256559] do_syscall_64+0x38/0x90
[ 3076.256569] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-03-04 13:03:30 -05:00
..
2022-02-08 12:15:04 +01:00
2022-02-18 19:36:36 +01:00
2021-12-17 11:34:35 +00:00
2022-01-03 13:44:38 +01:00
2022-02-23 09:39:37 +09:00
2022-01-13 12:50:48 +00:00
2022-02-25 12:30:01 -08:00
2022-02-17 07:54:03 -07:00
2022-01-18 10:05:48 +02:00
2022-02-06 13:19:46 +01:00
2022-01-22 08:33:35 +02:00
2022-02-14 10:52:27 +10:00
2022-02-17 17:05:07 -08:00
2022-02-07 17:42:44 +01:00
2021-11-26 16:48:59 +01:00
2022-01-26 18:57:09 -08:00
2022-01-26 19:40:33 +01:00
2022-02-09 13:18:49 +05:30
2022-01-05 18:31:17 +01:00
2022-01-31 11:22:53 +11:00
2022-01-04 17:29:31 -08:00
2022-01-15 20:37:06 +02:00
2021-12-16 11:29:54 +09:00
2022-02-15 11:04:16 +05:30
2022-02-25 05:50:18 +10:00
2022-02-15 15:54:46 +01:00
2021-12-24 15:27:52 +09:00
2022-02-01 19:02:41 +10:00
2021-12-09 20:06:54 -08:00
2021-12-22 15:38:12 +01:00
2022-02-27 12:30:54 -08:00
2022-03-04 13:03:30 -05:00
2021-12-21 10:13:26 +01:00
2022-02-14 16:28:51 +01:00
2021-11-26 00:27:06 +01:00
2022-02-09 14:33:21 +00:00
2022-02-22 08:15:39 -08:00
2021-12-13 11:54:07 -07:00
2022-02-18 10:37:33 +01:00
2022-01-13 02:05:50 +01:00
2022-02-21 17:58:09 +01:00
2022-02-25 16:46:51 -04:00
2022-02-20 11:15:46 -08:00
2021-12-15 07:14:27 +02:00
2022-02-04 12:57:26 +01:00
2022-02-02 10:49:29 +00:00
2021-12-30 12:12:12 -08:00
2022-01-12 16:59:22 -08:00
2022-01-22 08:33:35 +02:00
2022-01-13 11:19:07 -08:00
2022-02-17 07:54:03 -07:00
2022-02-07 16:35:35 -08:00
2022-01-11 11:35:28 -08:00
2022-01-10 10:33:52 -05:00
2022-01-12 11:11:34 -08:00
2022-02-14 10:52:27 +10:00
2022-02-08 16:04:49 +01:00
2021-11-26 17:03:47 +01:00
2022-02-25 12:12:06 -08:00
2022-02-24 10:05:08 -08:00
2022-01-12 14:17:45 +00:00
2022-01-17 08:14:18 +02:00
2022-01-22 08:33:37 +02:00
2022-01-18 10:05:48 +02:00
2022-02-23 14:43:11 +01:00
2022-02-21 17:59:25 +01:00
2022-02-17 17:13:52 -06:00
2022-01-28 10:15:34 +01:00
2022-02-27 13:07:40 -08:00
2022-01-16 08:08:11 +02:00
2022-01-13 09:05:29 -08:00
2022-02-02 10:33:04 +05:30
2022-02-19 02:03:58 +01:00
2022-02-28 14:57:14 +10:00
2022-01-22 08:33:37 +02:00
2022-02-11 21:19:51 +01:00
2021-12-27 16:51:12 +01:00
2022-01-06 12:18:08 +00:00
2022-01-20 13:25:01 +02:00
2021-12-21 10:22:19 +01:00
2021-12-11 11:55:27 +01:00
2022-02-22 11:56:29 +00:00
2022-01-17 16:44:26 -06:00
2022-01-10 08:32:37 -08:00
2022-01-27 11:23:26 +02:00
2022-01-16 23:50:34 +01:00
2022-02-09 22:55:01 +01:00
2022-02-14 22:10:29 -05:00
2022-02-18 09:20:52 -08:00
2022-01-14 16:02:28 +01:00
2022-02-25 12:37:41 -08:00
2021-12-17 17:18:18 +01:00
2022-02-28 14:57:14 +10:00
2022-01-24 23:30:24 -05:00
2022-02-08 09:48:44 +01:00
2022-02-24 20:14:19 +01:00
2021-12-28 10:43:56 +03:00
2022-02-25 11:45:29 -08:00
2021-12-29 10:54:50 +01:00
2022-02-24 14:51:45 +01:00
2022-01-18 10:05:48 +02:00
2022-01-20 13:31:46 +02:00
2022-02-23 12:32:33 +00:00
2022-02-25 05:50:18 +10:00
2022-01-23 06:20:44 +02:00
2022-01-14 18:50:53 -05:00
2021-12-21 10:38:13 +01:00
2022-01-17 08:07:57 +02:00
2022-02-10 11:10:23 +01:00
2022-01-22 08:33:37 +02:00
2021-12-08 14:53:15 -05:00