public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush
       [not found] <FFD04EB4FBD32E4B929B6CFDEDA6AA0D632A9F@NAMAIL1.ad.lsil.com>
@ 2008-08-01 16:19 ` Yang, Bo
  2008-08-05  0:41   ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Yang, Bo @ 2008-08-01 16:19 UTC (permalink / raw)
  To: Yang, Bo
  Cc: 'linux-scsi@vger.kernel.org',
	'James.Bottomley@SteelEye.com', 'akpm@osdl.org',
	'linux-kernel@vger.kernel.org', Patro, Sumant,
	Austria, Winston, poswald@novell.com

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;
 }
 /**

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush
  2008-08-01 16:19 ` [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush Yang, Bo
@ 2008-08-05  0:41   ` Andrew Morton
  2008-08-05 12:27     ` Yang, Bo
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2008-08-05  0:41 UTC (permalink / raw)
  To: Yang, Bo
  Cc: 'James.Bottomley@SteelEye.com',
	'linux-scsi@vger.kernel.org', 'akpm@osdl.org',
	'linux-kernel@vger.kernel.org', Patro, Sumant,
	Austria, Winston, poswald@novell.com

On Fri, 1 Aug 2008 10:19:07 -0600 "Yang, Bo" <Bo.Yang@lsi.com> wrote:

> 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;
>  }
>  /**

These patches all had their tabs replaced with spaces.  I fixed them up.

Please always run checkpatch on all patches.  checkpatch found this:

ERROR: Macros with complex values should be enclosed in parenthesis
#182: FILE: drivers/scsi/megaraid/megaraid_sas.h:586:
+#define MFI_GEN2_ENABLE_INTERRUPT_MASK		0x00000001 | 0x00000004

which is a potential source of bugs.  I queued a patch to fix that also.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush
  2008-08-05  0:41   ` Andrew Morton
@ 2008-08-05 12:27     ` Yang, Bo
  2008-08-10 15:03       ` James Bottomley
  0 siblings, 1 reply; 5+ messages in thread
From: Yang, Bo @ 2008-08-05 12:27 UTC (permalink / raw)
  To: Andrew Morton
  Cc: 'James.Bottomley@SteelEye.com',
	'linux-scsi@vger.kernel.org', 'akpm@osdl.org',
	'linux-kernel@vger.kernel.org', Patro, Sumant,
	Austria, Winston, poswald@novell.com

Thanks Andrew.

Bo Yang

________________________________________
From: Andrew Morton [akpm@linux-foundation.org]
Sent: Monday, August 04, 2008 8:41 PM
To: Yang, Bo
Cc: 'James.Bottomley@SteelEye.com'; 'linux-scsi@vger.kernel.org'; 'akpm@osdl.org'; 'linux-kernel@vger.kernel.org'; Patro, Sumant; Austria, Winston; poswald@novell.com
Subject: Re: [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush

On Fri, 1 Aug 2008 10:19:07 -0600 "Yang, Bo" <Bo.Yang@lsi.com> wrote:

> 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;
>  }
>  /**

These patches all had their tabs replaced with spaces.  I fixed them up.

Please always run checkpatch on all patches.  checkpatch found this:

ERROR: Macros with complex values should be enclosed in parenthesis
#182: FILE: drivers/scsi/megaraid/megaraid_sas.h:586:
+#define MFI_GEN2_ENABLE_INTERRUPT_MASK         0x00000001 | 0x00000004

which is a potential source of bugs.  I queued a patch to fix that also.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush
  2008-08-05 12:27     ` Yang, Bo
@ 2008-08-10 15:03       ` James Bottomley
  2008-08-10 19:40         ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2008-08-10 15:03 UTC (permalink / raw)
  To: Yang, Bo
  Cc: Andrew Morton, 'linux-scsi@vger.kernel.org',
	'akpm@osdl.org', 'linux-kernel@vger.kernel.org',
	Patro, Sumant, Austria, Winston, poswald@novell.com

On Tue, 2008-08-05 at 06:27 -0600, Yang, Bo wrote:
> Thanks Andrew.

So could we have the corrected patch, please ... at least the pci
posting flush fix looks like a pure bug fix that's a rc candidate.

James



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush
  2008-08-10 15:03       ` James Bottomley
@ 2008-08-10 19:40         ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2008-08-10 19:40 UTC (permalink / raw)
  To: James Bottomley
  Cc: Yang, Bo, 'linux-scsi@vger.kernel.org',
	'akpm@osdl.org', 'linux-kernel@vger.kernel.org',
	Patro, Sumant, Austria, Winston, poswald@novell.com

On Sun, 10 Aug 2008 10:03:36 -0500 James Bottomley <James.Bottomley@HansenPartnership.com> wrote:

> On Tue, 2008-08-05 at 06:27 -0600, Yang, Bo wrote:
> > Thanks Andrew.
> 
> So could we have the corrected patch, please ... at least the pci
> posting flush fix looks like a pure bug fix that's a rc candidate.
> 

I'll send them over now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-10 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <FFD04EB4FBD32E4B929B6CFDEDA6AA0D632A9F@NAMAIL1.ad.lsil.com>
2008-08-01 16:19 ` [PATCH 1/4] scsi: megaraid_sas - Add the dumy readl to force PCI flush Yang, Bo
2008-08-05  0:41   ` Andrew Morton
2008-08-05 12:27     ` Yang, Bo
2008-08-10 15:03       ` James Bottomley
2008-08-10 19:40         ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox