Commit 223d5818 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen

scsi: megaraid_sas: Print firmware interrupt status

Add a print to dump the interrupt status in system log for debugging.
Signed-off-by: default avatarSumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b6661342
...@@ -202,7 +202,8 @@ megasas_enable_intr_fusion(struct megasas_instance *instance) ...@@ -202,7 +202,8 @@ megasas_enable_intr_fusion(struct megasas_instance *instance)
writel(~MFI_FUSION_ENABLE_INTERRUPT_MASK, &(regs)->outbound_intr_mask); writel(~MFI_FUSION_ENABLE_INTERRUPT_MASK, &(regs)->outbound_intr_mask);
/* Dummy readl to force pci flush */ /* Dummy readl to force pci flush */
readl(&regs->outbound_intr_mask); dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n",
__func__, readl(&regs->outbound_intr_mask));
} }
/** /**
...@@ -213,14 +214,14 @@ void ...@@ -213,14 +214,14 @@ void
megasas_disable_intr_fusion(struct megasas_instance *instance) megasas_disable_intr_fusion(struct megasas_instance *instance)
{ {
u32 mask = 0xFFFFFFFF; u32 mask = 0xFFFFFFFF;
u32 status;
struct megasas_register_set __iomem *regs; struct megasas_register_set __iomem *regs;
regs = instance->reg_set; regs = instance->reg_set;
instance->mask_interrupts = 1; instance->mask_interrupts = 1;
writel(mask, &regs->outbound_intr_mask); writel(mask, &regs->outbound_intr_mask);
/* Dummy readl to force pci flush */ /* Dummy readl to force pci flush */
status = readl(&regs->outbound_intr_mask); dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n",
__func__, readl(&regs->outbound_intr_mask));
} }
int int
...@@ -4894,8 +4895,8 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason) ...@@ -4894,8 +4895,8 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL); atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL);
dev_info(&instance->pdev->dev, "Interrupts are enabled and" dev_info(&instance->pdev->dev,
" controller is OPERATIONAL for scsi:%d\n", "Adapter is OPERATIONAL for scsi:%d\n",
instance->host->host_no); instance->host->host_no);
/* Restart SR-IOV heartbeat */ /* Restart SR-IOV heartbeat */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment