summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
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/gv11b/hal_gv11b.c
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/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index 366d6928..efac772c 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -84,6 +84,7 @@
84#include "regops_gv11b.h" 84#include "regops_gv11b.h"
85#include "subctx_gv11b.h" 85#include "subctx_gv11b.h"
86#include "therm_gv11b.h" 86#include "therm_gv11b.h"
87#include "ecc_gv11b.h"
87 88
88#include <nvgpu/ptimer.h> 89#include <nvgpu/ptimer.h>
89#include <nvgpu/debug.h> 90#include <nvgpu/debug.h>
@@ -369,10 +370,7 @@ static const struct gpu_ops gv11b_ops = {
369 .update_boosted_ctx = gr_gp10b_update_boosted_ctx, 370 .update_boosted_ctx = gr_gp10b_update_boosted_ctx,
370 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, 371 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3,
371 .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, 372 .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4,
372#ifdef CONFIG_SYSFS 373 .init_ecc = gv11b_ecc_init,
373 .create_gr_sysfs = gr_gv11b_create_sysfs,
374 .remove_gr_sysfs = gr_gv11b_remove_sysfs,
375#endif
376 .set_ctxsw_preemption_mode = gr_gv11b_set_ctxsw_preemption_mode, 374 .set_ctxsw_preemption_mode = gr_gv11b_set_ctxsw_preemption_mode,
377 .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, 375 .is_etpc_addr = gv11b_gr_pri_is_etpc_addr,
378 .egpc_etpc_priv_addr_table = gv11b_gr_egpc_etpc_priv_addr_table, 376 .egpc_etpc_priv_addr_table = gv11b_gr_egpc_etpc_priv_addr_table,