[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tkrat.ed569c841e283500@s5r6.in-berlin.de>
Date: Sun, 27 Jan 2008 22:32:22 +0100 (CET)
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: linux1394-devel@...ts.sourceforge.net
cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2.6.24-git3] ieee1394: sbp2: relax SCSI DMA alignment
Signed-off-by: Stefan Richter <stefanr@...6.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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists