summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
authorLakshmanan M <lm@nvidia.com>2017-05-10 04:52:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-18 12:04:34 -0400
commitb1d303685b384d58064d8b18ec97e1302bcbba88 (patch)
treefebc0226b712513b025afd78f5c898f41b4846d3 /drivers/gpu/nvgpu/gp10b/gr_gp10b.h
parent4d7711b076acf077b93b8cbac40ab0429b33fce6 (diff)
gpu: nvgpu: Add gr_t19x support for gv11b ECC
This CL covers the following modification, 1) Added gr_t19x support for gv11b ECC 2) Modified the gp10b platform config for gv11b sysfs support JIRA GPUT19X-85 JIRA GPUT19X-104 JIRA GPUT19X-100 JIRA GPUT19X-103 Bug 1825948 Bug 1825962 Bug 1775457 Change-Id: I0bf13f80a73cc2184147230d098e89a517554c01 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1478952 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index c4c206c3..588a7d8f 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -22,6 +22,12 @@
22 22
23struct gpu_ops; 23struct gpu_ops;
24 24
25struct gr_gp10b_ecc_stat {
26 char **names;
27 u32 *counters;
28 struct hlist_node hash_node;
29};
30
25enum { 31enum {
26 PASCAL_CHANNEL_GPFIFO_A = 0xC06F, 32 PASCAL_CHANNEL_GPFIFO_A = 0xC06F,
27 PASCAL_A = 0xC097, 33 PASCAL_A = 0xC097,
@@ -45,12 +51,6 @@ int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size,
45 struct nvgpu_mem *mem); 51 struct nvgpu_mem *mem);
46void gr_gp10b_create_sysfs(struct device *dev); 52void gr_gp10b_create_sysfs(struct device *dev);
47 53
48struct ecc_stat {
49 char **names;
50 u32 *counters;
51 struct hlist_node hash_node;
52};
53
54struct gr_t18x { 54struct gr_t18x {
55 struct { 55 struct {
56 u32 preempt_image_size; 56 u32 preempt_image_size;
@@ -69,24 +69,24 @@ struct gr_t18x {
69 } ctx_vars; 69 } ctx_vars;
70 70
71 struct { 71 struct {
72 struct ecc_stat sm_lrf_single_err_count; 72 struct gr_gp10b_ecc_stat sm_lrf_single_err_count;
73 struct ecc_stat sm_lrf_double_err_count; 73 struct gr_gp10b_ecc_stat sm_lrf_double_err_count;
74 74
75 struct ecc_stat sm_shm_sec_count; 75 struct gr_gp10b_ecc_stat sm_shm_sec_count;
76 struct ecc_stat sm_shm_sed_count; 76 struct gr_gp10b_ecc_stat sm_shm_sed_count;
77 struct ecc_stat sm_shm_ded_count; 77 struct gr_gp10b_ecc_stat sm_shm_ded_count;
78 78
79 struct ecc_stat tex_total_sec_pipe0_count; 79 struct gr_gp10b_ecc_stat tex_total_sec_pipe0_count;
80 struct ecc_stat tex_total_ded_pipe0_count; 80 struct gr_gp10b_ecc_stat tex_total_ded_pipe0_count;
81 struct ecc_stat tex_unique_sec_pipe0_count; 81 struct gr_gp10b_ecc_stat tex_unique_sec_pipe0_count;
82 struct ecc_stat tex_unique_ded_pipe0_count; 82 struct gr_gp10b_ecc_stat tex_unique_ded_pipe0_count;
83 struct ecc_stat tex_total_sec_pipe1_count; 83 struct gr_gp10b_ecc_stat tex_total_sec_pipe1_count;
84 struct ecc_stat tex_total_ded_pipe1_count; 84 struct gr_gp10b_ecc_stat tex_total_ded_pipe1_count;
85 struct ecc_stat tex_unique_sec_pipe1_count; 85 struct gr_gp10b_ecc_stat tex_unique_sec_pipe1_count;
86 struct ecc_stat tex_unique_ded_pipe1_count; 86 struct gr_gp10b_ecc_stat tex_unique_ded_pipe1_count;
87 87
88 struct ecc_stat l2_sec_count; 88 struct gr_gp10b_ecc_stat l2_sec_count;
89 struct ecc_stat l2_ded_count; 89 struct gr_gp10b_ecc_stat l2_ded_count;
90 } ecc_stats; 90 } ecc_stats;
91 91
92 u32 fecs_feature_override_ecc_val; 92 u32 fecs_feature_override_ecc_val;