mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdkfd: Remove unused old debugger implementation
Cleanup the kfd code by removing the unused old debugger implementation. The address watch was only ever implemented in the upstream driver for GFXv7 (Kaveri). The user mode tools runtime using this API was never open-sourced. Work on the old debugger prototype that used this API has been discontinued years ago. Only a small piece of resetting wavefronts is kept and is moved to kfd_device_queue_manager.c. Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
6c1a786773
commit
5bdd3eb253
@@ -40,7 +40,6 @@ struct mm_struct;
|
||||
|
||||
#include "kfd_priv.h"
|
||||
#include "kfd_device_queue_manager.h"
|
||||
#include "kfd_dbgmgr.h"
|
||||
#include "kfd_iommu.h"
|
||||
#include "kfd_svm.h"
|
||||
|
||||
@@ -1158,7 +1157,6 @@ static void kfd_process_notifier_release(struct mmu_notifier *mn,
|
||||
struct mm_struct *mm)
|
||||
{
|
||||
struct kfd_process *p;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* The kfd_process structure can not be free because the
|
||||
@@ -1178,23 +1176,6 @@ static void kfd_process_notifier_release(struct mmu_notifier *mn,
|
||||
|
||||
mutex_lock(&p->mutex);
|
||||
|
||||
/* Iterate over all process device data structures and if the
|
||||
* pdd is in debug mode, we should first force unregistration,
|
||||
* then we will be able to destroy the queues
|
||||
*/
|
||||
for (i = 0; i < p->n_pdds; i++) {
|
||||
struct kfd_dev *dev = p->pdds[i]->dev;
|
||||
|
||||
mutex_lock(kfd_get_dbgmgr_mutex());
|
||||
if (dev && dev->dbgmgr && dev->dbgmgr->pasid == p->pasid) {
|
||||
if (!kfd_dbgmgr_unregister(dev->dbgmgr, p)) {
|
||||
kfd_dbgmgr_destroy(dev->dbgmgr);
|
||||
dev->dbgmgr = NULL;
|
||||
}
|
||||
}
|
||||
mutex_unlock(kfd_get_dbgmgr_mutex());
|
||||
}
|
||||
|
||||
kfd_process_dequeue_from_all_devices(p);
|
||||
pqm_uninit(&p->pqm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user