summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
index 8d3a4ca3..5c3a1cfc 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
@@ -40,8 +40,6 @@ int gk20a_ce2_nonstall_isr(struct gk20a *g, u32 inst_id, u32 pri_base);
40#define NVGPU_CE_MAX_COMMAND_BUFF_SIZE_PER_KICKOFF 256 40#define NVGPU_CE_MAX_COMMAND_BUFF_SIZE_PER_KICKOFF 256
41#define NVGPU_CE_MAX_COMMAND_BUFF_SIZE_FOR_TRACING 8 41#define NVGPU_CE_MAX_COMMAND_BUFF_SIZE_FOR_TRACING 8
42 42
43typedef void (*ce_event_callback)(u32 ce_ctx_id, u32 ce_event_flag);
44
45/* dma launch_flags */ 43/* dma launch_flags */
46enum { 44enum {
47 /* location */ 45 /* location */
@@ -69,14 +67,6 @@ enum {
69 NVGPU_CE_MEMSET = (1 << 1), 67 NVGPU_CE_MEMSET = (1 << 1),
70}; 68};
71 69
72/* CE event flags */
73enum {
74 NVGPU_CE_CONTEXT_JOB_COMPLETED = (1 << 0),
75 NVGPU_CE_CONTEXT_JOB_TIMEDOUT = (1 << 1),
76 NVGPU_CE_CONTEXT_SUSPEND = (1 << 2),
77 NVGPU_CE_CONTEXT_RESUME = (1 << 3),
78};
79
80/* CE app state machine flags */ 70/* CE app state machine flags */
81enum { 71enum {
82 NVGPU_CE_ACTIVE = (1 << 0), 72 NVGPU_CE_ACTIVE = (1 << 0),
@@ -106,7 +96,6 @@ struct gk20a_gpu_ctx {
106 u32 ctx_id; 96 u32 ctx_id;
107 struct nvgpu_mutex gpu_ctx_mutex; 97 struct nvgpu_mutex gpu_ctx_mutex;
108 int gpu_ctx_state; 98 int gpu_ctx_state;
109 ce_event_callback user_event_callback;
110 99
111 /* tsg related data */ 100 /* tsg related data */
112 struct tsg_gk20a *tsg; 101 struct tsg_gk20a *tsg;
@@ -120,9 +109,6 @@ struct gk20a_gpu_ctx {
120 109
121 struct nvgpu_list_node list; 110 struct nvgpu_list_node list;
122 111
123 u64 submitted_seq_number;
124 u64 completed_seq_number;
125
126 u32 cmd_buf_read_queue_offset; 112 u32 cmd_buf_read_queue_offset;
127 u32 cmd_buf_end_queue_offset; 113 u32 cmd_buf_end_queue_offset;
128}; 114};
@@ -140,12 +126,11 @@ void gk20a_ce_suspend(struct gk20a *g);
140void gk20a_ce_destroy(struct gk20a *g); 126void gk20a_ce_destroy(struct gk20a *g);
141 127
142/* CE app utility functions */ 128/* CE app utility functions */
143u32 gk20a_ce_create_context_with_cb(struct gk20a *g, 129u32 gk20a_ce_create_context(struct gk20a *g,
144 int runlist_id, 130 int runlist_id,
145 int priority, 131 int priority,
146 int timeslice, 132 int timeslice,
147 int runlist_level, 133 int runlist_level);
148 ce_event_callback user_event_callback);
149int gk20a_ce_execute_ops(struct gk20a *g, 134int gk20a_ce_execute_ops(struct gk20a *g,
150 u32 ce_ctx_id, 135 u32 ce_ctx_id,
151 u64 src_buf, 136 u64 src_buf,