summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c5
-rw-r--r--drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h4
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h6
3 files changed, 7 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c
index e775c10b..453d5b2f 100644
--- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c
@@ -23,7 +23,6 @@
23#ifdef CONFIG_DEBUG_FS 23#ifdef CONFIG_DEBUG_FS
24#include <linux/debugfs.h> 24#include <linux/debugfs.h>
25#endif 25#endif
26#include <uapi/linux/nvgpu.h>
27 26
28#include <nvgpu/kmem.h> 27#include <nvgpu/kmem.h>
29#include <nvgpu/dma.h> 28#include <nvgpu/dma.h>
@@ -738,14 +737,14 @@ int gk20a_fecs_trace_deinit(struct gk20a *g)
738} 737}
739 738
740int gk20a_gr_max_entries(struct gk20a *g, 739int gk20a_gr_max_entries(struct gk20a *g,
741 struct nvgpu_ctxsw_trace_filter *filter) 740 struct nvgpu_gpu_ctxsw_trace_filter *filter)
742{ 741{
743 int n; 742 int n;
744 int tag; 743 int tag;
745 744
746 /* Compute number of entries per record, with given filter */ 745 /* Compute number of entries per record, with given filter */
747 for (n = 0, tag = 0; tag < gk20a_fecs_trace_num_ts(); tag++) 746 for (n = 0, tag = 0; tag < gk20a_fecs_trace_num_ts(); tag++)
748 n += (NVGPU_CTXSW_FILTER_ISSET(tag, filter) != 0); 747 n += (NVGPU_GPU_CTXSW_FILTER_ISSET(tag, filter) != 0);
749 748
750 /* Return max number of entries generated for the whole ring */ 749 /* Return max number of entries generated for the whole ring */
751 return n * GK20A_FECS_TRACE_NUM_RECORDS; 750 return n * GK20A_FECS_TRACE_NUM_RECORDS;
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h
index acac14c6..8e723107 100644
--- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h
@@ -25,7 +25,7 @@
25 25
26struct gk20a; 26struct gk20a;
27struct channel_gk20a; 27struct channel_gk20a;
28struct nvgpu_ctxsw_trace_filter; 28struct nvgpu_gpu_ctxsw_trace_filter;
29 29
30int gk20a_fecs_trace_poll(struct gk20a *g); 30int gk20a_fecs_trace_poll(struct gk20a *g);
31int gk20a_fecs_trace_init(struct gk20a *g); 31int gk20a_fecs_trace_init(struct gk20a *g);
@@ -35,7 +35,7 @@ int gk20a_fecs_trace_unbind_channel(struct gk20a *g, struct channel_gk20a *ch);
35int gk20a_fecs_trace_reset(struct gk20a *g); 35int gk20a_fecs_trace_reset(struct gk20a *g);
36int gk20a_fecs_trace_deinit(struct gk20a *g); 36int gk20a_fecs_trace_deinit(struct gk20a *g);
37int gk20a_gr_max_entries(struct gk20a *g, 37int gk20a_gr_max_entries(struct gk20a *g,
38 struct nvgpu_ctxsw_trace_filter *filter); 38 struct nvgpu_gpu_ctxsw_trace_filter *filter);
39int gk20a_fecs_trace_enable(struct gk20a *g); 39int gk20a_fecs_trace_enable(struct gk20a *g);
40int gk20a_fecs_trace_disable(struct gk20a *g); 40int gk20a_fecs_trace_disable(struct gk20a *g);
41bool gk20a_fecs_trace_is_enabled(struct gk20a *g); 41bool gk20a_fecs_trace_is_enabled(struct gk20a *g);
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 8fc88677..93a5bb23 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -43,7 +43,7 @@ struct nvgpu_mem_sgt;
43struct nvgpu_warpstate; 43struct nvgpu_warpstate;
44struct nvgpu_clk_arb; 44struct nvgpu_clk_arb;
45#ifdef CONFIG_GK20A_CTXSW_TRACE 45#ifdef CONFIG_GK20A_CTXSW_TRACE
46struct nvgpu_ctxsw_trace_filter; 46struct nvgpu_gpu_ctxsw_trace_filter;
47#endif 47#endif
48struct priv_cmd_entry; 48struct priv_cmd_entry;
49 49
@@ -894,7 +894,7 @@ struct gpu_ops {
894 struct { 894 struct {
895 int (*init)(struct gk20a *g); 895 int (*init)(struct gk20a *g);
896 int (*max_entries)(struct gk20a *, 896 int (*max_entries)(struct gk20a *,
897 struct nvgpu_ctxsw_trace_filter *filter); 897 struct nvgpu_gpu_ctxsw_trace_filter *filter);
898 int (*flush)(struct gk20a *g); 898 int (*flush)(struct gk20a *g);
899 int (*poll)(struct gk20a *g); 899 int (*poll)(struct gk20a *g);
900 int (*enable)(struct gk20a *g); 900 int (*enable)(struct gk20a *g);
@@ -911,7 +911,7 @@ struct gpu_ops {
911 int (*mmap_user_buffer)(struct gk20a *g, 911 int (*mmap_user_buffer)(struct gk20a *g,
912 struct vm_area_struct *vma); 912 struct vm_area_struct *vma);
913 int (*set_filter)(struct gk20a *g, 913 int (*set_filter)(struct gk20a *g,
914 struct nvgpu_ctxsw_trace_filter *filter); 914 struct nvgpu_gpu_ctxsw_trace_filter *filter);
915 } fecs_trace; 915 } fecs_trace;
916#endif 916#endif
917 struct { 917 struct {