summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-26 14:13:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:44 -0400
commit9d37d8b78c2dac7fa480493d1ab67b95290b87f1 (patch)
tree338d862a37c8639c68a22f9543fa1499f2307762 /drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h
parent6431ec360bf7b7baf6dd687b1525c40114ede189 (diff)
gpu: nvgpu: Reorg fecs_trace HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the fecs_trace sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I84485ad64997270c6a0fce3c95dc9ceb0094cf6c Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527419 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h
index 5262538a..887fe415 100644
--- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h
@@ -35,12 +35,14 @@ long gk20a_ctxsw_dev_ioctl(struct file *filp,
35ssize_t gk20a_ctxsw_dev_read(struct file *, char __user *, size_t, loff_t *); 35ssize_t gk20a_ctxsw_dev_read(struct file *, char __user *, size_t, loff_t *);
36unsigned int gk20a_ctxsw_dev_poll(struct file *, struct poll_table_struct *); 36unsigned int gk20a_ctxsw_dev_poll(struct file *, struct poll_table_struct *);
37int gk20a_ctxsw_dev_mmap(struct file *, struct vm_area_struct *); 37int gk20a_ctxsw_dev_mmap(struct file *, struct vm_area_struct *);
38int gk20a_ctxsw_dev_ring_alloc(struct gk20a *g, void **buf, size_t *size);
39int gk20a_ctxsw_dev_ring_free(struct gk20a *g);
40int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, struct vm_area_struct *vma);
38 41
39int gk20a_ctxsw_trace_init(struct gk20a *); 42int gk20a_ctxsw_trace_init(struct gk20a *);
40void gk20a_ctxsw_trace_cleanup(struct gk20a *); 43void gk20a_ctxsw_trace_cleanup(struct gk20a *);
41int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *); 44int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *);
42void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); 45void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid);
43void gk20a_ctxsw_trace_init_ops(struct gpu_ops *ops);
44 46
45void gk20a_ctxsw_trace_channel_reset(struct gk20a *g, struct channel_gk20a *ch); 47void gk20a_ctxsw_trace_channel_reset(struct gk20a *g, struct channel_gk20a *ch);
46void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg); 48void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg);