diff options
author | Christian König <christian.koenig@amd.com> | 2016-12-06 11:41:55 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-30 06:54:37 +0300 |
commit | cef105f7dc0ad2b9bcaab77f05d520ac7d556ab3 (patch) | |
tree | 07f7dc6bcf2d34a44bfe478dcb64facf56b22f57 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 614dea315fceee86384f539064a30329961579b0 (diff) | |
download | linux-cef105f7dc0ad2b9bcaab77f05d520ac7d556ab3.tar.xz |
drm/amdgpu: add IV trace point
This allows us to grab IVs without spamming the log.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 7e7acd47ec78..13b487235a8b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -33,6 +33,7 @@ #include "amdgpu_ih.h" #include "atom.h" #include "amdgpu_connectors.h" +#include "amdgpu_trace.h" #include <linux/pm_runtime.h> @@ -356,6 +357,8 @@ void amdgpu_irq_dispatch(struct amdgpu_device *adev, struct amdgpu_irq_src *src; int r; + trace_amdgpu_iv(entry); + if (client_id >= AMDGPU_IH_CLIENTID_MAX) { DRM_DEBUG("Invalid client_id in IV: %d\n", client_id); return; |