patch-2.3.34 linux/drivers/i2o/i2o_block.c

Next file: linux/drivers/misc/acpi.c
Previous file: linux/drivers/i2c/i2c-velleman.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/drivers/i2o/i2o_block.c linux/drivers/i2o/i2o_block.c
@@ -175,7 +175,7 @@
 	offset = ((u64)(req->sector+base)) << 9;
 	__raw_writel( offset & 0xFFFFFFFF, msg+24);
 	__raw_writel(offset>>32, msg+28);
-	mptr=msg+8;
+	mptr=msg+32;
 	
 	if(req->cmd == READ)
 	{
@@ -216,7 +216,7 @@
 			bh = bh->b_reqnext;
 		}
 	}
-	__raw_writel(I2O_MESSAGE_SIZE(mptr-msg) | SGL_OFFSET_8, msg);
+	__raw_writel(I2O_MESSAGE_SIZE(mptr-msg)>>2 | SGL_OFFSET_8, msg);
 	
 	if(req->current_nr_sectors > 8)
 		printk("Gathered sectors %ld.\n", 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)