summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorChunming Zhou <David1.Zhou@amd.com>2015-11-11 14:56:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-11-16 11:05:57 -0500
commit7034decf6a5b1ff778d83ff9d7ce1f0b404804e4 (patch)
tree10a2cfe01d31baf7eb308edd267161016affbd3a /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parent5f2e816b2957fdde3c7d51d55db6751a980f4bea (diff)
drm/amdgpu: add command submission workflow tracepoint
OGL needs these tracepoints to investigate performance issue. Change-Id: I5e58187d061253f7d665dfce8e4e163ba91d3e2b Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
index dcf4a8aca680..67f778f6eedb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
@@ -26,6 +26,7 @@
#include <linux/sched.h>
#include <drm/drmP.h>
#include "amdgpu.h"
+#include "amdgpu_trace.h"
static struct fence *amdgpu_sched_dependency(struct amd_sched_job *sched_job)
{
@@ -45,6 +46,7 @@ static struct fence *amdgpu_sched_run_job(struct amd_sched_job *sched_job)
}
job = to_amdgpu_job(sched_job);
mutex_lock(&job->job_lock);
+ trace_amdgpu_sched_run_job(job);
r = amdgpu_ib_schedule(job->adev,
job->num_ibs,
job->ibs,