diff options
author | Michael Frydrych <mfrydrych@nvidia.com> | 2014-01-24 03:20:33 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:57:49 -0400 |
commit | a0dcd3b203cb5c2eb3b5bb83903a8aece67b70ec (patch) | |
tree | e3db509d0c93c88e40c6f78c1346be5ad682fd41 /drivers/gpu | |
parent | 86637dcef9a978d21bae9978ce3f6863a45fc973 (diff) |
sync: Support timestamp passing
Timestamps read in an interrupt handler and when fence state
is being updated can differ by variable amount. That
add unnecessary jitter to original interrupt times.
This patch adds support for passing timestamp from the device
driver thereby allowing more accurate timestamps.
Bug 1543760
Change-Id: Idcfd5cb435b0bd585e3c16cd299c6f456d4509c4
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/360939
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index 5e15cd5f..74cf5c5a 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A Sync Framework Integration | 2 | * GK20A Sync Framework Integration |
3 | * | 3 | * |
4 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -341,7 +341,7 @@ struct sync_fence *gk20a_sync_fence_fdget(int fd) | |||
341 | 341 | ||
342 | void gk20a_sync_timeline_signal(struct sync_timeline *timeline) | 342 | void gk20a_sync_timeline_signal(struct sync_timeline *timeline) |
343 | { | 343 | { |
344 | sync_timeline_signal(timeline); | 344 | sync_timeline_signal(timeline, 0); |
345 | } | 345 | } |
346 | 346 | ||
347 | void gk20a_sync_timeline_destroy(struct sync_timeline *timeline) | 347 | void gk20a_sync_timeline_destroy(struct sync_timeline *timeline) |