diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-04-27 13:40:33 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-29 17:43:48 -0400 |
commit | 8891fd82679da0ea1d09b4b415dc3b94fa4c0269 (patch) | |
tree | b1217f92db3702f2bb6d9344ffbd1980d9019616 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 556643179f1223555e352b48be31df3eda9390b6 (diff) |
gpu: nvgpu: Add gk20a_gmmu_fixed_map() function
Add a function to allow the kernel to do fixed mappings. Necessary
for the semaphore functionality since there needs to be a common
address in each VM for the semaphores.
Bug 1732449
JIRA DNVGPU-12
Change-Id: I2b451db2d3cb3c003d951f7b0ffc87f6c91db7dc
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1133789
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 2c2df1a9..e7154c84 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -471,6 +471,13 @@ u64 gk20a_gmmu_map(struct vm_gk20a *vm, | |||
471 | u32 flags, | 471 | u32 flags, |
472 | int rw_flag, | 472 | int rw_flag, |
473 | bool priv); | 473 | bool priv); |
474 | u64 gk20a_gmmu_fixed_map(struct vm_gk20a *vm, | ||
475 | struct sg_table **sgt, | ||
476 | u64 addr, | ||
477 | u64 size, | ||
478 | u32 flags, | ||
479 | int rw_flag, | ||
480 | bool priv); | ||
474 | 481 | ||
475 | int gk20a_gmmu_alloc_map(struct vm_gk20a *vm, | 482 | int gk20a_gmmu_alloc_map(struct vm_gk20a *vm, |
476 | size_t size, | 483 | size_t size, |