summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-04-06 03:48:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-11 12:57:21 -0400
commit1a4647272f4fe50137c79583b698c1ef6f5def12 (patch)
tree0eee9698405e4467a7644c74c3d41d4bca933a8f /drivers/gpu/nvgpu/gk20a/fence_gk20a.c
parent6de456f8407ba7230410175f1aff90541137d19b (diff)
gpu: nvgpu: remove fence dependency tracking
In preparation for better abstraction in job synchronization, drop support for the dependency fences tracked via submit pre-fences in semaphore-based syncs. This has only worked for semaphores, not nvhost syncpoints, and hasn't really been used. The dependency was printed in the sync framework's sync pt value string. Remove also the userspace-visible gk20a_sync_pt_info which is not used and depends on this feature (providing a duration since the dependency fence's timestamp). Jira NVGPU-43 Change-Id: Ia2b26502a9dc8f5bef5470f94b1475001f621da1 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1456880 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fence_gk20a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
index 63da0959..a5aeae08 100644
--- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
@@ -233,7 +233,6 @@ int gk20a_fence_from_semaphore(
233 struct sync_timeline *timeline, 233 struct sync_timeline *timeline,
234 struct nvgpu_semaphore *semaphore, 234 struct nvgpu_semaphore *semaphore,
235 wait_queue_head_t *semaphore_wq, 235 wait_queue_head_t *semaphore_wq,
236 struct sync_fence *dependency,
237 bool wfi, bool need_sync_fence) 236 bool wfi, bool need_sync_fence)
238{ 237{
239 struct gk20a_fence *f = fence_out; 238 struct gk20a_fence *f = fence_out;
@@ -242,7 +241,7 @@ int gk20a_fence_from_semaphore(
242#ifdef CONFIG_SYNC 241#ifdef CONFIG_SYNC
243 if (need_sync_fence) { 242 if (need_sync_fence) {
244 sync_fence = gk20a_sync_fence_create(g, timeline, semaphore, 243 sync_fence = gk20a_sync_fence_create(g, timeline, semaphore,
245 dependency, "f-gk20a-0x%04x", 244 "f-gk20a-0x%04x",
246 nvgpu_semaphore_gpu_ro_va(semaphore)); 245 nvgpu_semaphore_gpu_ro_va(semaphore));
247 if (!sync_fence) 246 if (!sync_fence)
248 return -1; 247 return -1;