summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/posix
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-06-26 20:37:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-19 19:43:58 -0400
commit7f14aafc2c02eb0fab458324d0ba91a7fdea3086 (patch)
treecda9f48839fbde3444fde521a9b0069eb06cd81a /drivers/gpu/nvgpu/common/posix
parent5ff1b3fe5a30c926e59a55ad25dd4daf430c8579 (diff)
gpu: nvgpu: rework ecc structure and sysfs
- create common file common/ecc.c which include common functions for add ecc counters and remove counters. - common code will create a list of all counter which make it easier to iterate all counters. - Add chip specific file for adding ecc counters. - add linux specific file os/linux/ecc_sysfs.c to export counters to sysfs. - remove obsolete code - MISRA violation for using snprintf is not solved, tracking with jira NVGPU-859 Jira NVGPUT-115 Change-Id: I1905c43c5c9b2b131199807533dee8e63ddc12f4 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1763536 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/posix')
-rw-r--r--drivers/gpu/nvgpu/common/posix/stubs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/posix/stubs.c b/drivers/gpu/nvgpu/common/posix/stubs.c
index d6270692..0fa80bff 100644
--- a/drivers/gpu/nvgpu/common/posix/stubs.c
+++ b/drivers/gpu/nvgpu/common/posix/stubs.c
@@ -25,8 +25,19 @@
25 * for an implementation. 25 * for an implementation.
26 */ 26 */
27 27
28#include <nvgpu/ecc.h>
29
28#include "gk20a/dbg_gpu_gk20a.h" 30#include "gk20a/dbg_gpu_gk20a.h"
29 31
30void nvgpu_dbg_session_post_event(struct dbg_session_gk20a *dbg_s) 32void nvgpu_dbg_session_post_event(struct dbg_session_gk20a *dbg_s)
31{ 33{
32} 34}
35
36int nvgpu_ecc_sysfs_init(struct gk20a *g)
37{
38 return 0;
39}
40
41void nvgpu_ecc_sysfs_remove(struct gk20a *g)
42{
43}