diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-02-26 17:37:43 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:59:26 -0400 |
commit | 7290a6cbd5d03145d6f1ca4c3eacba40f6d4f93c (patch) | |
tree | de452c09f5eef76af273041dc64997fdc351dbd6 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |
parent | bb51cf9ec6482b50f3020179965ef82f58d91a0a (diff) |
gpu: nvgpu: Implement common allocator and mem_desc
Introduce mem_desc, which holds all information needed for a buffer.
Implement helper functions for allocation and freeing that use this
data type.
Change-Id: I82c88595d058d4fb8c5c5fbf19d13269e48e422f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/712699
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index c199964f..5ade9e6c 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -656,7 +656,7 @@ static u32 gr_gm20b_get_tpc_num(u32 addr) | |||
656 | static void gr_gm20b_load_gpccs_with_bootloader(struct gk20a *g) | 656 | static void gr_gm20b_load_gpccs_with_bootloader(struct gk20a *g) |
657 | { | 657 | { |
658 | struct gk20a_ctxsw_ucode_info *ucode_info = &g->ctxsw_ucode_info; | 658 | struct gk20a_ctxsw_ucode_info *ucode_info = &g->ctxsw_ucode_info; |
659 | u64 addr_base = ucode_info->ucode_gpuva; | 659 | u64 addr_base = ucode_info->surface_desc.gpu_va; |
660 | 660 | ||
661 | gr_gk20a_load_falcon_bind_instblk(g); | 661 | gr_gk20a_load_falcon_bind_instblk(g); |
662 | 662 | ||