diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-12-31 03:37:36 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 18:06:38 -0400 |
commit | 4ccb162da7a2414c344aecc9cdf85bee9c284caf (patch) | |
tree | 8387c9c2ab9b3fbbbb83f312f96e5210027c62fb /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 364156cdcd706510bc37b93a3c7109b45b02d318 (diff) |
gpu: nvgpu: unify instance block creation
Reduce copypaste code in instance block allocation and deletion with
functions purposed for that.
Change-Id: I2c8ae6a317ac89e2c857dde4296cb4316b8aaafe
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/668698
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 6ccb6ab1..d3ee8670 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -389,6 +389,9 @@ static inline int max_vaddr_bits_gk20a(void) | |||
389 | #define bar1_instance_block_shift_gk20a() bus_bar1_block_ptr_shift_v() | 389 | #define bar1_instance_block_shift_gk20a() bus_bar1_block_ptr_shift_v() |
390 | #endif | 390 | #endif |
391 | 391 | ||
392 | int gk20a_alloc_inst_block(struct gk20a *g, struct inst_desc *inst_block); | ||
393 | void gk20a_free_inst_block(struct gk20a *g, struct inst_desc *inst_block); | ||
394 | |||
392 | void gk20a_mm_dump_vm(struct vm_gk20a *vm, | 395 | void gk20a_mm_dump_vm(struct vm_gk20a *vm, |
393 | u64 va_begin, u64 va_end, char *label); | 396 | u64 va_begin, u64 va_end, char *label); |
394 | 397 | ||