Re: 2.6.23-rc9 boot failure (megaraid?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Tuesday, October 2, 2007 - 5:00 pm

On Tue, 02 Oct 2007 15:38:13 -0500
James Bottomley <James.Bottomley@SteelEye.com> wrote:


Sorry about this. Can this fix the problem?

Thanks,


diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index 3907f67..da56163 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -1753,6 +1753,14 @@ mega_build_sglist(adapter_t *adapter, scb_t *scb, u32 *buf, u32 *len)
 
 	*len = 0;
 
+	if (scsi_sg_count(cmd) == 1 && !adapter->has_64bit_addr) {
+		sg = scsi_sglist(cmd);
+		scb->dma_h_bulkdata = sg_dma_address(sg);
+		*buf = (u32)scb->dma_h_bulkdata;
+		*len = sg_dma_len(sg);
+		return 0;
+	}
+
 	scsi_for_each_sg(cmd, sg, sgcnt, idx) {
 		if (adapter->has_64bit_addr) {
 			scb->sgl64[idx].address = sg_dma_address(sg);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc9 boot failure (megaraid?), Burton Windle, (Tue Oct 2, 9:48 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Adrian Bunk, (Tue Oct 2, 11:15 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Burton Windle, (Tue Oct 2, 11:46 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Rafael J. Wysocki, (Tue Oct 2, 12:55 pm)
Re: 2.6.23-rc9 boot failure (megaraid?), James Bottomley, (Tue Oct 2, 1:38 pm)
Re: 2.6.23-rc9 boot failure (megaraid?), FUJITA Tomonori, (Tue Oct 2, 5:00 pm)
Re: 2.6.23-rc9 boot failure (megaraid?), FUJITA Tomonori, (Tue Oct 2, 5:09 pm)
RE: 2.6.23-rc9 boot failure (megaraid?), Patro, Sumant, (Wed Oct 3, 4:32 pm)
RE: 2.6.23-rc9 boot failure (megaraid?), FUJITA Tomonori, (Wed Oct 3, 4:46 pm)
Re: 2.6.23-rc9 boot failure (megaraid?), Jens Axboe, (Thu Oct 4, 12:28 am)
Re: 2.6.23-rc9 boot failure (megaraid?), FUJITA Tomonori, (Thu Oct 4, 3:20 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Jens Axboe, (Thu Oct 4, 3:36 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Adrian Bunk, (Thu Oct 4, 3:48 am)
Re: 2.6.23-rc9 boot failure (megaraid?), FUJITA Tomonori, (Thu Oct 4, 3:55 am)
Re: 2.6.23-rc9 boot failure (megaraid?), Jens Axboe, (Thu Oct 4, 4:00 am)
Re: 2.6.23-rc9 boot failure (megaraid?), James Bottomley, (Thu Oct 4, 5:50 am)