public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [BK PATCH] essential SCSI fixes for 2.6.5-rc2
  2004-03-20 14:30 [BK PATCH] essential SCSI fixes for 2.6.5-rc2 James Bottomley
@ 2004-03-20 12:33 ` Andi Kleen
  2004-03-20 15:21   ` James Bottomley
  0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2004-03-20 12:33 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi

James Bottomley <James.Bottomley@steeleye.com> writes:

> These are the two oops related fixes from the scsi-misc-2.6 tree that
> testing has shaken out.  They are available at
>
> bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
>
> The shortlog is:
>

[...]

Any chance you could include the fusion consistent mask patch with this? 

Without this fusion is completely unusable with >4GB on 64bit.

-Andi

diff -burpN -X ../KDIFX -x '*-SLAB' linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c
--- linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c	2004-03-20 03:55:31.000000000 +0100
+++ linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c	2004-03-20 04:11:24.000000000 +0100
@@ -1280,12 +1280,17 @@ mptbase_probe(struct pci_dev *pdev, cons
 		return r;
 	}
 
+#if 0
+	/* broken because some code assumes that multiple calls
+	   to pci_alloc_consistent return data in the same 4GB segment. 
+	   This cannot work on machines with enough memory. */
 	if (!pci_set_consistent_dma_mask(pdev, mask))
 		dprintk((KERN_INFO MYNAM
 			": Using 64 bit consistent mask\n"));
 	else
 		dprintk((KERN_INFO MYNAM
 			": Not using 64 bit consistent mask\n"));
+#endif
 
 	ioc = kmalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC);
 	if (ioc == NULL) {


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

* [BK PATCH] essential SCSI fixes for 2.6.5-rc2
@ 2004-03-20 14:30 James Bottomley
  2004-03-20 12:33 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2004-03-20 14:30 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds; +Cc: SCSI Mailing List, Linux Kernel

These are the two oops related fixes from the scsi-misc-2.6 tree that
testing has shaken out.  They are available at

bk://linux-scsi.bkbits.net/scsi-for-linus-2.6

The shortlog is:



Brian King:
  o SCSI: Fix Oops in sg with lots of SG_IO activity

Kai Mäkisara:
  o Fix SCSI + st regressions problem


And the diffstat:

 sg.c |    4 ++--
 st.c |   15 ++++++++++-----
 2 files changed, 12 insertions(+), 7 deletions(-)

James


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [BK PATCH] essential SCSI fixes for 2.6.5-rc2
  2004-03-20 12:33 ` Andi Kleen
@ 2004-03-20 15:21   ` James Bottomley
  2004-03-21  5:26     ` Moore, Eric Dean
  0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2004-03-20 15:21 UTC (permalink / raw)
  To: Andi Kleen, Eric Dean Moore; +Cc: SCSI Mailing List

On Sat, 2004-03-20 at 07:33, Andi Kleen wrote:
> Any chance you could include the fusion consistent mask patch with this? 
> 
> Without this fusion is completely unusable with >4GB on 64bit.

But if I include this patch, it will break Altix.

Eric, could you make fixing this your top priority?  Even if you can't
consolidate the allocations, what about using dma_pool instead?

James

> diff -burpN -X ../KDIFX -x '*-SLAB' linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c
> --- linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c	2004-03-20 03:55:31.000000000 +0100
> +++ linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c	2004-03-20 04:11:24.000000000 +0100
> @@ -1280,12 +1280,17 @@ mptbase_probe(struct pci_dev *pdev, cons
>  		return r;
>  	}
>  
> +#if 0
> +	/* broken because some code assumes that multiple calls
> +	   to pci_alloc_consistent return data in the same 4GB segment. 
> +	   This cannot work on machines with enough memory. */
>  	if (!pci_set_consistent_dma_mask(pdev, mask))
>  		dprintk((KERN_INFO MYNAM
>  			": Using 64 bit consistent mask\n"));
>  	else
>  		dprintk((KERN_INFO MYNAM
>  			": Not using 64 bit consistent mask\n"));
> +#endif
>  
>  	ioc = kmalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC);
>  	if (ioc == NULL) {



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

* Re: [BK PATCH] essential SCSI fixes for 2.6.5-rc2
  2004-03-21  5:26     ` Moore, Eric Dean
@ 2004-03-21  4:36       ` Andi Kleen
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2004-03-21  4:36 UTC (permalink / raw)
  To: Moore, Eric Dean; +Cc: linux-scsi

"Moore, Eric Dean" <emoore@lsil.com> writes:

> I will be consolidating the three allocations. I have started this work last
> Friday,
> and should be done early next week.

You could just use a dma pool. It was exactly done for situations like
this.

-Andi


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

* Re: [BK PATCH] essential SCSI fixes for 2.6.5-rc2
  2004-03-20 15:21   ` James Bottomley
@ 2004-03-21  5:26     ` Moore, Eric Dean
  2004-03-21  4:36       ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Moore, Eric Dean @ 2004-03-21  5:26 UTC (permalink / raw)
  To: James Bottomley, Andi Kleen; +Cc: SCSI Mailing List

I will be consolidating the three allocations. I have started this work last
Friday,
and should be done early next week.

Eric Moore

On Saturday, March 20, 2004 8:21 AM, James Bottomley wrote:
> On Sat, 2004-03-20 at 07:33, Andi Kleen wrote:
> > Any chance you could include the fusion consistent mask patch with this?
> >
> > Without this fusion is completely unusable with >4GB on 64bit.
>
> But if I include this patch, it will break Altix.
>
> Eric, could you make fixing this your top priority?  Even if you can't
> consolidate the allocations, what about using dma_pool instead?
>
> James
>
> > diff -burpN -X ../KDIFX -x '*-SLAB'
linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c
linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c
> > --- linux-vanilla-2.6.5rc2/drivers/message/fusion/mptbase.c 2004-03-20
03:55:31.000000000 +0100
> > +++ linux-2.6.5rc2-amd64/drivers/message/fusion/mptbase.c 2004-03-20
04:11:24.000000000 +0100
> > @@ -1280,12 +1280,17 @@ mptbase_probe(struct pci_dev *pdev, cons
> >  return r;
> >  }
> >
> > +#if 0
> > + /* broken because some code assumes that multiple calls
> > +    to pci_alloc_consistent return data in the same 4GB segment.
> > +    This cannot work on machines with enough memory. */
> >  if (!pci_set_consistent_dma_mask(pdev, mask))
> >  dprintk((KERN_INFO MYNAM
> >  ": Using 64 bit consistent mask\n"));
> >  else
> >  dprintk((KERN_INFO MYNAM
> >  ": Not using 64 bit consistent mask\n"));
> > +#endif
> >
> >  ioc = kmalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC);
> >  if (ioc == NULL) {
>
>


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

end of thread, other threads:[~2004-03-21  6:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-20 14:30 [BK PATCH] essential SCSI fixes for 2.6.5-rc2 James Bottomley
2004-03-20 12:33 ` Andi Kleen
2004-03-20 15:21   ` James Bottomley
2004-03-21  5:26     ` Moore, Eric Dean
2004-03-21  4:36       ` Andi Kleen

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