summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-01-09 19:32:58 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:17:46 -0500
commitc35ff18823f877459b2b4ace61fb08a9b56106f9 (patch)
treeb50c86bb2bd8e2b8d6ddf6d846c37fe405c3fafc /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
parent5c2ff9a60d2123df1e4ccee363541dd17916ddea (diff)
downloadop-kernel-dev-c35ff18823f877459b2b4ace61fb08a9b56106f9.zip
op-kernel-dev-c35ff18823f877459b2b4ace61fb08a9b56106f9.tar.gz
drm/amdgpu: trace allocated PASIDs
Trace all allocated PASIDs. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
index 842caa5..3b9d318 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
@@ -69,6 +69,9 @@ int amdgpu_pasid_alloc(unsigned int bits)
break;
}
+ if (pasid >= 0)
+ trace_amdgpu_pasid_allocated(pasid);
+
return pasid;
}
@@ -78,6 +81,7 @@ int amdgpu_pasid_alloc(unsigned int bits)
*/
void amdgpu_pasid_free(unsigned int pasid)
{
+ trace_amdgpu_pasid_freed(pasid);
ida_simple_remove(&amdgpu_pasid_ida, pasid);
}
OpenPOWER on IntegriCloud