diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 2ae1b758..f1dc2f03 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -436,6 +436,7 @@ struct gpu_ops { | |||
436 | void (*init_gfxp_wfi_timeout_count)(struct gk20a *g); | 436 | void (*init_gfxp_wfi_timeout_count)(struct gk20a *g); |
437 | unsigned long (*get_max_gfxp_wfi_timeout_count) | 437 | unsigned long (*get_max_gfxp_wfi_timeout_count) |
438 | (struct gk20a *g); | 438 | (struct gk20a *g); |
439 | void (*ecc_init_scrub_reg)(struct gk20a *g); | ||
439 | } gr; | 440 | } gr; |
440 | struct { | 441 | struct { |
441 | void (*init_hw)(struct gk20a *g); | 442 | void (*init_hw)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 99f85b57..ea4d1d24 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4478,7 +4478,10 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g) | |||
4478 | if (g->ops.gr.enable_gpc_exceptions) | 4478 | if (g->ops.gr.enable_gpc_exceptions) |
4479 | g->ops.gr.enable_gpc_exceptions(g); | 4479 | g->ops.gr.enable_gpc_exceptions(g); |
4480 | 4480 | ||
4481 | /* TBD: ECC for L1/SM */ | 4481 | /* enable ECC for L1/SM */ |
4482 | if (g->ops.gr.ecc_init_scrub_reg) | ||
4483 | g->ops.gr.ecc_init_scrub_reg(g); | ||
4484 | |||
4482 | /* TBD: enable per BE exceptions */ | 4485 | /* TBD: enable per BE exceptions */ |
4483 | 4486 | ||
4484 | /* reset and enable exceptions */ | 4487 | /* reset and enable exceptions */ |