summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-07-07 03:36:46 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-07-08 07:19:04 -0400
commitd33fb5a9645ef95a97fcf6b3f8f10d9a812ade6d (patch)
treecfd53a1fb88e044b8b7004ff9b32f1093efd4f1c /drivers/gpu/nvgpu/gm206
parente27c72446bf09196d6d66f28389f00565273a13f (diff)
gpu: nvgpu: use vidmem by default in gmmu_alloc variants
For devices that have vidmem available, use the vidmem allocator in gk20a_gmmu_alloc{,attr,_map,_map_attr}. For others, use sysmem. Because all of the buffers haven't been tested to work in vidmem yet, rename calls to gk20a_gmmu_alloc{,attr,_map,_map_attr} to have _sys at the end to declare explicitly that vidmem is used. Enabling vidmem for each now is a matter of removing "_sys" from the function call. Jira DNVGPU-18 Change-Id: Ibe42f67eff2c2b68c36582e978ace419dc815dc5 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1176805 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r--drivers/gpu/nvgpu/gm206/acr_gm206.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/acr_gm206.c b/drivers/gpu/nvgpu/gm206/acr_gm206.c
index 5a61bd21..988761f0 100644
--- a/drivers/gpu/nvgpu/gm206/acr_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/acr_gm206.c
@@ -252,7 +252,7 @@ static int gm206_bootstrap_hs_flcn(struct gk20a *g)
252 err = -1; 252 err = -1;
253 goto err_release_acr_fw; 253 goto err_release_acr_fw;
254 } 254 }
255 err = gk20a_gmmu_alloc_map(vm, img_size_in_bytes, 255 err = gk20a_gmmu_alloc_map_sys(vm, img_size_in_bytes,
256 &acr->acr_ucode); 256 &acr->acr_ucode);
257 if (err) { 257 if (err) {
258 err = -ENOMEM; 258 err = -ENOMEM;