summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2015-10-09 06:36:08 -0400
committerKonsta Holtta <kholtta@nvidia.com>2015-11-11 02:19:45 -0500
commit411c3a9a4f7451a8f6fe3b533bfd77d3f46f7387 (patch)
tree1f27481b796e139f7ecb67375b3af55719b10c6a /drivers/gpu/nvgpu/gk20a/cde_gk20a.c
parent84523485399e29abeb4e89c064b4591985aeea91 (diff)
gpu: nvgpu: use a separate big vm for cde
Allocate a separate VM for CDE channels instead of using the system (PMU) vm, and make it much bigger than the PMU's to fit the maximum number of CDE channels there. Bug 1566740 Change-Id: I4f487c40c9ec79cc9ffb880b0ecd3f47eb450336 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/815149 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
index 6d8633a7..01fca058 100644
--- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
@@ -1194,8 +1194,8 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
1194 } 1194 }
1195 1195
1196 /* bind the channel to the vm */ 1196 /* bind the channel to the vm */
1197 gk20a_vm_get(&g->mm.pmu.vm); 1197 gk20a_vm_get(&g->mm.cde.vm);
1198 ch->vm = &g->mm.pmu.vm; 1198 ch->vm = &g->mm.cde.vm;
1199 err = channel_gk20a_commit_va(ch); 1199 err = channel_gk20a_commit_va(ch);
1200 if (err) { 1200 if (err) {
1201 gk20a_warn(&cde_ctx->pdev->dev, "cde: could not bind vm"); 1201 gk20a_warn(&cde_ctx->pdev->dev, "cde: could not bind vm");