All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Why are MegaRAID drivers mutually exclusive?
@ 2004-11-10 19:24 Bagalkote, Sreenivas
  2004-11-10 19:38 ` Chris Adams
  2004-11-10 19:42 ` Matt Domsch
  0 siblings, 2 replies; 14+ messages in thread
From: Bagalkote, Sreenivas @ 2004-11-10 19:24 UTC (permalink / raw)
  To: 'Chris Adams', 'linux-scsi@vger.kernel.org'

The new and old drivers are mutually exclusive to the extent that
both cannot be loaded simultaneously as they both work on same
hardware. It only seems logical that this exclusivity is represented
in Kconfig as well.

Thanks,
Sreenivas 
LSI Logic

>-----Original Message-----
>From: Chris Adams [mailto:cmadams@hiwaay.net] 
>Sent: Wednesday, November 10, 2004 12:05 PM
>To: linux-scsi@vger.kernel.org
>Subject: Why are MegaRAID drivers mutually exclusive?
>
>I've got some systems that need the old megaraid driver with 
>Fedora Core 3, however it isn't being built.  Looking at 
>Kconfig.megaraid, I see that the new and old drivers are 
>mutually exclusive?  Is there a reason for that?  It means 
>that packagers can't build both as modules.
>
>Is there a good reason not to do:
>
>diff -urN 
>linux-2.6.9-dist/drivers/scsi/megaraid/Kconfig.megaraid 
>linux-2.6.9/drivers/scsi/megaraid/Kconfig.megaraid
>--- linux-2.6.9-dist/drivers/scsi/megaraid/Kconfig.megaraid	
>2004-10-18 16:53:22.000000000 -0500
>+++ linux-2.6.9/drivers/scsi/megaraid/Kconfig.megaraid	
>2004-11-10 10:33:26.748570929 -0600
>@@ -63,7 +63,6 @@
> 	To compile this driver as a module, choose M here: the
> 	module will be called megaraid_mbox
> 
>-if MEGARAID_NEWGEN=n
> config MEGARAID_LEGACY
> 	tristate "LSI Logic Legacy MegaRAID Driver"
> 	depends on PCI && SCSI
>@@ -74,4 +73,3 @@
> 
> 	To compile this driver as a module, choose M here: the
> 	module will be called megaraid
>-endif
>
>
>I looked in MAINTAINERS, CREDITS, megaraid.txt, and 
>ChangeLog.megaraid, but I didn't see that there was any more 
>specific list to use for the megaraid driver (other than three 
>author addresses listed in megaraid_mbox.c).
>
>--
>Chris Adams <cmadams@hiwaay.net>
>Systems and Network Administrator - HiWAAY Internet Services I 
>don't speak for anybody but myself - that's enough trouble.
>-
>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] 14+ messages in thread
* RE: Why are MegaRAID drivers mutually exclusive?
@ 2004-11-10 22:21 Mukker, Atul
  0 siblings, 0 replies; 14+ messages in thread
From: Mukker, Atul @ 2004-11-10 22:21 UTC (permalink / raw)
  To: 'Matt Domsch', Mukker, Atul
  Cc: Bagalkote, Sreenivas, 'Chris Adams',
	'linux-scsi@vger.kernel.org'

> How about you remove all the PCI IDs from the 2.00.3 driver 
> that the 2.20 driver handles, so that they're mutually 
> exclusive again?
That's a good suggestion, but still wouldn't take care of the 'apps do not
work with multiple drivers concern'. One conceivable option, and this is
just a suggestion :-), is to actually write a megaraid_{ioport|legacy}
driver as suggested by you earlier and let it stack under 2.20 mgmt module
and remove the legacy driver completely from the kernel. Hmm...

Thanks
-Atul Mukker

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Why are MegaRAID drivers mutually exclusive?
@ 2004-11-10 21:25 Mukker, Atul
  2004-11-10 22:08 ` Matt Domsch
  0 siblings, 1 reply; 14+ messages in thread
From: Mukker, Atul @ 2004-11-10 21:25 UTC (permalink / raw)
  To: 'Matt Domsch', Bagalkote, Sreenivas
  Cc: 'Chris Adams', 'linux-scsi@vger.kernel.org'

> There are three issues here that need to be addressed.
> 1) megaraid_mbox doesn't currently handle all of Chris's hardware.
>    It's missing some PCI IDs which it should be able to handle.
>    101e:1960 101e:0475, aka PCI_VENDOR_ID_AMI, 
> PCI_DEVICE_ID_AMI_MEGARAID3
> 			    PCI_DEVICE_ID_AMI, PCI_SUBSYS_ID_PERC3_SC 

Initial idea was to support only the newest U320 controllers on the 2.20
stack because these controllers are heavily tested in LSI labs with the 2.20
driver. For older controllers, we recommended to use legacy drivers.  We
agreed to add the Dell's branded PERC3s since there is a lot of value in
that generation of controllers. We agree to add the support for AMI branded
475/493/471 as well now. There should be patch from Sreenivas soon for this.

> 
> 2) megaraid_mbox doesn't handle other sets of hardware it should be
>    able to handle (Dell PERC2/{SC,DC}).  I am not sure why.

Same reason. The bottom-line for any controllers to be supported on this
stack was, it should be actively tested in LSI labs. Other main reason not
to support these controller is their lack of capability to do 64-bit DMA.

> 
> 3) no megaraid_ioport driver has ever been produced, which was the
>    original reason for splitting megaraid_mm and megaraid_mbox.  This
>    driver is necessary for Chris's other older hardware.
>    PCI 101e:9010, aka PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_MEGARAID
> 
This is not entirely correct. We initially planned to have SAS RAID drivers
under the 2.20 umbrella, not IO based controllers.

Now coming back to the original question of non-flexibility of having both
drivers:

We do not want to have someone configure both drivers to load since legacy
megaraid not only supports the older controllers, it _can_ take ownership of
the newer ones as well, causing 2.20 to fail to load for those controllers.
Also, management applications are written with a view of only one driver
concept. These cannot interface with 2 drivers. So, in order to force one
driver - Kconfig is written in this particular way.

Now, this can be easily changed, and we are definitely flexible to let user
compile both drivers. This should work as long as user makes sure to load
-_only one_ of these at any time. (suggestions?)

Thanks
-Atul Mukker

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Why are MegaRAID drivers mutually exclusive?
@ 2004-11-10 18:31 Xose Vazquez Perez
  0 siblings, 0 replies; 14+ messages in thread
From: Xose Vazquez Perez @ 2004-11-10 18:31 UTC (permalink / raw)
  To: linux-scsi, cmadams

Chris Adams wrote:

> I've got some systems that need the old megaraid driver with Fedora Core
> 3, however it isn't being built.

drivers/scsi/megaraid.c is _not_ maintained by LSI !!

-- 
TLOZ OOT: worse than drugs.



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Why are MegaRAID drivers mutually exclusive?
@ 2004-11-10 17:04 Chris Adams
  0 siblings, 0 replies; 14+ messages in thread
From: Chris Adams @ 2004-11-10 17:04 UTC (permalink / raw)
  To: linux-scsi

I've got some systems that need the old megaraid driver with Fedora Core
3, however it isn't being built.  Looking at Kconfig.megaraid, I see
that the new and old drivers are mutually exclusive?  Is there a reason
for that?  It means that packagers can't build both as modules.

Is there a good reason not to do:

diff -urN linux-2.6.9-dist/drivers/scsi/megaraid/Kconfig.megaraid linux-2.6.9/drivers/scsi/megaraid/Kconfig.megaraid
--- linux-2.6.9-dist/drivers/scsi/megaraid/Kconfig.megaraid	2004-10-18 16:53:22.000000000 -0500
+++ linux-2.6.9/drivers/scsi/megaraid/Kconfig.megaraid	2004-11-10 10:33:26.748570929 -0600
@@ -63,7 +63,6 @@
 	To compile this driver as a module, choose M here: the
 	module will be called megaraid_mbox
 
-if MEGARAID_NEWGEN=n
 config MEGARAID_LEGACY
 	tristate "LSI Logic Legacy MegaRAID Driver"
 	depends on PCI && SCSI
@@ -74,4 +73,3 @@
 
 	To compile this driver as a module, choose M here: the
 	module will be called megaraid
-endif


I looked in MAINTAINERS, CREDITS, megaraid.txt, and ChangeLog.megaraid,
but I didn't see that there was any more specific list to use for the
megaraid driver (other than three author addresses listed in
megaraid_mbox.c).

-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

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

end of thread, other threads:[~2004-11-11 14:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-10 19:24 Why are MegaRAID drivers mutually exclusive? Bagalkote, Sreenivas
2004-11-10 19:38 ` Chris Adams
2004-11-10 19:42 ` Matt Domsch
  -- strict thread matches above, loose matches on Subject: below --
2004-11-10 22:21 Mukker, Atul
2004-11-10 21:25 Mukker, Atul
2004-11-10 22:08 ` Matt Domsch
2004-11-11  8:01   ` Arjan van de Ven
2004-11-11 14:07     ` Chris Adams
2004-11-11 14:24       ` Arjan van de Ven
2004-11-11 14:31         ` Chris Adams
2004-11-11 14:39           ` Arjan van de Ven
2004-11-11 14:42             ` Chris Adams
2004-11-10 18:31 Xose Vazquez Perez
2004-11-10 17:04 Chris Adams

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.