diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c index f3866d6a..cc05ceff 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | |||
@@ -170,7 +170,7 @@ static int gk20a_ctxsw_dev_alloc_buffer(struct gk20a_ctxsw_dev *dev, | |||
170 | return 0; | 170 | return 0; |
171 | } | 171 | } |
172 | 172 | ||
173 | static int gk20a_ctxsw_dev_ring_alloc(struct gk20a *g, | 173 | int gk20a_ctxsw_dev_ring_alloc(struct gk20a *g, |
174 | void **buf, size_t *size) | 174 | void **buf, size_t *size) |
175 | { | 175 | { |
176 | struct nvgpu_ctxsw_ring_header *hdr; | 176 | struct nvgpu_ctxsw_ring_header *hdr; |
@@ -194,7 +194,7 @@ static int gk20a_ctxsw_dev_ring_alloc(struct gk20a *g, | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | static int gk20a_ctxsw_dev_ring_free(struct gk20a *g) | 197 | int gk20a_ctxsw_dev_ring_free(struct gk20a *g) |
198 | { | 198 | { |
199 | struct gk20a_ctxsw_dev *dev = &g->ctxsw_trace->devs[0]; | 199 | struct gk20a_ctxsw_dev *dev = &g->ctxsw_trace->devs[0]; |
200 | 200 | ||
@@ -457,7 +457,7 @@ static struct vm_operations_struct gk20a_ctxsw_dev_vma_ops = { | |||
457 | .close = gk20a_ctxsw_dev_vma_close, | 457 | .close = gk20a_ctxsw_dev_vma_close, |
458 | }; | 458 | }; |
459 | 459 | ||
460 | static int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, | 460 | int gk20a_ctxsw_dev_mmap_buffer(struct gk20a *g, |
461 | struct vm_area_struct *vma) | 461 | struct vm_area_struct *vma) |
462 | { | 462 | { |
463 | return remap_vmalloc_range(vma, g->ctxsw_trace->devs[0].hdr, 0); | 463 | return remap_vmalloc_range(vma, g->ctxsw_trace->devs[0].hdr, 0); |
@@ -715,10 +715,3 @@ void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg) | |||
715 | #endif | 715 | #endif |
716 | trace_gk20a_channel_reset(~0, tsg->tsgid); | 716 | trace_gk20a_channel_reset(~0, tsg->tsgid); |
717 | } | 717 | } |
718 | |||
719 | void gk20a_ctxsw_trace_init_ops(struct gpu_ops *ops) | ||
720 | { | ||
721 | ops->fecs_trace.alloc_user_buffer = gk20a_ctxsw_dev_ring_alloc; | ||
722 | ops->fecs_trace.free_user_buffer = gk20a_ctxsw_dev_ring_free; | ||
723 | ops->fecs_trace.mmap_user_buffer = gk20a_ctxsw_dev_mmap_buffer; | ||
724 | } | ||