Guchun Chen
248b061689
drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume
...
In current code, when a PCI error state pci_channel_io_normal is detectd,
it will report PCI_ERS_RESULT_CAN_RECOVER status to PCI driver, and PCI
driver will continue the execution of PCI resume callback report_resume by
pci_walk_bridge, and the callback will go into amdgpu_pci_resume
finally, where write lock is releasd unconditionally without acquiring
such lock first. In this case, a deadlock will happen when other threads
start to acquire the read lock.
To fix this, add a member in amdgpu_device strucutre to cache
pci_channel_state, and only continue the execution in amdgpu_pci_resume
when it's pci_channel_io_frozen.
Fixes: c9a6b82f45 ("drm/amdgpu: Implement DPC recovery")
Suggested-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-10-05 13:02:31 -04:00
..
2021-07-23 10:08:00 -04:00
2021-08-24 15:35:50 -04:00
2021-08-24 15:35:33 -04:00
2021-08-24 15:35:33 -04:00
2021-08-24 15:35:33 -04:00
2021-08-24 15:35:33 -04:00
2021-08-11 17:19:54 -04:00
2021-08-11 17:19:54 -04:00
2021-10-05 10:53:45 -04:00
2021-09-16 09:56:24 -04:00
2021-09-16 09:56:24 -04:00
2021-08-30 14:59:33 -04:00
2021-08-06 11:33:50 -04:00
2021-08-02 17:21:24 -04:00
2021-09-14 16:21:15 -04:00
2021-10-05 13:02:31 -04:00
2021-08-10 10:38:10 -04:00
2021-09-28 14:40:19 -04:00
2021-08-30 14:59:33 -04:00
2021-08-09 15:44:50 -04:00
2021-08-31 14:20:40 -04:00
2021-08-31 14:19:47 -04:00
2021-08-24 15:35:41 -04:00
2021-08-31 14:20:08 -04:00
2021-10-05 10:55:07 -04:00
2021-09-16 09:56:24 -04:00
2021-08-30 14:59:33 -04:00
2021-08-16 15:35:55 -04:00
2021-08-11 17:19:54 -04:00
2021-08-16 15:16:58 -04:00
2021-09-01 11:26:46 -07:00
2021-08-10 20:00:44 +02:00
2021-08-16 15:16:58 -04:00
2021-08-16 15:16:58 -04:00
2021-08-25 18:15:10 -04:00
2021-08-16 15:18:04 -04:00
2021-08-24 15:36:18 -04:00
2021-08-24 15:36:18 -04:00
2021-08-16 15:35:55 -04:00
2021-08-16 15:35:55 -04:00
2021-07-23 10:09:40 -04:00
2021-08-25 18:15:17 -04:00
2021-08-25 18:15:17 -04:00
2021-08-24 15:35:25 -04:00
2021-08-24 15:35:25 -04:00
2021-08-30 15:09:21 -04:00
2021-08-18 18:22:53 -04:00
2021-08-18 18:22:53 -04:00
2021-09-16 09:56:24 -04:00
2021-09-16 09:56:24 -04:00
2021-08-16 15:35:55 -04:00
2021-08-24 15:36:18 -04:00
2021-08-02 16:53:17 -04:00
2021-09-14 16:21:15 -04:00
2021-08-16 15:16:58 -04:00
2021-07-23 10:07:59 -04:00
2021-08-16 15:35:55 -04:00
2021-08-18 18:22:53 -04:00
2021-09-14 16:17:39 -04:00
2021-08-16 15:18:04 -04:00
2021-08-16 15:18:04 -04:00
2021-08-16 15:35:55 -04:00
2021-08-25 18:15:10 -04:00
2021-08-25 18:15:10 -04:00
2021-08-25 18:15:10 -04:00
2021-08-16 15:18:04 -04:00
2021-08-06 16:12:23 -04:00
2021-08-05 21:17:58 -04:00
2021-08-25 18:15:17 -04:00
2021-08-24 15:36:50 -04:00
2021-08-30 14:59:33 -04:00
2021-08-26 13:56:14 -04:00
2021-07-23 10:07:59 -04:00
2021-10-05 13:02:31 -04:00
2021-08-24 15:35:25 -04:00
2021-08-05 21:17:58 -04:00
2021-07-23 10:08:00 -04:00
2021-08-05 21:17:59 -04:00
2021-08-05 21:17:59 -04:00
2021-08-05 21:17:59 -04:00
2021-09-28 14:39:29 -04:00
2021-08-09 15:44:47 -04:00
2021-08-05 21:17:59 -04:00
2021-08-18 18:22:46 -04:00
2021-09-28 14:38:16 -04:00
2021-09-28 14:38:16 -04:00
2021-08-24 15:36:18 -04:00
2021-08-24 15:36:18 -04:00
2021-08-24 15:36:18 -04:00
2021-08-18 18:22:25 -04:00
2021-08-30 14:59:33 -04:00
2021-08-30 14:59:33 -04:00
2021-08-16 15:17:57 -04:00
2021-08-16 15:17:57 -04:00
2021-07-23 10:09:40 -04:00
2021-08-31 14:19:37 -04:00
2021-08-05 21:17:58 -04:00
2021-07-23 10:08:00 -04:00
2021-07-23 10:08:00 -04:00
2021-08-16 15:18:04 -04:00
2021-07-23 10:08:01 -04:00
2021-07-23 10:08:01 -04:00
2021-08-16 15:18:04 -04:00
2021-08-16 15:18:04 -04:00
2021-07-28 22:15:44 -04:00
2021-07-23 10:08:01 -04:00
2021-09-28 14:40:27 -04:00
2021-08-05 21:17:58 -04:00
2021-07-23 10:07:59 -04:00
2021-08-26 13:56:58 -04:00
2021-08-18 18:22:24 -04:00
2021-08-05 21:17:58 -04:00
2021-08-05 21:17:58 -04:00
2021-08-25 18:15:02 -04:00
2021-08-25 18:15:02 -04:00
2021-08-25 18:15:02 -04:00
2021-08-25 18:14:48 -04:00
2021-08-25 18:15:02 -04:00
2021-08-25 18:15:02 -04:00
2021-08-25 18:14:48 -04:00
2021-08-25 18:15:02 -04:00
2021-07-23 10:07:59 -04:00
2021-07-23 10:07:59 -04:00
2021-07-23 10:07:59 -04:00
2021-08-05 21:17:59 -04:00
2021-08-30 14:59:33 -04:00