public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mptsas: fix dma alignment
@ 2009-09-01 21:03 Vitaly Bordug
  2009-09-07 11:12 ` Desai, Kashyap
  0 siblings, 1 reply; 6+ messages in thread
From: Vitaly Bordug @ 2009-09-01 21:03 UTC (permalink / raw)
  To: Eric Moore; +Cc: DL-MPTFusionLinux, linux-scsi


From: Yuri Tikhonov <yur@emcraft.com>

fusion mptsas: fix dma alignment

     Since the 465ff.. commit from James Bottomley relaxes the default
     SCSI DMA alignment from 512 bytes to 4 bytes, then, in the mptsas
     driver, we should explicitly set the alignment to the workable
     512 bytes value.

    Signed-off-by: Ilya Yanok <yanok@emcraft.com>
    Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
    Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
    Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org>
---

 drivers/message/fusion/mptsas.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/drivers/message/fusion/mptsas.c
b/drivers/message/fusion/mptsas.c index 55ff252..2334f26 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -1843,6 +1843,7 @@ mptsas_slave_alloc(struct scsi_device *sdev)
 	return -ENXIO;
 
  out:
+	blk_queue_update_dma_alignment(sdev->request_queue, 511);
 	vdevice->vtarget->num_luns++;
 	sdev->hostdata = vdevice;
 	return 0;

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

end of thread, other threads:[~2009-09-08 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 21:03 [PATCH] mptsas: fix dma alignment Vitaly Bordug
2009-09-07 11:12 ` Desai, Kashyap
2009-09-07 13:45   ` Vitaly Bordug
2009-09-08  8:19     ` Desai, Kashyap
2009-09-08 14:22       ` James Bottomley
2009-09-08 16:19         ` Moore, Eric

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