gpu: nvgpu: Fix error injection HAL init

Currently, the registeration with error injection utility is done
only for GA10b using HAL. But HALs are not initialized during the
probe stage when we try to register the error injection utility.
So, the callback registration does not happen HAL is set to NULL.
Move the callback registration from probe to poweron stage when HAL
is initialized.
Update the nvgpu_cic_mon_init_lut() API name as it is no longer
doing only LUT initialization.

Bug 3828050

Change-Id: Ide718029e9317124749b4a51c423ae70dc8227c8
Signed-off-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2790269
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Tejal Kudav
2022-10-11 16:09:15 +00:00
committed by mobile promotions
parent f29ed3a474
commit 41c874a2d9
16 changed files with 58 additions and 56 deletions

View File

@@ -796,7 +796,7 @@ gk20a_bus_set_bar0_window
nvgpu_pramin_ops_init
nvgpu_dma_alloc_vid_at
nvgpu_cic_mon_setup
nvgpu_cic_mon_init_lut
nvgpu_cic_mon_init
nvgpu_cic_mon_deinit
nvgpu_cic_mon_bound_check_hw_unit_id
nvgpu_cic_mon_bound_check_err_id

View File

@@ -823,7 +823,7 @@ nvgpu_rc_ce_fault
gp10b_priv_ring_isr_handle_0
gp10b_priv_ring_isr_handle_1
nvgpu_cic_mon_setup
nvgpu_cic_mon_init_lut
nvgpu_cic_mon_init
nvgpu_cic_mon_deinit
nvgpu_cic_mon_bound_check_hw_unit_id
nvgpu_cic_mon_bound_check_err_id