mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +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
@@ -24,6 +24,7 @@
|
||||
#include <nvgpu/nvgpu_common.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/mc.h>
|
||||
#include <nvgpu/cic.h>
|
||||
#include <nvgpu/enabled.h>
|
||||
#include <nvgpu/errata.h>
|
||||
#include <nvgpu/nvlink_probe.h>
|
||||
@@ -325,8 +326,8 @@ static struct pci_device_id nvgpu_pci_table[] = {
|
||||
static irqreturn_t nvgpu_pci_isr(int irq, void *dev_id)
|
||||
{
|
||||
struct gk20a *g = dev_id;
|
||||
u32 ret_stall = nvgpu_intr_stall_isr(g);
|
||||
u32 ret_nonstall = nvgpu_intr_nonstall_isr(g);
|
||||
u32 ret_stall = nvgpu_cic_intr_stall_isr(g);
|
||||
u32 ret_nonstall = nvgpu_cic_intr_nonstall_isr(g);
|
||||
|
||||
#if defined(CONFIG_PCI_MSI)
|
||||
/* Send MSI EOI */
|
||||
@@ -334,8 +335,8 @@ static irqreturn_t nvgpu_pci_isr(int irq, void *dev_id)
|
||||
g->ops.xve.rearm_msi(g);
|
||||
#endif
|
||||
|
||||
if ((ret_stall == NVGPU_INTR_HANDLE) ||
|
||||
(ret_nonstall == NVGPU_INTR_HANDLE)) {
|
||||
if ((ret_stall == NVGPU_CIC_INTR_HANDLE) ||
|
||||
(ret_nonstall == NVGPU_CIC_INTR_HANDLE)) {
|
||||
return IRQ_WAKE_THREAD;
|
||||
}
|
||||
|
||||
@@ -346,8 +347,8 @@ static irqreturn_t nvgpu_pci_intr_thread(int irq, void *dev_id)
|
||||
{
|
||||
struct gk20a *g = dev_id;
|
||||
|
||||
nvgpu_intr_stall_handle(g);
|
||||
nvgpu_intr_nonstall_handle(g);
|
||||
nvgpu_cic_intr_stall_handle(g);
|
||||
nvgpu_cic_intr_nonstall_handle(g);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user