drm/amdgpu: add amdgpu runpm usage trace for separate funcs
authorPrike Liang <Prike.Liang@amd.com>
Thu, 9 Nov 2023 03:37:18 +0000 (11:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:30:51 +0000 (09:30 -0500)
commit425285d39afddaf4a9dab36045b816af0cc3e400
tree6eb8acd2d14abb87b6dbf4073037205c7d9844ea
parenta3cc7dbe9957f856b84a504687a85e22e02a49db
drm/amdgpu: add amdgpu runpm usage trace for separate funcs

Add trace for amdgpu runpm separate funcs usage and this will
help debugging on the case of runpm usage missed to dereference.
In the normal case the runpm usage count referred by one kind
of functionality pairwise and usage should be changed from 1 to 0,
otherwise there will be an issue in the amdgpu runpm usage
dereference.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h