diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2015-01-14 07:02:23 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:04:35 -0400 |
commit | 2dda8077ec7d88ac689b57448031a3bac269fdfa (patch) | |
tree | 9513c040114e286ddb0fed68a667d13eaf3a4491 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | d29be09f6f4fa9aa4a41ecbb45eaa906b43319e9 (diff) |
gpu: nvgpu: unify instance block initialization
Create gk20a_init_inst_block() to reduce reg write clutter when
initializing instance blocks, which is done in several places.
Change-Id: Idcb8b604851a849e0bb6abce5743c9f4cbf98033
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/672434
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index d39dcff0..79bc50af 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A memory management | 2 | * GK20A memory management |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-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, |
@@ -398,6 +398,8 @@ static inline int max_vaddr_bits_gk20a(void) | |||
398 | 398 | ||
399 | int gk20a_alloc_inst_block(struct gk20a *g, struct inst_desc *inst_block); | 399 | int gk20a_alloc_inst_block(struct gk20a *g, struct inst_desc *inst_block); |
400 | void gk20a_free_inst_block(struct gk20a *g, struct inst_desc *inst_block); | 400 | void gk20a_free_inst_block(struct gk20a *g, struct inst_desc *inst_block); |
401 | void gk20a_init_inst_block(struct inst_desc *inst_block, struct vm_gk20a *vm, | ||
402 | u32 big_page_size); | ||
401 | 403 | ||
402 | void gk20a_mm_dump_vm(struct vm_gk20a *vm, | 404 | void gk20a_mm_dump_vm(struct vm_gk20a *vm, |
403 | u64 va_begin, u64 va_end, char *label); | 405 | u64 va_begin, u64 va_end, char *label); |