public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH][BUGFIX] : megaraid patch for 2.10.1 (irq disable bug  fix)
@ 2004-02-24 21:02 Mukker, Atul
  2004-02-24 21:14 ` Arjan van de Ven
  0 siblings, 1 reply; 12+ messages in thread
From: Mukker, Atul @ 2004-02-24 21:02 UTC (permalink / raw)
  To: 'James Bottomley', 'matt_domsch@dell.com'
  Cc: 'Arjan van de Ven', 'Paul Wagland',
	Matthew Wilcox, 'linux-kernel@vger.kernel.org',
	'linux-scsi@vger.kernel.org'

> > controllers and also a single code base, with a very small 
> footprint patch -
> > if at all required, to support various kernels.
> 
> I didn't say "no".  I'm just warning you that you've chosen a 
> hard road
> to hoe, particularly with the limited life of 2.4.

In my opinion, maintaining support for 2.4 drivers and adding new
controllers to it would be crucial for a considerable time to come even
while lk 2.6 becomes mainstream. As support, we would want to provide
support for as many kernels and controllers as possible.

>From a developer standpoint, It is very difficult to maintain two drivers. I
am willing to fork iff the code is too hairy - but right now it seems very
manageable.

> "An important MegaRAID feature is to be able to boot from any logical
> drive on
> If you require this functionality in 2.6, you should look at plugging
> into the udev infrastructure.

Now, this is some new information for me. I am not sure what is Dell's stand
on this option. Matt, Arjan?

Do we want to discover controllers and devices directed solely by kernel and
should driver interfere a little bit.

> This is unacceptable:
> 
> #if defined (__x86_64__)
> 		/*
> 		 * Register the 32-bit ioctl conversion
> 		 */
> 		register_ioctl32_conversion(MEGAIOCCMD, sys_ioctl)
> #endif
Ok.. Let us find a better solution. 

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [PATCH][BUGFIX] : megaraid patch for 2.10.1 (irq disable bug  fix)
@ 2004-02-24 16:04 Mukker, Atul
  2004-02-24 16:47 ` James Bottomley
  2004-02-24 20:43 ` Christoph Hellwig
  0 siblings, 2 replies; 12+ messages in thread
From: Mukker, Atul @ 2004-02-24 16:04 UTC (permalink / raw)
  To: 'James Bottomley', 'Arjan van de Ven'
  Cc: 'Paul Wagland', Matthew Wilcox, Bagalkote, Sreenivas,
	'linux-kernel@vger.kernel.org',
	'linux-scsi@vger.kernel.org'

> 
> I really don't think this will be such a good idea since you don't
> currently have a unified driver.  2.4 is approaching end of 
> life as far
> as major driver updates go and the 2.6 APIs are quite a bit 
> different. 
> You'll find it's a lot of work for a driver that will carry 
> you at most
> six months before the distributions all switch to 2.6 and you find the
> 2.4 compatibility layer to be more of a hindrance than a help.

Wow! That's a lot of no-no. But we'll let the code speak for itself. The
major driving force behind the unified design is support for MPT raid
controllers and also a single code base, with a very small footprint patch -
if at all required, to support various kernels.

In this driver, the base kernel is assumed to be a lk 2.6.x with appropriate
APIs added for lk 2.4.x.

I recommend reading the concise design document, mraid_hotplug.doc, which
explains the overall layout of the driver and some design concerns. This
document is part of the driver package.

Obviously we are open to all suggestions and ready to modify the code if
there is a general feeling in that direction. Also, this driver would
required to sit in a directory because of a split in files

The driver package is available in usual location, too big to be inlined :-)
ftp://ftp.lsil.com/pub/linux-megaraid/drivers/version-unified-2.20.0.0.02.24
.2004-alpha1/


Enjoy!

Best Regards
-Atul Mukker
LSI Logic Corporation

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [PATCH][BUGFIX] : megaraid patch for 2.10.1 (irq disable bug  fix)
@ 2004-02-24 14:47 Mukker, Atul
  2004-02-24 14:58 ` Matthew Wilcox
  2004-02-24 15:06 ` James Bottomley
  0 siblings, 2 replies; 12+ messages in thread
From: Mukker, Atul @ 2004-02-24 14:47 UTC (permalink / raw)
  To: 'Paul Wagland', Matthew Wilcox
  Cc: Bagalkote, Sreenivas, 'linux-kernel@vger.kernel.org',
	'linux-scsi@vger.kernel.org'

> >> The following patch fixes a bug in megaraid driver version 2.10.1
> >> where irq was erroneously being disabled.
> >
> > Could we have a later version than 2.00.3 in 2.6 please?
We are in process of releasing a unified driver, which will natively support
the 2.4.x and 2.6.x kernels. 

Thanks
-Atul Mukker

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH][BUGFIX] : megaraid patch for 2.10.1 (irq disable bug fix)
@ 2004-02-23 17:24 Bagalkote, Sreenivas
  2004-02-23 17:29 ` Matthew Wilcox
  0 siblings, 1 reply; 12+ messages in thread
From: Bagalkote, Sreenivas @ 2004-02-23 17:24 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org',
	'linux-scsi@vger.kernel.org'

Hello all,

The following patch fixes a bug in megaraid driver version 2.10.1
where irq was erroneously being disabled.

Thanks,
Sreenivas

diff -Naur current/drivers/scsi/megaraid.c patched/drivers/scsi/megaraid.c
--- current/drivers/scsi/megaraid.c	2004-02-23 23:56:10.000000000 -0500
+++ patched/drivers/scsi/megaraid.c	2004-02-23 23:56:18.000000000 -0500
@@ -2474,7 +2474,9 @@
 	memset(raw_mbox, 0, sizeof(raw_mbox));
 	raw_mbox[0] = FLUSH_ADAPTER;
 
-	irq_disable(adapter);
+	if( adapter->flag & BOARD_IOMAP ) 
+		irq_disable(adapter);
+
 	free_irq(adapter->host->irq, adapter);
 
 	/* Issue a blocking (interrupts disabled) command to the card */
@@ -4040,7 +4042,9 @@
 		memset(raw_mbox, 0, sizeof(raw_mbox));
 		raw_mbox[0] = FLUSH_ADAPTER;
 
-		irq_disable(adapter);
+		if( adapter->flag & BOARD_IOMAP ) 
+			irq_disable(adapter);
+
 		free_irq(adapter->host->irq, adapter);
 
 		/*

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

end of thread, other threads:[~2004-02-24 21:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-24 21:02 [PATCH][BUGFIX] : megaraid patch for 2.10.1 (irq disable bug fix) Mukker, Atul
2004-02-24 21:14 ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2004-02-24 16:04 Mukker, Atul
2004-02-24 16:47 ` James Bottomley
2004-02-24 20:43 ` Christoph Hellwig
2004-02-24 14:47 Mukker, Atul
2004-02-24 14:58 ` Matthew Wilcox
2004-02-24 15:06 ` James Bottomley
2004-02-24 20:33   ` Matt Domsch
2004-02-23 17:24 Bagalkote, Sreenivas
2004-02-23 17:29 ` Matthew Wilcox
2004-02-24  7:09   ` Paul Wagland

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