summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-11-08 10:37:24 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-10 13:30:19 -0500
commit83bdf33b56b231784987028c9c3c461097a962aa (patch)
tree80744d6cf20aaa20ab1c7640d38a8432f9081c14 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parenta17a938a48af462ccf89195196a13b9623af2e21 (diff)
gpu: nvgpu: remove NVGPU_ALLOC_OBJ_FLAGS_* from common code
In gr_gp10b_alloc_gr_ctx(), we use linux specific flags NVGPU_ALLOC_OBJ_FLAGS_* Since common code should be independent of linux specific code, define new flags NVGPU_OBJ_CTX_FLAGS_SUPPORT_* in common code and use them wherever needed Linux code will parse the user flags and send appropriate flags to g->ops.gr.alloc_obj_ctx() Also remove use of NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO since this seems to be deadcode anyways Jira NVGPU-382 Change-Id: Id82efe0d46ddc3e2c063610025ea57f283bc3510 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1594452 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 58a8aa97..d865849b 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -52,6 +52,10 @@ struct fifo_profile_gk20a;
52#define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1 << 0) 52#define NVGPU_GPFIFO_FLAGS_SUPPORT_VPR (1 << 0)
53#define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1) 53#define NVGPU_GPFIFO_FLAGS_SUPPORT_DETERMINISTIC (1 << 1)
54 54
55/* Flags to be passed to g->ops.gr.alloc_obj_ctx() */
56#define NVGPU_OBJ_CTX_FLAGS_SUPPORT_GFXP (1 << 1)
57#define NVGPU_OBJ_CTX_FLAGS_SUPPORT_CILP (1 << 2)
58
55struct notification { 59struct notification {
56 struct { 60 struct {
57 u32 nanoseconds[2]; 61 u32 nanoseconds[2];