public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ieee1394: sbp2: lower block queue alignment requirement
@ 2007-01-14 18:45 Stefan Richter
  2007-01-14 19:19 ` James Bottomley
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Richter @ 2007-01-14 18:45 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-scsi

The old setting seems to be copy & paste from usb-storage.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

I wonder, do we need this call to blk_queue_dma_alignment() at all?
Does the block layer perhaps provide sufficient alignment guarantees?


Index: linux/drivers/ieee1394/sbp2.c
===================================================================
--- linux.orig/drivers/ieee1394/sbp2.c	2007-01-14 18:40:08.000000000 +0100
+++ linux/drivers/ieee1394/sbp2.c	2007-01-14 19:30:42.000000000 +0100
@@ -2012,7 +2012,10 @@ static int sbp2scsi_slave_configure(stru
 {
 	struct sbp2_lu *lu = (struct sbp2_lu *)sdev->host->hostdata[0];
 
-	blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
+	/* Page table elements shall be octlet-aligned.
+	 * Everything else can be quadlet-aligned. */
+	blk_queue_dma_alignment(sdev->request_queue, 7);
+
 	sdev->use_10_for_rw = 1;
 
 	if (sdev->type == TYPE_ROM)

-- 
Stefan Richter
-=====-=-=== ---= -===-
http://arcgraph.de/sr/


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

end of thread, other threads:[~2007-02-04 19:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-14 18:45 [PATCH] ieee1394: sbp2: lower block queue alignment requirement Stefan Richter
2007-01-14 19:19 ` James Bottomley
2007-01-14 20:14   ` Stefan Richter
2007-01-15 19:39     ` Kristian Høgsberg
2007-01-15 19:50       ` Mike Christie
2007-01-15 20:02       ` Stefan Richter
2007-01-15 21:24         ` James Bottomley
2007-01-25 21:35   ` Stefan Richter
2007-02-04 12:04     ` [PATCH] ieee1394: sbp2: remove unnecessary alignments of struct members Stefan Richter
2007-02-04 12:05       ` [PATCH] ieee1394: sbp2: enforce 32bit DMA mapping Stefan Richter
2007-02-04 16:06         ` David Moore
2007-02-04 19:25           ` Stefan Richter

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