gpu: nvgpu: Move intr data members from MC to CIC

Move interrupt specific data-members from common.mc to common.cic
Some of these data members like sw_irq_stall_last_handled_cond need
To be initialized much earlier during the OS specific init/probe stage.
Also, some more members from struct nvgpu_interrupts(like stall_size,
stall_lines[]), which will soon be moved to CIC will also need to be
initialized early during the OS specific probe stage.
However, the chip specific LUT can only be initialized after the
hal_init stage where the HALs are all initialized.
Split the CIC init to accommodate the above initialization requirements.

JIRA NVGPU-6899

Change-Id: I9333db4cde59bb0aa8f6eb9f8472f00369817a5d
Signed-off-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2552535
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Tejal Kudav
2021-05-27 03:22:47 +00:00
committed by mobile promotions
parent 695dcab297
commit b33079d47e
23 changed files with 477 additions and 133 deletions

View File

@@ -802,3 +802,7 @@ nvgpu_cic_mon_get_err_desc
nvgpu_cic_mon_report_err_safety_services
nvgpu_cic_mon_get_num_hw_modules
nvgpu_cic_mon_remove
nvgpu_cic_rm_setup
nvgpu_cic_rm_init_vars
nvgpu_cic_rm_deinit_vars
nvgpu_cic_rm_remove

View File

@@ -817,3 +817,7 @@ nvgpu_cic_mon_get_err_desc
nvgpu_cic_mon_report_err_safety_services
nvgpu_cic_mon_get_num_hw_modules
nvgpu_cic_mon_remove
nvgpu_cic_rm_setup
nvgpu_cic_rm_init_vars
nvgpu_cic_rm_deinit_vars
nvgpu_cic_rm_remove