diff options
author | Adeel Raza <araza@nvidia.com> | 2015-12-11 19:16:21 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:10 -0500 |
commit | e9b03e903c10e1fce9daf5fa7e51b8c4a0b65c95 (patch) | |
tree | 7d55abac9face13a5753fc26a9817743606e8870 /drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |
parent | f7d327985fca67266ea409e24c0ef6505d98f338 (diff) |
gpu: nvgpu: gp10b: add ECC stats sysfs nodes
Add sysfs nodes for querying ECC single/double bit error counts.
Bug 1699676
Change-Id: I6d5219facadaa17207ac759b88fe19077207d8f1
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/935363
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 28 |
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 { | |||
35 | void gp10b_init_gr(struct gpu_ops *ops); | 35 | void gp10b_init_gr(struct gpu_ops *ops); |
36 | int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, | 36 | int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, |
37 | struct mem_desc *mem); | 37 | struct mem_desc *mem); |
38 | void gr_gp10b_create_sysfs(struct platform_device *dev); | ||
39 | |||
40 | struct ecc_stat { | ||
41 | char **names; | ||
42 | u32 *counters; | ||
43 | struct hlist_node hash_node; | ||
44 | }; | ||
38 | 45 | ||
39 | struct gr_t18x { | 46 | struct 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 | ||