From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [linux-usb-devel] Re: Unaligned scatter-gather buffers and usb-storage Date: Wed, 19 Nov 2003 21:19:52 +0100 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20031119201952.GT1106@suse.de> References: <20031110095914.B22518@beaverton.ibm.com> <20031118143720.A6411@beaverton.ibm.com> <20031119084729.GA1106@suse.de> <200311191401.34540.oliver@neukum.org> <20031119130400.GG1106@suse.de> <1069252642.10768.7.camel@mulgrave> <20031119143901.GI1106@suse.de> <1069253904.10768.13.camel@mulgrave> <20031119150011.GJ1106@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from ns.virtualhost.dk ([195.184.98.160]:2284 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S263938AbTKSUUh (ORCPT ); Wed, 19 Nov 2003 15:20:37 -0500 Content-Disposition: inline In-Reply-To: List-Id: linux-scsi@vger.kernel.org To: Kai Makisara Cc: James Bottomley , Oliver Neukum , Patrick Mansfield , Alan Stern , Douglas Gilbert , SCSI development list , USB development list On Wed, Nov 19 2003, Kai Makisara wrote: > On Wed, 19 Nov 2003, Jens Axboe wrote: > > > On Wed, Nov 19 2003, James Bottomley wrote: > > > > > Alternatively, we could add this as yet another parameter to the host > > > > > and template structures. Any preferences? > > > > > > > > I suppose you have to, if you want LLD to be able to pass it down. > > > > > > Well, what I was fishing for: Is this property useful enough to want > > > every device driver writer to think about it (i.e. document and place in > > > the template), or is it rare enough that it should only be accessible > > > to those who know what they're doing (via the direct block queue > > > interfaces in slave_alloc/configure)? > > > > As far as I'm concerned, requiring 512-byte alignment is 'just > > easier'... Only a select few host adapters will set it differently > > anyways, so you gain basically nothing. > > > As usual, I am against this 512-byte alignment (thinking as st > maintainer). Don't default to more strict aligment requirements than is > necessary. It creates hidden performance problems for character device > drivers. But you have to honor hardware restrictions, though. Where is the performance impact? -- Jens Axboe