summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index c35fb384..bd4b5879 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -35,6 +35,13 @@ enum {
35void gp10b_init_gr(struct gpu_ops *ops); 35void gp10b_init_gr(struct gpu_ops *ops);
36int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, 36int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size,
37 struct mem_desc *mem); 37 struct mem_desc *mem);
38void gr_gp10b_create_sysfs(struct platform_device *dev);
39
40struct ecc_stat {
41 char **names;
42 u32 *counters;
43 struct hlist_node hash_node;
44};
38 45
39struct gr_t18x { 46struct gr_t18x {
40 struct { 47 struct {
@@ -47,6 +54,27 @@ struct gr_t18x {
47 struct dentry *debugfs_dump_ctxsw_stats; 54 struct dentry *debugfs_dump_ctxsw_stats;
48 } ctx_vars; 55 } ctx_vars;
49 56
57 struct {
58 struct ecc_stat sm_lrf_single_err_count;
59 struct ecc_stat sm_lrf_double_err_count;
60
61 struct ecc_stat sm_shm_sec_count;
62 struct ecc_stat sm_shm_sed_count;
63 struct ecc_stat sm_shm_ded_count;
64
65 struct ecc_stat tex_total_sec_pipe0_count;
66 struct ecc_stat tex_total_ded_pipe0_count;
67 struct ecc_stat tex_unique_sec_pipe0_count;
68 struct ecc_stat tex_unique_ded_pipe0_count;
69 struct ecc_stat tex_total_sec_pipe1_count;
70 struct ecc_stat tex_total_ded_pipe1_count;
71 struct ecc_stat tex_unique_sec_pipe1_count;
72 struct ecc_stat tex_unique_ded_pipe1_count;
73
74 struct ecc_stat l2_sec_count;
75 struct ecc_stat l2_ded_count;
76 } ecc_stats;
77
50 int cilp_preempt_pending_chid; 78 int cilp_preempt_pending_chid;
51}; 79};
52 80