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/channel_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index e6f73cf6..21ebeb9f 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -49,6 +49,7 @@ struct fifo_profile_gk20a; #define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1 << 0) #define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1) #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) +#define NVGPU_GPFIFO_FLAGS_ALLOW_BARE_CHANNEL (1 << 3) /* Flags to be passed to g->ops.gr.alloc_obj_ctx() */ #define NVGPU_OBJ_CTX_FLAGS_SUPPORT_GFXP (1 << 1) -- cgit v1.2.2