* RE: [PATCH resend] Allow both megaraid drivers to be built
@ 2005-11-07 6:41 Bagalkote, Sreenivas
2005-11-07 11:36 ` 'Christoph Hellwig'
2005-11-07 13:22 ` James Bottomley
0 siblings, 2 replies; 5+ messages in thread
From: Bagalkote, Sreenivas @ 2005-11-07 6:41 UTC (permalink / raw)
To: 'Christoph Hellwig'
Cc: 'James Bottomley', Daniel Drake, Kolli, Neela Syam,
linux-scsi, Ju, Seokmann
>Note that the current situation is even worse for your customers, because
>the Kconfig subsystem only allows to build one driver at a time. You
>don't notice that because all distributions patch that silly check out
>again.
>
>Can we at least agree on patching that out ASAP and leave two drivers
>handling the same ID (we have cases like that all over already) and then
>try to make some progress on removing ids from the old driver independent
>of that?
You mean, you want to allow both drivers to be built and loaded together,
even though they have overlapping ids?!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH resend] Allow both megaraid drivers to be built
2005-11-07 6:41 [PATCH resend] Allow both megaraid drivers to be built Bagalkote, Sreenivas
@ 2005-11-07 11:36 ` 'Christoph Hellwig'
2005-11-07 13:22 ` James Bottomley
1 sibling, 0 replies; 5+ messages in thread
From: 'Christoph Hellwig' @ 2005-11-07 11:36 UTC (permalink / raw)
To: Bagalkote, Sreenivas
Cc: 'Christoph Hellwig', 'James Bottomley',
Daniel Drake, Kolli, Neela Syam, linux-scsi, Ju, Seokmann
On Mon, Nov 07, 2005 at 01:41:13AM -0500, Bagalkote, Sreenivas wrote:
> You mean, you want to allow both drivers to be built and loaded together,
> even though they have overlapping ids?!
We allow to build both, and allow to load both aswell, although the
latter is pretty useless as all devices will be claimed by one
driver already (except for the two ids only supported by the old
driver)
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH resend] Allow both megaraid drivers to be built
2005-11-07 6:41 [PATCH resend] Allow both megaraid drivers to be built Bagalkote, Sreenivas
2005-11-07 11:36 ` 'Christoph Hellwig'
@ 2005-11-07 13:22 ` James Bottomley
2005-11-07 14:08 ` [PATCH] Schedule removal of megaraid hardware support overlap Daniel Drake
1 sibling, 1 reply; 5+ messages in thread
From: James Bottomley @ 2005-11-07 13:22 UTC (permalink / raw)
To: Bagalkote, Sreenivas
Cc: 'Christoph Hellwig', Daniel Drake, Kolli, Neela Syam,
linux-scsi, Ju, Seokmann
On Mon, 2005-11-07 at 01:41 -0500, Bagalkote, Sreenivas wrote:
> You mean, you want to allow both drivers to be built and loaded together,
> even though they have overlapping ids?!
You're not thinking like a distribution. They want to build one kernel
for almost every configuration. There are a few things (SMP, bigmem
etc) that they're willing to build extra kernels for, but not, I think,
for old vs new megaraid. Thus they have to patch this up to build the
two modules. By and large, the overlapping ID business is sorted out by
the installer, although having disjoint IDs is good since the installer
doesn't have to make a choice.
Can you get this sorted out before 2.6.15, please (so if I believe
Linus, that's about five weeks)?
Thanks,
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Schedule removal of megaraid hardware support overlap
2005-11-07 13:22 ` James Bottomley
@ 2005-11-07 14:08 ` Daniel Drake
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Drake @ 2005-11-07 14:08 UTC (permalink / raw)
To: James Bottomley
Cc: Bagalkote, Sreenivas, 'Christoph Hellwig',
Kolli, Neela Syam, linux-scsi, Ju, Seokmann
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
Hopefully we'll be getting the build restriction zapped much sooner, but we
should also be thinking about totally removing the hardware support overlap in
the megaraid drivers.
This patch pencils in a date of Feb 06 for this, and performs some printk
abuse in hope that existing legacy users might pick up on what's going on.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
[-- Attachment #2: megaraid-schedule-overlap-removal.patch --]
[-- Type: text/x-patch, Size: 3928 bytes --]
--- linux-2.6.14/Documentation/feature-removal-schedule.txt.orig 2005-11-07 13:38:27.000000000 +0000
+++ linux-2.6.14/Documentation/feature-removal-schedule.txt 2005-11-07 13:48:40.000000000 +0000
@@ -95,3 +95,19 @@ Why: This interface has been obsoleted b
to link against API-compatible library on top of libnfnetlink_queue
instead of the current 'libipq'.
Who: Harald Welte <laforge@netfilter.org>
+
+---------------------------
+
+What: Hardware support in the legacy SCSI megaraid driver
+When: February 2006
+Why: The legacy megaraid driver has a large hardware support overlap with
+ the "newgen" driver. For this reason, you cannot build the legacy
+ driver alongside the new driver, making it impossible for a
+ one-size-fits-all kernel to support the whole range of megaraid
+ hardware. To resolve this, support for the overlapping hardware will
+ be dropped from the legacy driver and the build restriction will be
+ dropped. During the interim period, legacy driver users with affected
+ hardware will recieve a large warning in 'dmesg' notifying them that
+ they should change.
+Who: Daniel Drake <dsd@gentoo.org>
+
--- linux-2.6.14/drivers/scsi/megaraid.c.orig 2005-11-07 13:25:48.000000000 +0000
+++ linux-2.6.14/drivers/scsi/megaraid.c 2005-11-07 13:46:50.000000000 +0000
@@ -51,6 +51,15 @@
#include "megaraid.h"
+/*
+ * Some of the hardware supported by this driver overlaps with hardware
+ * supported by the "newgen" megaraid driver.
+ * Support for the overlapping hardware may be dropped from _this_ driver in
+ * the near future. If you get a printk warning about this, you probably want
+ * to change.
+ */
+#define DRIVER_DEPRECATED 0x1
+
#define MEGARAID_MODULE_VERSION "2.00.3"
MODULE_AUTHOR ("LSI Logic Corporation");
@@ -4786,6 +4795,23 @@ megaraid_probe_one(struct pci_dev *pdev,
}
}
+ /*
+ * Warn affected users that support for their hardware is going away
+ */
+ if (id->driver_data & DRIVER_DEPRECATED) {
+ printk(KERN_WARNING "megaraid: ****** WARNING ******\n");
+ printk(KERN_WARNING "megaraid: Your megaraid card is supported "
+ "by both the legacy and the newgen\n");
+ printk(KERN_WARNING "megaraid: megaraid driver, and you are "
+ "currently using the legacy driver.\n");
+ printk(KERN_WARNING "megaraid: Support for your card will be "
+ "dropped from the legacy driver in\n");
+ printk(KERN_WARNING "megaraid: the near future, so you should "
+ "switch over to the newgen driver as\n");
+ printk(KERN_WARNING "megaraid: soon as you can.\n");
+ printk(KERN_WARNING "megaraid: ****** WARNING ******");
+ }
+
if (mega_is_bios_enabled(adapter))
mega_hbas[hba_count].is_bios_enabled = 1;
mega_hbas[hba_count].hostdata_addr = adapter;
@@ -5045,21 +5071,21 @@ megaraid_shutdown(struct pci_dev *pdev)
static struct pci_device_id megaraid_pci_tbl[] = {
{PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DISCOVERY,
- PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, DRIVER_DEPRECATED},
{PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_PERC4_DI,
- PCI_ANY_ID, PCI_ANY_ID, 0, 0, BOARD_64BIT},
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, BOARD_64BIT | DRIVER_DEPRECATED},
{PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_PERC4_QC_VERDE,
- PCI_ANY_ID, PCI_ANY_ID, 0, 0, BOARD_64BIT},
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, BOARD_64BIT | DRIVER_DEPRECATED},
{PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID2,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
- PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, DRIVER_DEPRECATED},
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_AMI_MEGARAID3,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_AMI_MEGARAID3,
- PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, DRIVER_DEPRECATED},
{0,}
};
MODULE_DEVICE_TABLE(pci, megaraid_pci_tbl);
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] Schedule removal of megaraid hardware support overlap
@ 2005-11-10 15:36 Kolli, Neela Syam
0 siblings, 0 replies; 5+ messages in thread
From: Kolli, Neela Syam @ 2005-11-10 15:36 UTC (permalink / raw)
To: Daniel Drake, James Bottomley
Cc: Bagalkote, Sreenivas, 'Christoph Hellwig', linux-scsi,
Ju, Seokmann
This patch is good. Thanks for the patch.
In the meantime, we are working on removing the hardware support overlap in
megaraid drivers. We should be getting this patch out in coming weeks.
Thanks,
Neela Syam Kolli.
-----Original Message-----
From: Daniel Drake [mailto:dsd@gentoo.org]
Sent: Monday, November 07, 2005 9:09 AM
To: James Bottomley
Cc: Bagalkote, Sreenivas; 'Christoph Hellwig'; Kolli, Neela Syam;
linux-scsi@vger.kernel.org; Ju, Seokmann
Subject: [PATCH] Schedule removal of megaraid hardware support overlap
Hopefully we'll be getting the build restriction zapped much sooner, but we
should also be thinking about totally removing the hardware support overlap
in
the megaraid drivers.
This patch pencils in a date of Feb 06 for this, and performs some printk
abuse in hope that existing legacy users might pick up on what's going on.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-11-10 15:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 6:41 [PATCH resend] Allow both megaraid drivers to be built Bagalkote, Sreenivas
2005-11-07 11:36 ` 'Christoph Hellwig'
2005-11-07 13:22 ` James Bottomley
2005-11-07 14:08 ` [PATCH] Schedule removal of megaraid hardware support overlap Daniel Drake
-- strict thread matches above, loose matches on Subject: below --
2005-11-10 15:36 Kolli, Neela Syam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).