linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] SGIIOC4 limit request size
@ 2006-02-01  8:59 Jes Sorensen
  2006-02-01 10:34 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 13+ messages in thread
From: Jes Sorensen @ 2006-02-01  8:59 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linus Torvalds, linux-kernel, Jeremy Higdon

Hi,

This one takes care of a problem with the SGI IOC4 driver where it
hits DMA problems if the request grows too large.

Cheers,
Jes

Avoid requests larger than the number of SG table entries, to avoid
DMA timeouts.

Signed-off-by: Jes Sorensen <jes@sgi.com>

----

 drivers/ide/pci/sgiioc4.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)

Index: linux-2.6/drivers/ide/pci/sgiioc4.c
===================================================================
--- linux-2.6.orig/drivers/ide/pci/sgiioc4.c
+++ linux-2.6/drivers/ide/pci/sgiioc4.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
+ * Copyright (C) 2003, 2006 Silicon Graphics, Inc.  All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of version 2 of the GNU General Public License
@@ -613,6 +613,12 @@
 	hwif->ide_dma_lostirq = &sgiioc4_ide_dma_lostirq;
 	hwif->ide_dma_timeout = &__ide_dma_timeout;
 	hwif->INB = &sgiioc4_INB;
+
+	/*
+	 * Limit the request size to avoid DMA timeouts when
+	 * requesting  more entries than goes in the sg table.
+	 */
+	hwif->rqsize = 127;
 }
 
 static int __devinit

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

end of thread, other threads:[~2006-02-02  8:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01  8:59 [patch] SGIIOC4 limit request size Jes Sorensen
2006-02-01 10:34 ` Bartlomiej Zolnierkiewicz
2006-02-01 10:41   ` Jes Sorensen
2006-02-01 10:49   ` Jeremy Higdon
2006-02-01 11:08     ` Bartlomiej Zolnierkiewicz
2006-02-01 11:17       ` Jeremy Higdon
2006-02-01 11:26         ` Bartlomiej Zolnierkiewicz
2006-02-01 11:36           ` Jeremy Higdon
2006-02-01 12:44             ` Bartlomiej Zolnierkiewicz
2006-02-02  8:00               ` [patch] Fix DMA timeouts with sgiioc4 Jeremy Higdon
2006-02-02  8:45                 ` Jes Sorensen
2006-02-01 13:39             ` [patch] SGIIOC4 limit request size Alan Cox
2006-02-01 14:53               ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).