* Re: differences in megaraid2 v2.00.9 source from LSIL FTP and 2.4.24 tree [not found] <20040113101507.6cad6e13@philou.gramoulle.local> @ 2004-01-13 13:25 ` Xose Vazquez Perez 0 siblings, 0 replies; 3+ messages in thread From: Xose Vazquez Perez @ 2004-01-13 13:25 UTC (permalink / raw) To: Philippe Gramoullé; +Cc: MegaRaid-Devel, linux-scsi, atulm Philippe Gramoullé wrote: > I just compared the original source code from ftp.lsil.com and 2.4.24. > v2.00.9 megaraid driver and i'd like to know what are the differences and which one i should use. > > I assume that the one in the 2.4.24 is the one to be used but i just wanted to be sure. The FTP driver is _only_ for Red Hat Enterprise LiNUX. You have to clean the code to run on a standard kernel. - 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* differences in megaraid2 v2.00.9 source from LSIL FTP and 2.4.24 tree
@ 2004-01-13 11:59 Philippe Gramoullé
2004-11-03 13:47 ` Matt Domsch
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gramoullé @ 2004-01-13 11:59 UTC (permalink / raw)
To: linux-scsi
Hi,
I just compared the original source code from ftp.lsil.com and 2.4.24.
v2.00.9 megaraid driver and i'd like to know what are the differences and which one i should use.
I assume that the one in the 2.4.24 is the one to be used but i just wanted to be sure.
Thanks,
Philippe
Lycos Europe
~/2.4.24-filer/megaraid$ diff -Nu megaraid2.c ../linux-2.4.24/drivers/scsi/megaraid2.c
--- megaraid2.c 2003-09-09 21:24:36.000000000 +0200
+++ ../linux-2.4.24/drivers/scsi/megaraid2.c 2003-11-28 19:26:20.000000000 +0100
@@ -398,9 +398,7 @@
// replace adapter->lock with io_request_lock for kernels w/o
// per host lock and delete the line which tries to initialize
// the lock in host structure.
- adapter->host_lock = &adapter->lock;
-
- host->lock = adapter->host_lock;
+ adapter->host_lock = &io_request_lock;
host->cmd_per_lun = max_cmd_per_lun;
host->max_sectors = max_sectors_per_io;
@@ -2402,7 +2400,7 @@
*len = (u32)cmd->request_bufflen;
if( scb->dma_direction == PCI_DMA_TODEVICE ) {
- pci_dma_sync_sg(adapter->host->pci_dev, sgl, cmd->use_sg,
+ pci_dma_sync_sg(adapter->host->pci_dev, cmd->request_buffer, cmd->use_sg,
PCI_DMA_TODEVICE);
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: differences in megaraid2 v2.00.9 source from LSIL FTP and 2.4.24 tree 2004-01-13 11:59 Philippe Gramoullé @ 2004-11-03 13:47 ` Matt Domsch 0 siblings, 0 replies; 3+ messages in thread From: Matt Domsch @ 2004-11-03 13:47 UTC (permalink / raw) To: Philippe Gramoull?; +Cc: linux-scsi On Tue, Jan 13, 2004 at 12:59:22PM +0100, Philippe Gramoull? wrote: > > Hi, > > I just compared the original source code from ftp.lsil.com and 2.4.24. > v2.00.9 megaraid driver and i'd like to know what are the differences and which one i should use. > > I assume that the one in the 2.4.24 is the one to be used but i just wanted to be sure. > > Thanks, > > Philippe > Lycos Europe > > > ~/2.4.24-filer/megaraid$ diff -Nu megaraid2.c ../linux-2.4.24/drivers/scsi/megaraid2.c > --- megaraid2.c 2003-09-09 21:24:36.000000000 +0200 > +++ ../linux-2.4.24/drivers/scsi/megaraid2.c 2003-11-28 19:26:20.000000000 +0100 > @@ -398,9 +398,7 @@ > // replace adapter->lock with io_request_lock for kernels w/o > // per host lock and delete the line which tries to initialize > // the lock in host structure. > - adapter->host_lock = &adapter->lock; > - > - host->lock = adapter->host_lock; > + adapter->host_lock = &io_request_lock; This is because stock 2.4 doesn't have the field host->lock, so instead the lock must still be &io_request_lock. This is correct. > @@ -2402,7 +2400,7 @@ > *len = (u32)cmd->request_bufflen; > > if( scb->dma_direction == PCI_DMA_TODEVICE ) { > - pci_dma_sync_sg(adapter->host->pci_dev, sgl, cmd->use_sg, > + pci_dma_sync_sg(adapter->host->pci_dev, cmd->request_buffer, cmd->use_sg, There was a bug around this. Ahh, found it (thanks gmane). The latter is correct of course. From: Christoph Hellwig <hch@lst.de> Subject: [PATCH] fix wrong argument to pci_dma_sync_sg in megaraid driver Newsgroups: gmane.linux.scsi Cc: linux-scsi@vger.kernel.org Date: Sun, 1 Feb 2004 17:00:32 +0100 sgl is incremented for each element in the routine, but pci_dma_sync_sg needs the original buffer. --- 1.59/drivers/scsi/megaraid.c Fri Jan 23 06:37:03 2004 +++ edited/drivers/scsi/megaraid.c Sat Jan 31 07:09:25 2004 @@ -1805,7 +1805,7 @@ *len = (u32)cmd->request_bufflen; if( scb->dma_direction == PCI_DMA_TODEVICE ) { - pci_dma_sync_sg(adapter->dev, sgl, cmd->use_sg, + pci_dma_sync_sg(adapter->dev, cmd->request_buffer, cmd->use_sg, PCI_DMA_TODEVICE); } -- Matt Domsch Sr. Software Engineer, Lead Engineer Dell Linux Solutions linux.dell.com & www.dell.com/linux Linux on Dell mailing lists @ http://lists.us.dell.com ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-03 13:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20040113101507.6cad6e13@philou.gramoulle.local>
2004-01-13 13:25 ` differences in megaraid2 v2.00.9 source from LSIL FTP and 2.4.24 tree Xose Vazquez Perez
2004-01-13 11:59 Philippe Gramoullé
2004-11-03 13:47 ` Matt Domsch
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.