aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2016-12-06 08:41:55 +0000
committerAlex Deucher <[email protected]>2017-03-30 03:54:37 +0000
commitcef105f7dc0ad2b9bcaab77f05d520ac7d556ab3 (patch)
tree07f7dc6bcf2d34a44bfe478dcb64facf56b22f57 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentdrm/amdgpu: update IH IV ring entry for soc-15 (diff)
downloadkernel-cef105f7dc0ad2b9bcaab77f05d520ac7d556ab3.tar.gz
kernel-cef105f7dc0ad2b9bcaab77f05d520ac7d556ab3.zip
drm/amdgpu: add IV trace point
This allows us to grab IVs without spamming the log. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c3
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;