diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1442-drm-amdkfd-Remove-duplicate-pqm_uninit.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1442-drm-amdkfd-Remove-duplicate-pqm_uninit.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1442-drm-amdkfd-Remove-duplicate-pqm_uninit.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1442-drm-amdkfd-Remove-duplicate-pqm_uninit.patch new file mode 100644 index 00000000..ac693c94 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1442-drm-amdkfd-Remove-duplicate-pqm_uninit.patch @@ -0,0 +1,32 @@ +From 169dcfef97fcabfc55e17fa9eaddb606f5c44685 Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Sun, 29 May 2016 20:38:39 -0400 +Subject: [PATCH 1442/4131] drm/amdkfd: Remove duplicate pqm_uninit() + +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. + +Change-Id: I65f5095c0e1f346bda76d429dd8d88ff5c3eae0c +Signed-off-by: Yong Zhao <yong.zhao@amd.com> +--- + 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 a6fd9c2..2c371cd 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c +@@ -716,8 +716,6 @@ void kfd_unbind_process_from_device(struct kfd_dev *dev, unsigned int pasid) + + mutex_unlock(get_dbgmgr_mutex()); + +- pqm_uninit(&p->pqm); +- + pdd = kfd_get_process_device_data(dev, p); + if (pdd->reset_wavefronts) { + dbgdev_wave_reset_wavefronts(pdd->dev, p); +-- +2.7.4 + |