amdkfd: Clear ctx cb before suspend
authorOded Gabbay <oded.gabbay@amd.com>
Sun, 9 Nov 2014 20:36:22 +0000 (22:36 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Sun, 9 Nov 2014 20:36:22 +0000 (22:36 +0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index 9beb6f7bba9d575b906ab57ccec1164b5aa25721..43884ebd4303fedd47b56431737a0f726852c552 100644 (file)
@@ -267,6 +267,7 @@ void kgd2kfd_suspend(struct kfd_dev *kfd)
 
        if (kfd->init_complete) {
                kfd->dqm->stop(kfd->dqm);
+               amd_iommu_set_invalidate_ctx_cb(kfd->pdev, NULL);
                amd_iommu_free_device(kfd->pdev);
        }
 }