mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: units: gr: Add gr ecc_init support
Enable gr ecc_init_support as part of the gr_init_support. Jira NVGPU-3970 Change-Id: I4d1026b3025e5d54988f7612e1ed07a6ad8b34f5 Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2199131 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -105,11 +105,22 @@ int test_gr_init_support(struct unit_module *m, struct gk20a *g, void *args)
|
||||
/* over-ride the falcon load_ctxsw_ucode */
|
||||
g->ops.gr.falcon.load_ctxsw_ucode = test_gr_falcon_load_ctxsw_ucode;
|
||||
|
||||
/* init gpu characteristics */
|
||||
g->ops.chip_init_gpu_characteristics(g);
|
||||
|
||||
err = nvgpu_gr_init_support(g);
|
||||
if (err != 0) {
|
||||
unit_return_fail(m, "nvgpu_gr_init_support returned fail\n");
|
||||
}
|
||||
|
||||
/* gr ecc init */
|
||||
if (g->ops.gr.ecc.ecc_init_support != NULL) {
|
||||
err = g->ops.gr.ecc.ecc_init_support(g);
|
||||
if (err != 0) {
|
||||
unit_return_fail(m, "gr_ecc_init failed\n");
|
||||
}
|
||||
}
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user