
Vitaly ProsyakandGreg Kroah-Hartman
de1c09598b
drm/amdgpu: fix software pci_unplug on some chips
[ Upstream commit 4638e0c29a ]
When software 'pci unplug' using IGT is executed we got a sysfs directory
entry is NULL for differant ras blocks like hdp, umc, etc.
Before call 'sysfs_remove_file_from_group' and 'sysfs_remove_group'
check that 'sd' is not NULL.
[ +0.000001] RIP: 0010:sysfs_remove_group+0x83/0x90
[ +0.000002] Code: 31 c0 31 d2 31 f6 31 ff e9 9a a8 b4 00 4c 89 e7 e8 f2 a2 ff ff eb c2 49 8b 55 00 48 8b 33 48 c7 c7 80 65 94 82 e8 cd 82 bb ff <0f> 0b eb cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90
[ +0.000001] RSP: 0018:ffffc90002067c90 EFLAGS: 00010246
[ +0.000002] RAX: 0000000000000000 RBX: ffffffff824ea180 RCX: 0000000000000000
[ +0.000001] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ +0.000001] RBP: ffffc90002067ca8 R08: 0000000000000000 R09: 0000000000000000
[ +0.000001] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ +0.000001] R13: ffff88810a395f48 R14: ffff888101aab0d0 R15: 0000000000000000
[ +0.000001] FS: 00007f5ddaa43a00(0000) GS:ffff88841e800000(0000) knlGS:0000000000000000
[ +0.000002] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ +0.000001] CR2: 00007f8ffa61ba50 CR3: 0000000106432000 CR4: 0000000000350ef0
[ +0.000001] Call Trace:
[ +0.000001] <TASK>
[ +0.000001] ? show_regs+0x72/0x90
[ +0.000002] ? sysfs_remove_group+0x83/0x90
[ +0.000002] ? __warn+0x8d/0x160
[ +0.000001] ? sysfs_remove_group+0x83/0x90
[ +0.000001] ? report_bug+0x1bb/0x1d0
[ +0.000003] ? handle_bug+0x46/0x90
[ +0.000001] ? exc_invalid_op+0x19/0x80
[ +0.000002] ? asm_exc_invalid_op+0x1b/0x20
[ +0.000003] ? sysfs_remove_group+0x83/0x90
[ +0.000001] dpm_sysfs_remove+0x61/0x70
[ +0.000002] device_del+0xa3/0x3d0
[ +0.000002] ? ktime_get_mono_fast_ns+0x46/0xb0
[ +0.000002] device_unregister+0x18/0x70
[ +0.000001] i2c_del_adapter+0x26d/0x330
[ +0.000002] arcturus_i2c_control_fini+0x25/0x50 [amdgpu]
[ +0.000236] smu_sw_fini+0x38/0x260 [amdgpu]
[ +0.000241] amdgpu_device_fini_sw+0x116/0x670 [amdgpu]
[ +0.000186] ? mutex_lock+0x13/0x50
[ +0.000003] amdgpu_driver_release_kms+0x16/0x40 [amdgpu]
[ +0.000192] drm_minor_release+0x4f/0x80 [drm]
[ +0.000025] drm_release+0xfe/0x150 [drm]
[ +0.000027] __fput+0x9f/0x290
[ +0.000002] ____fput+0xe/0x20
[ +0.000002] task_work_run+0x61/0xa0
[ +0.000002] exit_to_user_mode_prepare+0x150/0x170
[ +0.000002] syscall_exit_to_user_mode+0x2a/0x50
Cc: Hawking Zhang <hawking.zhang@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:19:47 +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
2023-06-09 12:37:50 -04:00
2023-07-12 10:58:01 -04:00
2023-06-09 09:42:43 -04:00
2023-06-09 09:42:43 -04:00
2023-09-11 18:15:43 -04:00
2023-09-11 18:15:43 -04:00
2023-06-09 12:36:46 -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
2023-10-23 14:48:47 +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
2023-08-31 18:09:45 -04:00
2023-08-07 17:13:10 -04:00
2023-08-09 09:39:56 -04:00
2023-07-12 14:14:50 +02:00
2023-07-12 14:14:50 +02:00
2023-08-07 17:12:49 -04:00
2023-06-09 09:25:43 -04:00
2023-10-19 13:19:44 +02:00
2023-07-12 14:14:50 +02:00
2023-07-12 14:14:36 +02:00
2023-06-09 12:47:26 -04:00
2023-10-21 20:27:15 -04:00
2023-06-15 11:37:55 -04:00
2023-11-28 17:19:41 +00:00
2023-11-28 17:19:41 +00:00
2023-08-31 17:53:19 -04:00
2023-06-09 09:47:43 -04:00
2023-08-31 18:03:48 -04:00
2023-10-19 18:56:57 -04:00
2023-10-09 17:59:29 -04:00
2023-08-15 18:08:28 -04:00
2023-08-15 18:08:29 -04:00
2023-06-09 09:59:20 -04:00
2023-07-27 14:59:29 -04:00
2023-06-09 10:38:09 -04:00
2023-07-27 15:05:31 -04: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
2023-06-09 10:50:55 -04:00
2023-06-09 09:51:06 -04:00
2023-08-11 14:48:07 -04:00
2023-06-09 10:36:38 -04:00
2023-11-20 11:59:33 +01:00
2023-09-11 18:16:31 -04:00
2023-06-09 12:31:20 -04:00
2023-07-07 13:51:47 -04:00
2023-06-15 17:55:41 -04:00
2023-07-25 13:47:26 -04:00
2023-06-09 12:49:48 -04:00
2023-06-09 12:49:48 -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
2023-06-09 09:43:50 -04:00
2023-06-15 11:37:55 -04:00
2023-06-15 11:37:55 -04:00
2023-06-30 13:11:35 -04:00
2023-06-09 10:41:23 -04:00
2023-09-11 18:25:26 -04:00
2023-08-07 17:14:07 -04:00
2023-08-07 17:14:07 -04:00
2023-06-09 09:53:13 -04:00
2023-08-09 09:46:05 -04:00
2023-08-09 09:46:05 -04:00
2023-08-07 17:14:06 -04:00
2023-10-09 17:59:29 -04:00
2023-08-09 18:08:51 -04:00
2023-08-31 17:58:58 -04:00
2023-08-31 17:58:58 -04:00
2023-06-23 15:33:09 -04:00
2023-08-31 17:52:49 -04:00
2023-06-09 12:44:40 -04:00
2023-11-28 17:19:47 +00:00
2023-06-30 13:12:15 -04: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
2023-06-15 11:37:55 -04:00
2023-08-09 09:43:45 -04:00
2023-06-09 12:32:30 -04:00
2023-07-18 11:16:41 -04:00
2023-09-01 15:12:07 +02:00
2023-06-09 09:25:02 -04:00
2023-07-25 13:47:26 -04:00
2023-06-09 09:53:00 -04:00
2023-06-09 09:48:33 -04:00
2023-08-09 09:43:43 -04:00
2023-08-15 18:08:30 -04:00
2023-08-07 17:14:06 -04:00
2023-08-07 17:14:07 -04:00
2023-06-15 11:06:59 -04:00
2023-06-09 12:44:31 -04:00
2023-06-09 09:48:22 -04:00
2023-06-09 10:38:22 -04:00
2023-06-09 10:38:22 -04: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-07-07 13:51:48 -04:00
2023-07-21 16:52:25 -04:00
2023-10-19 18:56:50 -04:00
2023-08-04 11:10:18 +02:00
2023-06-09 12:41:14 -04: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
2023-09-11 18:18:17 -04:00
2023-06-09 10:41:07 -04:00
2023-07-25 13:39:29 -04:00
2023-07-21 16:52:24 -04:00
2023-08-15 18:07:42 -04:00
2023-08-09 09:43:13 -04:00
2023-06-09 10:57:07 -04:00
2023-08-21 14:11:35 -05: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-09-11 18:16:31 -04:00
2023-09-11 18:16:31 -04:00
2023-06-09 12:34:56 -04:00
2023-09-11 18:16:31 -04:00
2023-06-09 09:49:56 -04:00
2023-06-09 10:37:15 -04:00
2023-11-20 11:59:33 +01:00
2023-06-09 10:38:19 -04:00
2023-11-20 11:59:33 +01:00
2023-07-10 09:02:36 -04:00
2023-08-07 17:13:09 -04:00
2023-06-09 09:49:56 -04: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
2023-07-10 09:02:36 -04:00
2023-07-18 11:09:30 -04:00
2023-07-18 11:09:30 -04:00
2023-08-16 11:38:11 -04:00
2023-07-27 15:05:31 -04:00
2023-07-27 15:05:31 -04:00
2023-08-09 09:43:18 -04:00
2023-08-07 16:35:38 -04:00
2023-08-07 16:35:38 -04:00
2023-06-09 11:07:00 -04:00
2023-08-09 09:43:28 -04:00
2023-06-09 11:07:00 -04:00
2023-08-09 09:39:56 -04:00
2023-08-31 17:54:18 -04:00
2023-06-09 09:45:58 -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
2023-06-09 09:40:03 -04:00
2023-06-09 09:40:03 -04:00
2023-08-07 17:13:09 -04:00
2023-06-09 09:53:42 -04:00
2023-06-09 09:40:03 -04:00
2023-08-07 17:12:49 -04:00
2023-06-09 09:40:03 -04:00
2023-06-09 09:40:03 -04:00
2023-06-09 09:40:03 -04:00
2023-08-09 09:43:22 -04:00
2023-06-09 12:44:12 -04:00
2023-08-15 18:08:27 -04:00
2023-06-09 12:44:12 -04:00
2023-08-09 09:43:32 -04:00
2023-08-09 09:43:51 -04:00
2023-07-12 10:57:25 -04:00
2023-06-23 15:46:22 -04:00
2023-09-11 18:19:48 -04:00
2023-08-31 17:58:23 -04:00
2023-08-09 09:46:04 -04:00
2023-08-09 09:43:49 -04:00
2023-06-09 09:57:53 -04:00
2023-06-09 10:40:57 -04:00
2023-11-28 17:19:40 +00:00
2023-06-15 11:06:58 -04:00
2023-06-09 10:57:07 -04:00
2023-06-09 10:57:07 -04:00
2023-06-15 11:06:58 -04:00
2023-06-30 13:12:15 -04:00
2023-06-09 09:49:56 -04:00
2023-06-09 09:25:37 -04:00
2023-07-25 13:47:26 -04:00
2023-08-07 17:12:49 -04:00
2023-08-07 16:32:46 -04:00
2023-06-09 10:57:07 -04:00
2023-08-21 14:11:35 -05:00
2023-06-09 09:21:03 -04:00
2023-06-09 09:48:33 -04:00
2023-06-09 09:48:36 -04:00
2023-07-18 11:16:41 -04:00
2023-08-31 18:05:43 -04:00
2023-06-09 09:49:39 -04:00
2023-09-11 18:19:42 -04:00
2023-06-15 11:06:59 -04:00
2023-08-09 09:43:58 -04:00
2023-06-09 12:44:31 -04:00
2023-06-15 11:06:59 -04: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-06-09 09:40:03 -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-06-09 09:41:27 -04:00
2023-08-09 09:43:54 -04:00
2023-07-12 10:57:25 -04:00
2023-08-09 09:43:20 -04:00
2023-10-25 09:53:17 -04:00