gpu: nvgpu: support upto four stall interrupt lines

Add two new variables in nvgpu_mc struct to support
upto four stall interrupt lines.

Variables:-

Total number of stall interrupt lines:
u32 irq_stall_count

Array to store irq_stall interrupt number for upto 4
stall irq lines:
u32 irq_stall_lines[4]

JIRA NVGPU-4864

Change-Id: I9b43fc20c78dbcaf97fe8e685bb77963f06d3f99
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2310377
Tested-by: Lakshmanan M <lm@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Lakshmanan M <lm@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Seema Khowala
2020-03-10 14:51:07 -07:00
committed by Alex Waterman
parent 4aff9bcd4e
commit 007ecfb5bc
3 changed files with 64 additions and 19 deletions

View File

@@ -560,6 +560,11 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
goto err_disable_msi;
}
/* Number of stall interrupt line = 1 (for dgpu <= tu10x) */
g->mc.irq_stall_count = 1;
g->mc.irq_stall_lines[0] = g->mc.irq_stall;
err = devm_request_threaded_irq(&pdev->dev,
g->mc.irq_stall,
nvgpu_pci_isr,