gpu: nvgpu: move all instance blocks to vidmem

Use gk20a_gmmu_alloc() in gk20a_alloc_inst_block() so that
we always try to allocate all inst blocks in vidmem first

Also use common API gk20a_alloc_inst_block() in
channel_gk20a_alloc_inst() as well

Jira DNVGPU-22

Change-Id: I6c47c19aae1189d7e57f47a51d21a32e2df53c1f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1216140
(cherry picked from commit 6c84961a50eb8a8b080b2db08f87e58143f5a6e8)
Reviewed-on: http://git-master/r/1219704
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2016-09-06 15:13:57 +05:30
committed by mobile promotions
parent d07c4b48cf
commit f036594190
2 changed files with 2 additions and 2 deletions

View File

@@ -388,7 +388,7 @@ int channel_gk20a_alloc_inst(struct gk20a *g, struct channel_gk20a *ch)
gk20a_dbg_fn("");
err = gk20a_gmmu_alloc(g, ram_in_alloc_size_v(), &ch->inst_block);
err = gk20a_alloc_inst_block(g, &ch->inst_block);
if (err)
return err;

View File

@@ -4668,7 +4668,7 @@ int gk20a_alloc_inst_block(struct gk20a *g, struct mem_desc *inst_block)
gk20a_dbg_fn("");
err = gk20a_gmmu_alloc_sys(g, ram_in_alloc_size_v(), inst_block);
err = gk20a_gmmu_alloc(g, ram_in_alloc_size_v(), inst_block);
if (err) {
gk20a_err(dev, "%s: memory allocation failed\n", __func__);
return err;