Browse Source

amdkfd: Clear ctx cb before suspend

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Oded Gabbay 10 years ago
parent
commit
abc9d3e3b9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/amd/amdkfd/kfd_device.c

+ 1 - 0
drivers/gpu/drm/amd/amdkfd/kfd_device.c

@@ -267,6 +267,7 @@ void kgd2kfd_suspend(struct kfd_dev *kfd)
 
 
 	if (kfd->init_complete) {
 	if (kfd->init_complete) {
 		kfd->dqm->stop(kfd->dqm);
 		kfd->dqm->stop(kfd->dqm);
+		amd_iommu_set_invalidate_ctx_cb(kfd->pdev, NULL);
 		amd_iommu_free_device(kfd->pdev);
 		amd_iommu_free_device(kfd->pdev);
 	}
 	}
 }
 }