From 8fb6a8562ec033d2d1319f91377cd1782f593979 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Mon, 18 Dec 2017 17:10:19 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1620854 GVS: Gerrit_Virtual_Submit Reviewed-by: Chris Dragan Tested-by: Chris Dragan Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/ecc_gk20a.h') 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 @@ struct gk20a_ecc_stat { char **names; u32 *counters; + u32 count; #ifdef CONFIG_SYSFS struct hlist_node hash_node; #endif -- cgit v1.2.2