summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/Makefile
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2014-02-25 07:44:44 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:52 -0400
commite6b3d1e87f7f2d91c97bf260d4609f17d62ff8bc (patch)
treeb55b9a7adfe7387af1ea376f5edfaf58170a649b /drivers/gpu/nvgpu/gk20a/Makefile
parentdadaa5af564e9c5da56931c8f48882f985d5c5d1 (diff)
gpu: nvgpu: Add gk20a semaphore APIs
Add semaphore_gk20a.c/h that implement a new semaphore management API for the gk20a driver. The API introduces two entities, 'semaphore pools' and 'semaphores'. Semaphore pools are memory areas dedicated for hosting one or more semaphores. Typically, one pool equals one 4K page. A semaphore pool is always mapped to the kernel memory, and it can be mapped and unmapped to gpu address spaces using gk20a_semaphore_pool_map/unmap. Semaphores are backed by 16 bytes of memory allocated from a semaphore pool. The value of a semaphore can be 0=acuired or 1=released. When allocated, the semaphores are initialized to the acquired state. They can be released, or their releasing can be waited for by the CPU or GPU. Semaphores are intended to be used only once, and after they are released they should be freed so that the slot within the semaphore pool can be reused. However GPU jobs must take references to the semaphores that they use (similarly as they take references on memory buffers that they use) so that the semaphore backing memory is not reused too soon. Bug 1450122 Bug 1445450 Change-Id: I3fd35f34ca55035decc3e06a9c0ede20c1d48db9 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/374842 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/Makefile')
-rw-r--r--drivers/gpu/nvgpu/gk20a/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/Makefile b/drivers/gpu/nvgpu/gk20a/Makefile
index 81ae027e..e5eb817d 100644
--- a/drivers/gpu/nvgpu/gk20a/Makefile
+++ b/drivers/gpu/nvgpu/gk20a/Makefile
@@ -19,6 +19,7 @@ nvgpu-y := \
19 mm_gk20a.o \ 19 mm_gk20a.o \
20 pmu_gk20a.o \ 20 pmu_gk20a.o \
21 priv_ring_gk20a.o \ 21 priv_ring_gk20a.o \
22 semaphore_gk20a.o \
22 clk_gk20a.o \ 23 clk_gk20a.o \
23 therm_gk20a.o \ 24 therm_gk20a.o \
24 gr_ctx_gk20a_sim.o \ 25 gr_ctx_gk20a_sim.o \