diff options
author | David Nieto <dmartineznie@nvidia.com> | 2017-12-18 20:10:19 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-12-28 13:01:36 -0500 |
commit | 8fb6a8562ec033d2d1319f91377cd1782f593979 (patch) | |
tree | 07b7fe61cd9763ddf5cee2934994841fa330b90a /drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | |
parent | f19f22fcc8ef21b363b873c499cbd2e690af29f8 (diff) |
gpu: nvgpu: gv11b: Report LTC errors per slice
Add support to report ltc ecc errors per slice
(1) use new logic to detect subunits
(2) store size of array and check before comparison to prevent out of bounds
derefencing
(3) use new hashing to prevent collisions or entries with permuted names
bug 2037425
Change-Id: I63b9f0df43b9dceddc1bae17924c4723072f569e
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1620854
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chris Dragan <kdragan@nvidia.com>
Tested-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ecc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h index 0d1ed5df..57eec1e0 100644 --- a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | |||
@@ -27,6 +27,7 @@ | |||
27 | struct gk20a_ecc_stat { | 27 | struct gk20a_ecc_stat { |
28 | char **names; | 28 | char **names; |
29 | u32 *counters; | 29 | u32 *counters; |
30 | u32 count; | ||
30 | #ifdef CONFIG_SYSFS | 31 | #ifdef CONFIG_SYSFS |
31 | struct hlist_node hash_node; | 32 | struct hlist_node hash_node; |
32 | #endif | 33 | #endif |