[PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yang, Bo <Bo.Yang@...>, 'James.Bottomley@SteelEye.com' <James.Bottomley@...>
Cc: 'linux-scsi@vger.kernel.org' <linux-scsi@...>, 'James.Bottomley@SteelEye.com' <James.Bottomley@...>, 'akpm@osdl.org' <akpm@...>, 'linux-kernel@vger.kernel.org' <linux-kernel@...>, Patro, Sumant <Sumant.Patro@...>, Austria, Winston <Winston.Austria@...>, poswald@novell.com <poswald@...>
Date: Friday, August 1, 2008 - 12:19 pm

MegaRAID SAS Driver get unexpected Interrupt.  Add the dumy readl to force PCI flush will fix this issue.

Signed-off-by Bo Yang<bo.yang@lsi.com>

---
drivers/scsi/megaraid/megaraid_sas.c |    6 ++++++
1 files changed, 6 insertions(+)

diff -rupN linux-2.6.28_orig/drivers/scsi/megaraid/megaraid_sas.c linux-2.6.28_new/drivers/scsi/megaraid/megaraid_sas.c
--- linux-2.6.28_orig/drivers/scsi/megaraid/megaraid_sas.c      2008-07-31 12:00:58.000000000 -0400
+++ linux-2.6.28_new/drivers/scsi/megaraid/megaraid_sas.c       2008-07-31 12:30:35.000000000 -0400
@@ -198,6 +198,9 @@ megasas_clear_intr_xscale(struct megasas
         */
        writel(status, &regs->outbound_intr_status);

+       /* Dummy readl to force pci flush */
+       readl(&regs->outbound_intr_status);
+
        return 0;
 }

@@ -293,6 +296,9 @@ megasas_clear_intr_ppc(struct megasas_re
         */
        writel(status, &regs->outbound_doorbell_clear);

+       /* Dummy readl to force pci flush */
+       readl(&regs->outbound_doorbell_clear);
+
        return 0;
 }
 /**
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force..., Yang, Bo, (Fri Aug 1, 12:19 pm)