mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Move Intr handling common code to CIC
CIC (Central Interrupt controller) will be responsible for the interrupt handling. common.cic unit is the placeholder for all interrupt related code. Move interrupt related defines and Public APIs present in common.mc to common.cic. Note: The common.mc interrupts related struct definitions are not moved as part of this patch. Adapt the code to use interrupt handling related defines and public APIs migrated from common.mc to common.cic JIRA NVGPU-6899 Change-Id: I747e2b556c0dd66d58d74ee5bb36768b9370d276 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2535618 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9034b1676e
commit
9f43914933
@@ -73,9 +73,9 @@ void nvgpu_check_gpu_state(struct gk20a *g)
|
||||
|
||||
static void gk20a_mask_interrupts(struct gk20a *g)
|
||||
{
|
||||
nvgpu_mc_intr_mask(g);
|
||||
nvgpu_cic_intr_mask(g);
|
||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
||||
nvgpu_mc_log_pending_intrs(g);
|
||||
nvgpu_cic_log_pending_intrs(g);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -568,14 +568,14 @@ static int nvgpu_init_interrupt_setup(struct gk20a *g)
|
||||
/**
|
||||
* Disable all interrupts at the start.
|
||||
*/
|
||||
nvgpu_mc_intr_mask(g);
|
||||
nvgpu_cic_intr_mask(g);
|
||||
|
||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
||||
/**
|
||||
* For certain chips like gm20b, there is global interrupt control in
|
||||
* registers mc_intr_en_*_r. Program them here upfront.
|
||||
*/
|
||||
nvgpu_mc_intr_enable(g);
|
||||
nvgpu_cic_intr_enable(g);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user