summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/as_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/as_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/as_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/as_gk20a.c b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
index 5ca7c806..74d83a7d 100644
--- a/drivers/gpu/nvgpu/gk20a/as_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
@@ -37,8 +37,8 @@ static void release_as_share_id(struct gk20a_as *as, int id)
37 return; 37 return;
38} 38}
39 39
40static int gk20a_as_alloc_share(struct gk20a_as *as, 40int gk20a_as_alloc_share(struct gk20a_as *as,
41 struct gk20a_as_share **out) 41 u32 flags, struct gk20a_as_share **out)
42{ 42{
43 struct gk20a *g = gk20a_from_as(as); 43 struct gk20a *g = gk20a_from_as(as);
44 struct gk20a_as_share *as_share; 44 struct gk20a_as_share *as_share;
@@ -56,7 +56,7 @@ static int gk20a_as_alloc_share(struct gk20a_as *as,
56 as_share->ref_cnt.counter = 1; 56 as_share->ref_cnt.counter = 1;
57 57
58 /* this will set as_share->vm. */ 58 /* this will set as_share->vm. */
59 err = g->ops.mm.vm_alloc_share(as_share); 59 err = g->ops.mm.vm_alloc_share(as_share, flags);
60 if (err) 60 if (err)
61 goto failed; 61 goto failed;
62 62
@@ -186,7 +186,7 @@ int gk20a_as_dev_open(struct inode *inode, struct file *filp)
186 return err; 186 return err;
187 } 187 }
188 188
189 err = gk20a_as_alloc_share(&g->as, &as_share); 189 err = gk20a_as_alloc_share(&g->as, 0, &as_share);
190 if (err) { 190 if (err) {
191 gk20a_dbg_fn("failed to alloc share"); 191 gk20a_dbg_fn("failed to alloc share");
192 gk20a_put_client(g); 192 gk20a_put_client(g);