diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index c70c1cd4..38570041 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <nvgpu/mm.h> | 38 | #include <nvgpu/mm.h> |
39 | #include <nvgpu/ctxsw_trace.h> | 39 | #include <nvgpu/ctxsw_trace.h> |
40 | #include <nvgpu/error_notifier.h> | 40 | #include <nvgpu/error_notifier.h> |
41 | #include <nvgpu/ecc.h> | ||
41 | 42 | ||
42 | #include "gk20a.h" | 43 | #include "gk20a.h" |
43 | #include "gr_gk20a.h" | 44 | #include "gr_gk20a.h" |
@@ -3127,6 +3128,8 @@ static void gk20a_remove_gr_support(struct gr_gk20a *gr) | |||
3127 | gr->ctx_vars.hwpm_ctxsw_buffer_offset_map = NULL; | 3128 | gr->ctx_vars.hwpm_ctxsw_buffer_offset_map = NULL; |
3128 | 3129 | ||
3129 | gk20a_comptag_allocator_destroy(g, &gr->comp_tags); | 3130 | gk20a_comptag_allocator_destroy(g, &gr->comp_tags); |
3131 | |||
3132 | nvgpu_ecc_remove_support(g); | ||
3130 | } | 3133 | } |
3131 | 3134 | ||
3132 | static int gr_gk20a_init_gr_config(struct gk20a *g, struct gr_gk20a *gr) | 3135 | static int gr_gk20a_init_gr_config(struct gk20a *g, struct gr_gk20a *gr) |
@@ -4872,8 +4875,9 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g) | |||
4872 | gr->remove_support = gk20a_remove_gr_support; | 4875 | gr->remove_support = gk20a_remove_gr_support; |
4873 | gr->sw_ready = true; | 4876 | gr->sw_ready = true; |
4874 | 4877 | ||
4875 | if (g->ops.gr.create_gr_sysfs) | 4878 | err = nvgpu_ecc_init_support(g); |
4876 | g->ops.gr.create_gr_sysfs(g); | 4879 | if (err) |
4880 | goto clean_up; | ||
4877 | 4881 | ||
4878 | nvgpu_log_fn(g, "done"); | 4882 | nvgpu_log_fn(g, "done"); |
4879 | return 0; | 4883 | return 0; |