diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/cde.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c index b366acc4..e5441ac9 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.c +++ b/drivers/gpu/nvgpu/common/linux/cde.c | |||
@@ -1277,6 +1277,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) | |||
1277 | struct channel_gk20a *ch; | 1277 | struct channel_gk20a *ch; |
1278 | struct tsg_gk20a *tsg; | 1278 | struct tsg_gk20a *tsg; |
1279 | struct gr_gk20a *gr = &g->gr; | 1279 | struct gr_gk20a *gr = &g->gr; |
1280 | struct nvgpu_gpfifo_args gpfifo_args; | ||
1280 | int err = 0; | 1281 | int err = 0; |
1281 | u64 vaddr; | 1282 | u64 vaddr; |
1282 | 1283 | ||
@@ -1316,8 +1317,11 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) | |||
1316 | goto err_alloc_gpfifo; | 1317 | goto err_alloc_gpfifo; |
1317 | } | 1318 | } |
1318 | 1319 | ||
1320 | gpfifo_args.num_entries = 1024; | ||
1321 | gpfifo_args.num_inflight_jobs = 0; | ||
1322 | gpfifo_args.flags = 0; | ||
1319 | /* allocate gpfifo (1024 should be more than enough) */ | 1323 | /* allocate gpfifo (1024 should be more than enough) */ |
1320 | err = gk20a_channel_alloc_gpfifo(ch, 1024, 0, 0); | 1324 | err = gk20a_channel_alloc_gpfifo(ch, &gpfifo_args); |
1321 | if (err) { | 1325 | if (err) { |
1322 | nvgpu_warn(g, "cde: unable to allocate gpfifo"); | 1326 | nvgpu_warn(g, "cde: unable to allocate gpfifo"); |
1323 | goto err_alloc_gpfifo; | 1327 | goto err_alloc_gpfifo; |