summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/channel.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/channel.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/channel.c b/drivers/gpu/nvgpu/common/linux/channel.c
index 88bc2009..e2a10634 100644
--- a/drivers/gpu/nvgpu/common/linux/channel.c
+++ b/drivers/gpu/nvgpu/common/linux/channel.c
@@ -19,6 +19,7 @@
19#include <nvgpu/ltc.h> 19#include <nvgpu/ltc.h>
20#include <nvgpu/error_notifier.h> 20#include <nvgpu/error_notifier.h>
21#include <nvgpu/os_sched.h> 21#include <nvgpu/os_sched.h>
22#include <nvgpu/timers.h>
22 23
23/* 24/*
24 * This is required for nvgpu_vm_find_buf() which is used in the tracing 25 * This is required for nvgpu_vm_find_buf() which is used in the tracing
@@ -817,7 +818,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
817 } 818 }
818 819
819 if (profile) 820 if (profile)
820 profile->timestamp[PROFILE_ENTRY] = sched_clock(); 821 profile->timestamp[PROFILE_ENTRY] = nvgpu_current_time_ns();
821 822
822 /* update debug settings */ 823 /* update debug settings */
823 nvgpu_ltc_sync_enabled(g); 824 nvgpu_ltc_sync_enabled(g);
@@ -966,7 +967,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
966 } 967 }
967 968
968 if (profile) 969 if (profile)
969 profile->timestamp[PROFILE_JOB_TRACKING] = sched_clock(); 970 profile->timestamp[PROFILE_JOB_TRACKING] = nvgpu_current_time_ns();
970 971
971 if (wait_cmd) 972 if (wait_cmd)
972 gk20a_submit_append_priv_cmdbuf(c, wait_cmd); 973 gk20a_submit_append_priv_cmdbuf(c, wait_cmd);
@@ -991,7 +992,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
991 /* TODO! Check for errors... */ 992 /* TODO! Check for errors... */
992 gk20a_channel_add_job(c, job, skip_buffer_refcounting); 993 gk20a_channel_add_job(c, job, skip_buffer_refcounting);
993 if (profile) 994 if (profile)
994 profile->timestamp[PROFILE_APPEND] = sched_clock(); 995 profile->timestamp[PROFILE_APPEND] = nvgpu_current_time_ns();
995 996
996 g->ops.fifo.userd_gp_put(g, c); 997 g->ops.fifo.userd_gp_put(g, c);
997 998
@@ -1010,7 +1011,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
1010 c->gpfifo.put, c->gpfifo.get, c->gpfifo.entry_num); 1011 c->gpfifo.put, c->gpfifo.get, c->gpfifo.entry_num);
1011 1012
1012 if (profile) 1013 if (profile)
1013 profile->timestamp[PROFILE_END] = sched_clock(); 1014 profile->timestamp[PROFILE_END] = nvgpu_current_time_ns();
1014 nvgpu_log_fn(g, "done"); 1015 nvgpu_log_fn(g, "done");
1015 return err; 1016 return err;
1016 1017