From: Vitaly Bordug <vitb@kernel.crashing.org>
To: Eric Moore <Eric.Moore@lsi.com>
Cc: DL-MPTFusionLinux@lsi.com, linux-scsi@vger.kernel.org
Subject: [PATCH] mptsas: fix dma alignment
Date: Wed, 2 Sep 2009 01:03:31 +0400 [thread overview]
Message-ID: <20090902010331.37889a2c@vitb-lp> (raw)
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;
next reply other threads:[~2009-09-01 21:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 21:03 Vitaly Bordug [this message]
2009-09-07 11:12 ` [PATCH] mptsas: fix dma alignment 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090902010331.37889a2c@vitb-lp \
--to=vitb@kernel.crashing.org \
--cc=DL-MPTFusionLinux@lsi.com \
--cc=Eric.Moore@lsi.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.