linux_dsm_epyc7002/drivers/gpu/drm/amd/amdkfd
Yong Zhao 733fa1f742 drm/amdkfd: Fix suspend/resume issue on Carrizo v2
When we do suspend/resume through "sudo pm-suspend" while there is
HSA activity running, upon resume we will encounter HWS hanging, which
is caused by memory read/write failures. The root cause is that when
suspend, we neglected to unbind pasid from kfd device.

Another major change is that the bind/unbinding is changed to be
performed on a per process basis, instead of whether there are queues
in dqm.

v2:
- free IOMMU device if kfd_bind_processes_to_device fails in kfd_resume
- add comments to kfd_bind/unbind_processes_to/from_device
- minor cleanups

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2017-09-20 18:10:14 -04:00
..
cik_event_interrupt.c drm/amdkfd: Add bad opcode exception handling 2015-05-19 13:02:28 +03:00
cik_int.h drm/amdkfd: Add bad opcode exception handling 2015-05-19 13:02:28 +03:00
cik_regs.h drm/amdkfd: Use generic defines in new amd headers 2015-07-20 09:16:49 +03:00
Kconfig drm/amdkfd: Add dependency of DRM_AMDGPU to Kconfig 2015-07-20 09:16:48 +03:00
kfd_chardev.c drm/amdkfd: check for null dev to avoid a null pointer dereference 2017-09-08 15:13:33 +01:00
kfd_crat.h
kfd_dbgdev.c drm/amdkfd: Handle remaining BUG_ONs more gracefully v2 2017-08-15 23:00:12 -04:00
kfd_dbgdev.h drm/amdkfd: avoid CONFIG_ prefix for non-Kconfig symbols 2015-06-06 20:48:34 +03:00
kfd_dbgmgr.c drm/amdkfd: Handle remaining BUG_ONs more gracefully v2 2017-08-15 23:00:12 -04:00
kfd_dbgmgr.h drm/amdkfd: Clean up KFD style errors and warnings v2 2017-08-15 23:00:04 -04:00
kfd_device_queue_manager_cik.c drm/amdkfd: Adding new IOCTL for scratch memory v2 2017-08-15 23:00:20 -04:00
kfd_device_queue_manager_vi.c drm/amdkfd: Adding new IOCTL for scratch memory v2 2017-08-15 23:00:20 -04:00
kfd_device_queue_manager.c drm/amdkfd: Fix suspend/resume issue on Carrizo v2 2017-09-20 18:10:14 -04:00
kfd_device_queue_manager.h drm/amdkfd: Remove unused references to shared_resources.num_mec 2017-07-13 20:21:54 -05:00
kfd_device.c drm/amdkfd: Fix suspend/resume issue on Carrizo v2 2017-09-20 18:10:14 -04:00
kfd_doorbell.c drm/amdkfd: Separate doorbell allocation from PASID 2017-09-26 13:07:03 -04:00
kfd_events.c drm/amdkfd: Print event limit messages only once per process 2017-09-20 18:10:22 -04:00
kfd_events.h drm/amdkfd: Add bad opcode exception handling 2015-05-19 13:02:28 +03:00
kfd_flat_memory.c drm/amdkfd: Change x==NULL/false references to !x 2017-08-15 23:00:06 -04:00
kfd_interrupt.c drm/amdkfd: Clean up KFD style errors and warnings v2 2017-08-15 23:00:04 -04:00
kfd_kernel_queue_cik.c drm/amdkfd: Add initial VI support for KQ 2014-12-02 16:38:57 +02:00
kfd_kernel_queue_vi.c drm/amdkfd: Add initial VI support for KQ 2014-12-02 16:38:57 +02:00
kfd_kernel_queue.c drm/amdkfd: Fix kernel-queue wrapping bugs 2017-09-20 18:10:21 -04:00
kfd_kernel_queue.h drm/amdkfd: Remove sync_with_hw() from amdkfd 2015-01-15 12:07:48 +02:00
kfd_module.c drm/amdkfd: Use PASID manager from KGD 2017-09-26 13:07:04 -04:00
kfd_mqd_manager_cik.c drm/amd: Update MEC HQD loading code for KFD 2017-08-15 23:00:17 -04:00
kfd_mqd_manager_vi.c drm/amd: Update MEC HQD loading code for KFD 2017-08-15 23:00:17 -04:00
kfd_mqd_manager.c drm/amdkfd: Change MQD manager to be H/W specific 2015-01-04 11:24:25 +02:00
kfd_mqd_manager.h drm/amd: Update MEC HQD loading code for KFD 2017-08-15 23:00:17 -04:00
kfd_packet_manager.c drm/amdkfd: Update PM4 packet headers 2017-08-15 23:00:15 -04:00
kfd_pasid.c drm/amdkfd: Use PASID manager from KGD 2017-09-26 13:07:04 -04:00
kfd_pm4_headers_diq.h drm/amdkfd: Add skeleton H/W debugger module support 2015-06-03 11:32:28 +03:00
kfd_pm4_headers_vi.h drm/amdkfd: Update PM4 packet headers 2017-08-15 23:00:15 -04:00
kfd_pm4_headers.h drm/amdkfd: Update PM4 packet headers 2017-08-15 23:00:15 -04:00
kfd_pm4_opcodes.h
kfd_priv.h drm/amdkfd: Fix suspend/resume issue on Carrizo v2 2017-09-20 18:10:14 -04:00
kfd_process_queue_manager.c drm/amdkfd: remove memset before memcpy 2017-08-30 00:33:35 +05:30
kfd_process.c drm/amdkfd: Fix suspend/resume issue on Carrizo v2 2017-09-20 18:10:14 -04:00
kfd_queue.c drm/amdkfd: Remove BUG_ONs for NULL pointer arguments 2017-08-15 23:00:09 -04:00
kfd_topology.c drm/amdkfd: Handle remaining BUG_ONs more gracefully v2 2017-08-15 23:00:12 -04:00
kfd_topology.h drm/amdkfd: Set correct doorbell packet type for Carrizo 2015-07-20 09:16:49 +03:00
Makefile drm/amd: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:17:41 +02:00