pqm_uninit() will be called in kfd_process_notifier_release(), which
is when the process exits. Calling it in kfd_unbind_process_from_device()
is duplicate and in fact incorrect, because pqm should not be
uninitalized as long as the process still exists.

Original author: Yong Zhao <yong.z...@amd.com>
Hand ported for mainline.

Signed-off-by: Edward O'Callaghan <funfunc...@folklore1984.net>
---
 drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c 
b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index 8d78052..ef2266a 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@ -427,8 +427,6 @@ void kfd_unbind_process_from_device(struct kfd_dev *dev, 
unsigned int pasid)
                        if ((dev->dbgmgr) && (dev->dbgmgr->pasid == p->pasid))
                                kfd_dbgmgr_destroy(dev->dbgmgr);
 
-                       pqm_uninit(&p->pqm);
-
                        pdd = kfd_get_process_device_data(dev, p);
 
                        if (!pdd) {
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to