From 6e3f9112eaf351276b10391f020d203d87314172 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 6 Dec 2017 14:22:52 -0800 Subject: gpu: nvgpu: Disallow use of bare channels All channels need to now be wrapped in TSGs. Disallow use of bare channels by preventing creation of GPFIFO for them. Bug 1842197 Change-Id: Id0ebee4c590804b96c09f8951e35ba2680b596e7 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1612697 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c index 99c518b5..67264f40 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c @@ -490,7 +490,8 @@ u32 gk20a_ce_create_context(struct gk20a *g, } /* allocate gpfifo (1024 should be more than enough) */ - err = gk20a_channel_alloc_gpfifo(ce_ctx->ch, 1024, 0, 0); + err = gk20a_channel_alloc_gpfifo(ce_ctx->ch, 1024, 0, + NVGPU_GPFIFO_FLAGS_ALLOW_BARE_CHANNEL); if (err) { nvgpu_err(g, "ce: unable to allocate gpfifo"); goto end; -- cgit v1.2.2