diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-07-31 10:52:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 12:09:47 -0400 |
commit | 65f7260b135669bb1da72969ca8aad5c2fc4a300 (patch) | |
tree | 6497da8473cafadb41dd82b8a1c7510a9c023998 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 07507c01aa70558828216ea81393c1511fb6189d (diff) |
drm/amdgpu: Add job pipe sync dependecy trace
It's useful to trace any dependency a job has on prevoius
jobs.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 51b5e977ca88..47817e00f54f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
33 | #include "amdgpu.h" | 33 | #include "amdgpu.h" |
34 | #include "atom.h" | 34 | #include "atom.h" |
35 | #include "amdgpu_trace.h" | ||
35 | 36 | ||
36 | #define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(1000) | 37 | #define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(1000) |
37 | 38 | ||
@@ -170,6 +171,10 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, | |||
170 | (amdgpu_sriov_vf(adev) && need_ctx_switch) || | 171 | (amdgpu_sriov_vf(adev) && need_ctx_switch) || |
171 | amdgpu_vm_need_pipeline_sync(ring, job))) { | 172 | amdgpu_vm_need_pipeline_sync(ring, job))) { |
172 | need_pipe_sync = true; | 173 | need_pipe_sync = true; |
174 | |||
175 | if (tmp) | ||
176 | trace_amdgpu_ib_pipe_sync(job, tmp); | ||
177 | |||
173 | dma_fence_put(tmp); | 178 | dma_fence_put(tmp); |
174 | } | 179 | } |
175 | 180 | ||