[PATCH] Schedule removal of megaraid hardware support overlap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

--- 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@xxxxxxxxxxxxx>
+
+---------------------------
+
+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@xxxxxxxxxx>
+
--- 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);

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux