RE: [PATCH] mptsas: fix dma alignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can you send an exact link for "465ff.. commit"?

Thanks,
Kashyap

-----Original Message-----
From: Vitaly Bordug [mailto:vitb@xxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, September 02, 2009 2:34 AM
To: Moore, Eric
Cc: DL-MPT Fusion Linux; linux-scsi@xxxxxxxxxxxxxxx
Subject: [PATCH] mptsas: fix dma alignment


From: Yuri Tikhonov <yur@xxxxxxxxxxx>

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@xxxxxxxxxxx>
    Signed-off-by: Yuri Tikhonov <yur@xxxxxxxxxxx>
    Signed-off-by: Sergei Poselenov <sposelenov@xxxxxxxxxxx>
    Signed-off-by: Vitaly Bordug <vitb@xxxxxxxxxxxxxxxxxxx>
---

 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux