[PATCH 2.6.24-git3] ieee1394: sbp2: relax SCSI DMA alignment

From: Stefan Richter
Date: Sun Jan 27 2008 - 16:32:53 EST


Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
---

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/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/