diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c index d235b261..009e5716 100644 --- a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | |||
@@ -127,6 +127,10 @@ static struct device_attribute *dev_attr_sm_l1_tag_ecc_corrected_err_count_array | |||
127 | static struct device_attribute *dev_attr_sm_l1_tag_ecc_uncorrected_err_count_array; | 127 | static struct device_attribute *dev_attr_sm_l1_tag_ecc_uncorrected_err_count_array; |
128 | static struct device_attribute *dev_attr_sm_cbu_ecc_corrected_err_count_array; | 128 | static struct device_attribute *dev_attr_sm_cbu_ecc_corrected_err_count_array; |
129 | static struct device_attribute *dev_attr_sm_cbu_ecc_uncorrected_err_count_array; | 129 | static struct device_attribute *dev_attr_sm_cbu_ecc_uncorrected_err_count_array; |
130 | static struct device_attribute *dev_attr_sm_l1_data_ecc_corrected_err_count_array; | ||
131 | static struct device_attribute *dev_attr_sm_l1_data_ecc_uncorrected_err_count_array; | ||
132 | static struct device_attribute *dev_attr_sm_icache_ecc_corrected_err_count_array; | ||
133 | static struct device_attribute *dev_attr_sm_icache_ecc_uncorrected_err_count_array; | ||
130 | 134 | ||
131 | void gr_gv11b_create_sysfs(struct device *dev) | 135 | void gr_gv11b_create_sysfs(struct device *dev) |
132 | { | 136 | { |
@@ -165,6 +169,30 @@ void gr_gv11b_create_sysfs(struct device *dev) | |||
165 | &g->gr.t19x.ecc_stats.sm_cbu_uncorrected_err_count, | 169 | &g->gr.t19x.ecc_stats.sm_cbu_uncorrected_err_count, |
166 | dev_attr_sm_cbu_ecc_uncorrected_err_count_array); | 170 | dev_attr_sm_cbu_ecc_uncorrected_err_count_array); |
167 | 171 | ||
172 | error |= gr_gp10b_ecc_stat_create(dev, | ||
173 | 0, | ||
174 | "sm_l1_data_ecc_corrected_err_count", | ||
175 | &g->gr.t19x.ecc_stats.sm_l1_data_corrected_err_count, | ||
176 | dev_attr_sm_l1_data_ecc_corrected_err_count_array); | ||
177 | |||
178 | error |= gr_gp10b_ecc_stat_create(dev, | ||
179 | 0, | ||
180 | "sm_l1_data_ecc_uncorrected_err_count", | ||
181 | &g->gr.t19x.ecc_stats.sm_l1_data_uncorrected_err_count, | ||
182 | dev_attr_sm_l1_data_ecc_uncorrected_err_count_array); | ||
183 | |||
184 | error |= gr_gp10b_ecc_stat_create(dev, | ||
185 | 0, | ||
186 | "sm_icache_ecc_corrected_err_count", | ||
187 | &g->gr.t19x.ecc_stats.sm_icache_corrected_err_count, | ||
188 | dev_attr_sm_icache_ecc_corrected_err_count_array); | ||
189 | |||
190 | error |= gr_gp10b_ecc_stat_create(dev, | ||
191 | 0, | ||
192 | "sm_icache_ecc_uncorrected_err_count", | ||
193 | &g->gr.t19x.ecc_stats.sm_icache_uncorrected_err_count, | ||
194 | dev_attr_sm_icache_ecc_uncorrected_err_count_array); | ||
195 | |||
168 | if (error) | 196 | if (error) |
169 | dev_err(dev, "Failed to create gv11b sysfs attributes!\n"); | 197 | dev_err(dev, "Failed to create gv11b sysfs attributes!\n"); |
170 | } | 198 | } |
@@ -193,4 +221,24 @@ static void gr_gv11b_remove_sysfs(struct device *dev) | |||
193 | &g->gr.t19x.ecc_stats.sm_cbu_uncorrected_err_count, | 221 | &g->gr.t19x.ecc_stats.sm_cbu_uncorrected_err_count, |
194 | dev_attr_sm_cbu_ecc_uncorrected_err_count_array); | 222 | dev_attr_sm_cbu_ecc_uncorrected_err_count_array); |
195 | 223 | ||
224 | gr_gp10b_ecc_stat_remove(dev, | ||
225 | 0, | ||
226 | &g->gr.t19x.ecc_stats.sm_l1_data_corrected_err_count, | ||
227 | dev_attr_sm_l1_data_ecc_corrected_err_count_array); | ||
228 | |||
229 | gr_gp10b_ecc_stat_remove(dev, | ||
230 | 0, | ||
231 | &g->gr.t19x.ecc_stats.sm_l1_data_uncorrected_err_count, | ||
232 | dev_attr_sm_l1_data_ecc_uncorrected_err_count_array); | ||
233 | |||
234 | gr_gp10b_ecc_stat_remove(dev, | ||
235 | 0, | ||
236 | &g->gr.t19x.ecc_stats.sm_icache_corrected_err_count, | ||
237 | dev_attr_sm_icache_ecc_corrected_err_count_array); | ||
238 | |||
239 | gr_gp10b_ecc_stat_remove(dev, | ||
240 | 0, | ||
241 | &g->gr.t19x.ecc_stats.sm_icache_uncorrected_err_count, | ||
242 | dev_attr_sm_icache_ecc_uncorrected_err_count_array); | ||
243 | |||
196 | } | 244 | } |