mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-04-18 06:34:27 -04:00
drm/amdkfd: add smi events for process start and end
rocm-smi will be able to show the events for KFD process start/end, it is the implementation of this feature. Signed-off-by: Eric Huang <jinhuieric.huang@amd.com> Reviewed-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1054,6 +1054,8 @@ static void kfd_process_destroy_pdds(struct kfd_process *p)
|
||||
for (i = 0; i < p->n_pdds; i++) {
|
||||
struct kfd_process_device *pdd = p->pdds[i];
|
||||
|
||||
kfd_smi_event_process(pdd, false);
|
||||
|
||||
pr_debug("Releasing pdd (topology id %d, for pid %d)\n",
|
||||
pdd->dev->id, p->lead_thread->pid);
|
||||
kfd_process_device_destroy_cwsr_dgpu(pdd);
|
||||
@@ -1715,6 +1717,8 @@ int kfd_process_device_init_vm(struct kfd_process_device *pdd,
|
||||
pdd->pasid = avm->pasid;
|
||||
pdd->drm_file = drm_file;
|
||||
|
||||
kfd_smi_event_process(pdd, true);
|
||||
|
||||
return 0;
|
||||
|
||||
err_get_pasid:
|
||||
|
||||
Reference in New Issue
Block a user