From: Saeed Bishara <Saeed.Bishara@il.marvell.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: IO buffer alignment for block devices
Date: Mon, 13 Sep 2004 18:16:47 +0300 [thread overview]
Message-ID: <4145B9DF.7020408@il.marvell.com> (raw)
In-Reply-To: <1095084876.1762.8.camel@mulgrave>
James Bottomley wrote:
>On Mon, 2004-09-13 at 08:48, Saeed Bishara wrote:
>
>
>> Is there any minimal alignment for the IO buffers (sg and single)
>>sent to a scsi LLD?
>> I found that buffers that come from buffer cache, page cache and sg
>>are page aligned , and the raw driver send sector aligned buffers.
>> so can I assume that the minimal alignment of the buffer is 512 bytes?
>>
>>
>
>You can assume it will be whatever you set blk_queue_dma_alignment() to
>in your slave configure routines. If the LLD doesn't set this, then it
>will be 8 bytes. However, beware, setting this higher can cause user
>
>
isn't the default 512, this is what I see in blk_queue_make_request.
<http://lxr.linux.no/ident?v=2.6.8.1;i=blk_queue_make_request>
>generated commands to be errored if they fail the alignment checks.
>
>James
>
>
>
any Ideas about lk 2.4?
>To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
next prev parent reply other threads:[~2004-09-13 15:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-13 12:48 IO buffer alignment for block devices Saeed Bishara
2004-09-13 14:14 ` James Bottomley
2004-09-13 15:16 ` Saeed Bishara [this message]
2004-09-13 15:28 ` James Bottomley
2004-09-13 17:12 ` Kai Makisara
2004-09-13 19:02 ` Jens Axboe
2004-09-13 19:56 ` Kai Makisara
2004-09-13 20:23 ` Jens Axboe
2004-09-13 22:08 ` Kai Makisara
2004-09-14 7:44 ` Jens Axboe
2004-09-14 17:39 ` Kai Makisara
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=4145B9DF.7020408@il.marvell.com \
--to=saeed.bishara@il.marvell.com \
--cc=James.Bottomley@SteelEye.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.