LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.24-git3] firewire: fw-sbp2: relax SCSI DMA alignment
       [not found] ` <1201373642.4387.0.camel@localhost.localdomain>
@ 2008-01-27 21:31   ` Stefan Richter
  2008-01-27 21:32     ` [PATCH 2.6.24-git3] ieee1394: sbp2: " Stefan Richter
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2008-01-27 21:31 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-scsi, linux-kernel

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

Not run-time tested yet.

 drivers/firewire/fw-sbp2.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: linux-2.6.24-git3/drivers/firewire/fw-sbp2.c
===================================================================
--- linux-2.6.24-git3.orig/drivers/firewire/fw-sbp2.c
+++ linux-2.6.24-git3/drivers/firewire/fw-sbp2.c
@@ -1309,11 +1309,8 @@ static int sbp2_scsi_slave_alloc(struct 
 
 	sdev->allow_restart = 1;
 
-	/*
-	 * Update the dma alignment (minimum alignment requirements for
-	 * start and end of DMA transfers) to be a sector
-	 */
-	blk_queue_update_dma_alignment(sdev->request_queue, 511);
+	/* SBP-2 requires quadlet alignment of the data buffers. */
+	blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
 
 	if (lu->tgt->workarounds & SBP2_WORKAROUND_INQUIRY_36)
 		sdev->inquiry_len = 36;

-- 
Stefan Richter
-=====-==--- ---= ==-==
http://arcgraph.de/sr/


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

* [PATCH 2.6.24-git3] ieee1394: sbp2: relax SCSI DMA alignment
  2008-01-27 21:31   ` [PATCH 2.6.24-git3] firewire: fw-sbp2: relax SCSI DMA alignment Stefan Richter
@ 2008-01-27 21:32     ` Stefan Richter
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Richter @ 2008-01-27 21:32 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-scsi, linux-kernel

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

Not run-time tested yet.

 drivers/ieee1394/sbp2.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: linux-2.6.24-git3/drivers/ieee1394/sbp2.c
===================================================================
--- linux-2.6.24-git3.orig/drivers/ieee1394/sbp2.c
+++ linux-2.6.24-git3/drivers/ieee1394/sbp2.c
@@ -1966,11 +1966,8 @@ static int sbp2scsi_slave_alloc(struct s
 	lu->sdev = sdev;
 	sdev->allow_restart = 1;
 
-	/*
-	 * Update the dma alignment (minimum alignment requirements for
-	 * start and end of DMA transfers) to be a sector
-	 */
-	blk_queue_update_dma_alignment(sdev->request_queue, 511);
+	/* SBP-2 requires quadlet alignment of the data buffers. */
+	blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
 
 	if (lu->workarounds & SBP2_WORKAROUND_INQUIRY_36)
 		sdev->inquiry_len = 36;

-- 
Stefan Richter
-=====-==--- ---= ==-==
http://arcgraph.de/sr/


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

end of thread, other threads:[~2008-01-27 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <479B80A3.5070207@s5r6.in-berlin.de>
     [not found] ` <1201373642.4387.0.camel@localhost.localdomain>
2008-01-27 21:31   ` [PATCH 2.6.24-git3] firewire: fw-sbp2: relax SCSI DMA alignment Stefan Richter
2008-01-27 21:32     ` [PATCH 2.6.24-git3] ieee1394: sbp2: " Stefan Richter

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).