summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hal_gp10b.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/gp10b/hal_gp10b.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/gp10b/hal_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 94adf727..d32f644d 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -56,6 +56,7 @@
56#include "gp10b/regops_gp10b.h" 56#include "gp10b/regops_gp10b.h"
57#include "gp10b/therm_gp10b.h" 57#include "gp10b/therm_gp10b.h"
58#include "gp10b/priv_ring_gp10b.h" 58#include "gp10b/priv_ring_gp10b.h"
59#include "gp10b/ecc_gp10b.h"
59 60
60#include "gm20b/ltc_gm20b.h" 61#include "gm20b/ltc_gm20b.h"
61#include "gm20b/gr_gm20b.h" 62#include "gm20b/gr_gm20b.h"
@@ -339,11 +340,8 @@ static const struct gpu_ops gp10b_ops = {
339 .init_preemption_state = gr_gp10b_init_preemption_state, 340 .init_preemption_state = gr_gp10b_init_preemption_state,
340 .update_boosted_ctx = gr_gp10b_update_boosted_ctx, 341 .update_boosted_ctx = gr_gp10b_update_boosted_ctx,
341 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, 342 .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3,
342#ifdef CONFIG_SYSFS
343 .create_gr_sysfs = gr_gp10b_create_sysfs,
344 .remove_gr_sysfs = gr_gp10b_remove_sysfs,
345#endif
346 .set_ctxsw_preemption_mode = gr_gp10b_set_ctxsw_preemption_mode, 343 .set_ctxsw_preemption_mode = gr_gp10b_set_ctxsw_preemption_mode,
344 .init_ecc = gp10b_ecc_init,
347 .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data, 345 .init_ctxsw_hdr_data = gr_gp10b_init_ctxsw_hdr_data,
348 .init_gfxp_wfi_timeout_count = 346 .init_gfxp_wfi_timeout_count =
349 gr_gp10b_init_gfxp_wfi_timeout_count, 347 gr_gp10b_init_gfxp_wfi_timeout_count,