summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2019-08-07 02:27:28 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2019-08-15 03:57:45 -0400
commit58ee7561f72653aea8acece9f5d33ff8fe6fb99d (patch)
tree9af9a5b706a9cdb52a0e32e2364edbe93dbdd69a /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
parentae175e45edc5807131dfb1b63d3e4795e96a3f86 (diff)
gpu: nvgpu: Add CHANNEL_SETUP_BIND IOCTL
For a long time now, the ALLOC_GPFIFO_EX channel IOCTL has done much more than just gpfifo allocation, and its signature does not match support that's needed soon. Add a new one called SETUP_BIND to hopefully cover our future needs and deprecate ALLOC_GPFIFO_EX. Change nvgpu internals to match this new naming as well. Bug 200145225 Bug 200541476 Change-Id: I766f9283a064e140656f6004b2b766db70bd6cad Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1835186 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> (cherry-picked from e0c8a16c8d474eac6723fea3980833873ab921a6 in dev-main) Reviewed-on: https://git-master.nvidia.com/r/2169882 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index 5052fc35..9dcba25a 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -420,7 +420,7 @@ u32 gk20a_ce_create_context(struct gk20a *g,
420{ 420{
421 struct gk20a_gpu_ctx *ce_ctx; 421 struct gk20a_gpu_ctx *ce_ctx;
422 struct gk20a_ce_app *ce_app = &g->ce_app; 422 struct gk20a_ce_app *ce_app = &g->ce_app;
423 struct nvgpu_gpfifo_args gpfifo_args; 423 struct nvgpu_setup_bind_args setup_bind_args;
424 u32 ctx_id = ~0; 424 u32 ctx_id = ~0;
425 int err = 0; 425 int err = 0;
426 426
@@ -476,13 +476,13 @@ u32 gk20a_ce_create_context(struct gk20a *g,
476 goto end; 476 goto end;
477 } 477 }
478 478
479 gpfifo_args.num_entries = 1024; 479 setup_bind_args.num_gpfifo_entries = 1024;
480 gpfifo_args.num_inflight_jobs = 0; 480 setup_bind_args.num_inflight_jobs = 0;
481 gpfifo_args.flags = 0; 481 setup_bind_args.flags = 0;
482 /* allocate gpfifo (1024 should be more than enough) */ 482 /* allocate gpfifo (1024 should be more than enough) */
483 err = gk20a_channel_alloc_gpfifo(ce_ctx->ch, &gpfifo_args); 483 err = nvgpu_channel_setup_bind(ce_ctx->ch, &setup_bind_args);
484 if (err) { 484 if (err) {
485 nvgpu_err(g, "ce: unable to allocate gpfifo"); 485 nvgpu_err(g, "ce: unable to setup and bind channel");
486 goto end; 486 goto end;
487 } 487 }
488 488