diff options
author | Vaibhav Kachore <vkachore@nvidia.com> | 2018-08-20 05:55:06 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-31 15:16:10 -0400 |
commit | 064ba6a7ef236a7bb1085715c6ab37810f230bbf (patch) | |
tree | 007ab66696c49eda8dc02b1def57b69d3176dbc2 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | eb97fc52a96887d9d85cbdc18eaa7d72eade43b2 (diff) |
gpu: nvgpu: convert linux nvgpu ctxsw tags
Convert linux nvgpu ctxsw tags type of the form
of NVGPU_CTXSW_TAG_* into common nvgpu ctxsw tags
type of the form of NVGPU_GPU_CTXSW_TAG_*
EVLR-3078
Change-Id: I337487722c103c05003457f74ad6e05bf3bd38fc
Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803209
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 50077a62..e775c10b 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -308,27 +308,27 @@ static int gk20a_fecs_trace_ring_read(struct gk20a *g, int index) | |||
308 | entry.tag, entry.timestamp, r->context_id, | 308 | entry.tag, entry.timestamp, r->context_id, |
309 | r->new_context_id); | 309 | r->new_context_id); |
310 | 310 | ||
311 | switch (entry.tag) { | 311 | switch (nvgpu_gpu_ctxsw_tags_to_common_tags(entry.tag)) { |
312 | case NVGPU_CTXSW_TAG_RESTORE_START: | 312 | case NVGPU_GPU_CTXSW_TAG_RESTORE_START: |
313 | case NVGPU_CTXSW_TAG_CONTEXT_START: | 313 | case NVGPU_GPU_CTXSW_TAG_CONTEXT_START: |
314 | entry.context_id = r->new_context_id; | 314 | entry.context_id = r->new_context_id; |
315 | entry.pid = new_pid; | 315 | entry.pid = new_pid; |
316 | break; | 316 | break; |
317 | 317 | ||
318 | case NVGPU_CTXSW_TAG_CTXSW_REQ_BY_HOST: | 318 | case NVGPU_GPU_CTXSW_TAG_CTXSW_REQ_BY_HOST: |
319 | case NVGPU_CTXSW_TAG_FE_ACK: | 319 | case NVGPU_GPU_CTXSW_TAG_FE_ACK: |
320 | case NVGPU_CTXSW_TAG_FE_ACK_WFI: | 320 | case NVGPU_GPU_CTXSW_TAG_FE_ACK_WFI: |
321 | case NVGPU_CTXSW_TAG_FE_ACK_GFXP: | 321 | case NVGPU_GPU_CTXSW_TAG_FE_ACK_GFXP: |
322 | case NVGPU_CTXSW_TAG_FE_ACK_CTAP: | 322 | case NVGPU_GPU_CTXSW_TAG_FE_ACK_CTAP: |
323 | case NVGPU_CTXSW_TAG_FE_ACK_CILP: | 323 | case NVGPU_GPU_CTXSW_TAG_FE_ACK_CILP: |
324 | case NVGPU_CTXSW_TAG_SAVE_END: | 324 | case NVGPU_GPU_CTXSW_TAG_SAVE_END: |
325 | entry.context_id = r->context_id; | 325 | entry.context_id = r->context_id; |
326 | entry.pid = cur_pid; | 326 | entry.pid = cur_pid; |
327 | break; | 327 | break; |
328 | 328 | ||
329 | default: | 329 | default: |
330 | /* tags are not guaranteed to start at the beginning */ | 330 | /* tags are not guaranteed to start at the beginning */ |
331 | WARN_ON(entry.tag && (entry.tag != NVGPU_CTXSW_TAG_INVALID_TIMESTAMP)); | 331 | WARN_ON(entry.tag && (entry.tag != NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP)); |
332 | continue; | 332 | continue; |
333 | } | 333 | } |
334 | 334 | ||