From 49be5d49292c9c853f5b6ad53c32d59f866322ec Mon Sep 17 00:00:00 2001 From: Deepak Goyal Date: Wed, 15 Nov 2017 11:40:54 +0530 Subject: gpu: nvgpu: gv11b: implement ecc scrubber Check the availability of ecc units by checking relevant ecc fuse and fuse overrides. During gpu boot, initialize ecc units by scrubbing individual ecc units available. ECC initialization should be done before gr initialization. Following ecc units are scrubbed: SM LRF SM L1 DATA SM L1 TAG SM CBU SM ICACHE Bug 200339497 Change-Id: I54bf8cc1fce639a9993bf80984dafc28dca0dba3 Signed-off-by: Deepak Goyal Signed-off-by: seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/1612734 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index f6bdf6e5..65cae8de 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c @@ -392,6 +392,7 @@ static const struct gpu_ops gv11b_ops = { gr_gv11b_init_gfxp_wfi_timeout_count, .get_max_gfxp_wfi_timeout_count = gr_gv11b_get_max_gfxp_wfi_timeout_count, + .ecc_init_scrub_reg = gr_gv11b_ecc_init_scrub_reg, }, .fb = { .reset = gv11b_fb_reset, -- cgit v1.2.2