hpsa legacy support
v2 cover hpsa legacy support
Hi all,
here's now the second attempt to add support for legacy boards, ie for boards previously supported by cciss only.
With this patchset the hpsa driver should work with all Smart Array boards if the 'hpsa_allow_any' module option is set, rendering the cciss driver obsolete.
Consequently I've added a patch to remove the cciss driver and make 'hpsa' an alias to 'cciss'.
Hannes Reinecke (5):
hpsa: add support for legacy boards
hpsa: disable volume status check for legacy boards
hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page
hpsa: do not print errors for unsupported report luns format
cciss: Drop obsolete driver
Jeff Mahoney (1):
hpsa: handle unsupported devices more gracefully
Documentation/blockdev/cciss.txt | 194 -- MAINTAINERS | 10 - drivers/block/Kconfig | 27 - drivers/block/Makefile | 1 - drivers/block/cciss.c | 5415 -------------------------------------- drivers/block/cciss.h | 433 --- drivers/block/cciss_cmd.h | 269 -- drivers/block/cciss_scsi.c | 1653 ------------ drivers/block/cciss_scsi.h | 79 - drivers/scsi/hpsa.c | 104 +- drivers/scsi/hpsa.h | 81 +- 11 files changed, 147 insertions(+), 8119 deletions(-) delete mode 100644 Documentation/blockdev/cciss.txt delete mode 100644 drivers/block/cciss.c delete mode 100644 drivers/block/cciss.h delete mode 100644 drivers/block/cciss_cmd.h delete mode 100644 drivers/block/cciss_scsi.c delete mode 100644 drivers/block/cciss_scsi.h
Signature · 1 line
1.8.5.6
PATCH v2 1/6 hpsa: add support for legacy boards
Add support for legacy boards, ensuring to enable the driver for those boards only when 'hpsa_allow_any' is set.
The attribute 'legacy_board' is set to '1' if the device is a legacy board, and '0' otherwise.
--- drivers/scsi/hpsa.c | 67 +++++++++++++++++++++++++++++++++++++++----- drivers/scsi/hpsa.h | 81 ++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 121 insertions(+), 27 deletions(-)
drivers/scsi/hpsa.c +60 -7
@@ -148,6 +148,8 @@ {PCI_VENDOR_ID_HP, 0x333f, 0x103c, 0x333f}, {PCI_VENDOR_ID_HP, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_RAID << 8, 0xffff << 8, 0}, + {PCI_VENDOR_ID_COMPAQ, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, + PCI_CLASS_STORAGE_RAID << 8, 0xffff << 8, 0}, {0,} };
@@ -158,6 +160,26 @@* access = Address of the struct of function pointers */ static struct board_type products[] = { + {0x40700E11 ,"Smart Array 5300" , &SA5A_access}, + {0x40800E11 ,"Smart Array 5i" , &SA5B_access}, + {0x40820E11 ,"Smart Array 532" , &SA5B_access}, + {0x40830E11 ,"Smart Array 5312" , &SA5B_access}, + {0x409A0E11 ,"Smart Array 641" , &SA5A_access}, + {0x409B0E11 ,"Smart Array 642" , &SA5A_access}, + {0x409C0E11 ,"Smart Array 6400" , &SA5A_access}, + {0x409D0E11 ,"Smart Array 6400 EM" , &SA5A_access}, + {0x40910E11 ,"Smart Array 6i" , &SA5A_access}, + {0x3225103C ,"Smart Array P600" , &SA5A_access}, + {0x3223103C ,"Smart Array P800" , &SA5A_access}, + {0x3234103C ,"Smart Array P400" , &SA5A_access}, + {0x3235103C ,"Smart Array P400i" , &SA5A_access}, + {0x3211103C ,"Smart Array E200i" , &SA5A_access}, + {0x3212103C ,"Smart Array E200" , &SA5A_access}, + {0x3213103C ,"Smart Array E200i" , &SA5A_access}, + {0x3214103C ,"Smart Array E200i" , &SA5A_access}, + {0x3215103C ,"Smart Array E200i" , &SA5A_access}, + {0x3237103C ,"Smart Array E500" , &SA5A_access}, + {0x323D103C ,"Smart Array P700m" , &SA5A_access}, {0x3241103C ,"Smart Array P212" , &SA5_access}, {0x3243103C ,"Smart Array P410" , &SA5_access}, {0x3245103C ,"Smart Array P410i" , &SA5_access},
@@ -278,7 +300,8 @@ static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, u64 *cfg_offset);static int hpsa_pci_find_memory_BAR (struct pci_dev *pdev,unsigned long *memory_bar); -static int hpsa_lookup_board_id (struct pci_dev *pdev,u32 *board_id); +static int hpsa_lookup_board_id (struct pci_dev *pdev,u32 *board_id, +bool *legacy_board);static int wait_for_device_to_become_ready (struct ctlr_info *h,unsigned char lunaddr[],int reply_queue);
@@ -866,6 +889,16 @@ static ssize_t host_show_ctlr_num(struct device *dev,return snprintf (buf,20 ,"%d\n" , h->ctlr); } +static ssize_t host_show_legacy_board (struct device *dev, +struct device_attribute *attr,char *buf) +{ +struct ctlr_info *h; +struct Scsi_Host *shost =class_to_shost (dev); + + h =shost_to_hba (shost); +return snprintf (buf,20 ,"%d\n" , h->legacy_board ?1 :0 ); +} + static DEVICE_ATTR(raid_level, S_IRUGO, raid_level_show, NULL); static DEVICE_ATTR(lunid, S_IRUGO, lunid_show, NULL); static DEVICE_ATTR(unique_id, S_IRUGO, unique_id_show, NULL);
@@ -891,6 +924,8 @@ static DEVICE_ATTR(lockup_detected, S_IRUGO, host_show_lockup_detected, NULL); static DEVICE_ATTR(ctlr_num, S_IRUGO, host_show_ctlr_num, NULL); +static DEVICE_ATTR(legacy_board, S_IRUGO, + host_show_legacy_board, NULL);static struct device_attribute *hpsa_sdev_attrs[] = { &dev_attr_raid_level,
@@ -912,6 +947,7 @@ static DEVICE_ATTR(ctlr_num, S_IRUGO, &dev_attr_raid_offload_debug, &dev_attr_lockup_detected, &dev_attr_ctlr_num, + &dev_attr_legacy_board, NULL, };
@@ -7232,7 +7268,8 @@ static int hpsa_interrupt_mode(struct ctlr_info *h)return 0 ; } -static int hpsa_lookup_board_id (struct pci_dev *pdev,u32 *board_id) +static int hpsa_lookup_board_id (struct pci_dev *pdev,u32 *board_id, +bool *legacy_board) {int i;u32 subsystem_vendor_id, subsystem_device_id;
@@ -7242,9 +7279,22 @@ static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) *board_id = ((subsystem_device_id <<16 ) &0xffff0000 ) | subsystem_vendor_id; +if (legacy_board) + *legacy_board = false;for (i =0 ; i <ARRAY_SIZE (products); i++) -if (*board_id == products[i].board_id) -return i; +if (*board_id == products[i].board_id) { +if (products[i].access != &SA5A_access && + products[i].access != &SA5B_access) +return i; +if (hpsa_allow_any) { +dev_warn (&pdev->dev, +"legacy board ID: 0x%08x\n" , + *board_id); +if (legacy_board) + *legacy_board = true; +return i; + } + } if ((subsystem_vendor_id != PCI_VENDOR_ID_HP && subsystem_vendor_id != PCI_VENDOR_ID_COMPAQ) ||
@@ -7253,6 +7303,8 @@ static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) "0x%08x, ignoring.\n", *board_id);return -ENODEV ; } +if (legacy_board) + *legacy_board = true;return ARRAY_SIZE (products) -1 ;/* generic unknown smart array */ }
@@ -7555,13 +7607,14 @@ static void hpsa_free_pci_init(struct ctlr_info *h)static int hpsa_pci_init (struct ctlr_info *h) {int prod_index, err; +bool legacy_board; - prod_index =hpsa_lookup_board_id (h->pdev, &h->board_id); + prod_index =hpsa_lookup_board_id (h->pdev, &h->board_id, &legacy_board);if (prod_index <0 )return prod_index; h->product_name = products[prod_index].product_name; h->access = *(products[prod_index].access); - + h->legacy_board = legacy_board;pci_disable_link_state (h->pdev,PCIE_LINK_STATE_L0S |PCIE_LINK_STATE_L1 |PCIE_LINK_STATE_CLKPM );
@@ -8241,7 +8294,7 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)if (number_of_controllers ==0 ) printk(KERN_INFO DRIVER_NAME "\n"); - rc =hpsa_lookup_board_id (pdev, &board_id); + rc =hpsa_lookup_board_id (pdev, &board_id,NULL );if (rc <0 ) {dev_warn (&pdev->dev,"Board ID not found\n" );return rc;
drivers/scsi/hpsa.h +61 -20
117 lines not on this page · raw message
Signature · 1 line
1.8.5.6
PATCH v2 2/6 hpsa: disable volume status check for legacy boards
In reply to Hannes ReineckeLegacy boards might not support volume status, so assume the volume is online here.
--- drivers/scsi/hpsa.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/scsi/hpsa.c +10 -0
@@ -3845,6 +3845,16 @@ static int hpsa_update_device_info(struct ctlr_info *h,if (h->fw_support &MISC_FW_RAID_OFFLOAD_BASIC )hpsa_get_ioaccel_status (h, scsi3addr, this_device); volume_offline =hpsa_volume_offline (h, scsi3addr); +if (volume_offline ==HPSA_VPD_LV_STATUS_UNSUPPORTED && + h->legacy_board) { +/* +* Legacy boards might not support volume status +*/ +dev_info (&h->pdev->dev, +"C0:T%d:L%d Volume status not available, assuming online.\n" , + this_device->target, this_device->lun); + volume_offline =0 ; + } this_device->volume_offline = volume_offline;if (volume_offline ==HPSA_LV_FAILED ) { rc =HPSA_LV_FAILED ;
Signature · 1 line
1.8.5.6
PATCH v2 3/6 hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page
In reply to Hannes ReineckeLegacy boards might not support the LV_DEVICE_ID VPD page, so we shouldn't print out an error message here.
--- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/hpsa.c +1 -1
@@ -3827,7 +3827,7 @@ static int hpsa_update_device_info(struct ctlr_info *h,memset (this_device->device_id,0 ,sizeof (this_device->device_id));if (hpsa_get_device_id (h, scsi3addr, this_device->device_id,8 , -sizeof (this_device->device_id))) +sizeof (this_device->device_id) <0 )) dev_err(&h->pdev->dev, "hpsa%d: %s: can't get device id for host %d:C0:T%d:L%d\t%s\t%.16s\n", h->ctlr, __func__,
Signature · 1 line
1.8.5.6
PATCH v2 4/6 hpsa: do not print errors for unsupported report luns format
In reply to Hannes ReineckeLegacy boards might not support the 'extended' report luns format, but as this is to be expected we don't need to print out an error here.
--- drivers/scsi/hpsa.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-)
drivers/scsi/hpsa.c +12 -9
@@ -3601,7 +3601,7 @@ static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical,memset (scsi3addr,0 ,sizeof (scsi3addr));if (fill_cmd (c, logical ?HPSA_REPORT_LOG :HPSA_REPORT_PHYS , h, buf, bufsize,0 , scsi3addr,TYPE_CMD )) { - rc =-1 ; + rc = -EAGAIN ; goto out; }if (extended_response)
@@ -3614,16 +3614,17 @@ static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical,if (ei->CommandStatus !=0 && ei->CommandStatus !=CMD_DATA_UNDERRUN ) {hpsa_scsi_interpret_error (h, c); - rc =-1 ; + rc = -EIO ; }else {struct ReportLUNdata *rld = buf;if (rld->extended_response_flag != extended_response) { -dev_err (&h->pdev->dev, -"report luns requested format %u, got %u\n" , - extended_response, - rld->extended_response_flag); - rc =-1 ; +if (!h->legacy_board) +dev_err (&h->pdev->dev, +"report luns requested format %u, got %u\n" , + extended_response, + rld->extended_response_flag); + rc = -EOPNOTSUPP ; } } out:
@@ -3639,7 +3640,10 @@ static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h, rc =hpsa_scsi_do_report_luns (h,0 , buf, bufsize,HPSA_REPORT_PHYS_EXTENDED ); -if (!rc || !hpsa_allow_any) +if (rc == -EOPNOTSUPP ) { +if (!h->legacy_board) +return rc; + }else if (rc <0 )return rc;/* REPORT PHYS EXTENDED is not supported */
@@ -6617,7 +6621,6 @@ static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,default :dev_warn (&h->pdev->dev,"unknown command 0x%c\n" , cmd);BUG (); -return -1 ; } }else if (cmd_type ==TYPE_MSG ) {switch (cmd) {
Signature · 1 line
1.8.5.6
PATCH v2 5/6 hpsa: handle unsupported devices more gracefully
In reply to Hannes ReineckeFrom: Jeff Mahoney <[email protected]>
Add a warning message if an unsupported device is found and the hpsa_allow_any parameter is not set.
Also make the hpsa_allow_any parameter writeable once the hpsa driver is loaded.
--- drivers/scsi/hpsa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/hpsa.c +2 -1
@@ -85,7 +85,7 @@static int hpsa_allow_any;module_param (hpsa_allow_any, int,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (hpsa_allow_any, -"Allow hpsa driver to access unknown HP Smart Array hardware" ); +"Allow hpsa driver to access unsupported HP Smart Array hardware" );static int hpsa_simple_mode;module_param (hpsa_simple_mode, int,S_IRUGO |S_IWUSR ); MODULE_PARM_DESC(hpsa_simple_mode,
@@ -7314,6 +7314,7 @@ static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id, !hpsa_allow_any) {dev_warn (&pdev->dev,"unrecognized board ID: " "0x%08x, ignoring.\n" , *board_id); +dev_warn (&pdev->dev,"This device may be enabled by loading the hpsa module with the hpsa_allow_any=1 option or by writing \"%s\" to /sys/bus/pci/drivers/hpsa/bind while the module is loaded. Please note that the driver is untested with this device and will result in an unsupported environment.\n" ,dev_name (&pdev->dev));return -ENODEV ; }if (legacy_board)
Signature · 1 line
1.8.5.6
PATCH v2 6/6 cciss: Drop obsolete driver
In reply to Hannes ReineckeThe hpsa driver now has support for all boards the cciss driver used to support, so this patch removes the cciss driver and make hpsa an alias to cciss.
--- Documentation/blockdev/cciss.txt | 194 -- MAINTAINERS | 10 - drivers/block/Kconfig | 27 - drivers/block/Makefile | 1 - drivers/block/cciss.c | 5415 -------------------------------------- drivers/block/cciss.h | 433 --- drivers/block/cciss_cmd.h | 269 -- drivers/block/cciss_scsi.c | 1653 ------------ drivers/block/cciss_scsi.h | 79 - drivers/scsi/hpsa.c | 1 + 10 files changed, 1 insertion(+), 8081 deletions(-) delete mode 100644 Documentation/blockdev/cciss.txt delete mode 100644 drivers/block/cciss.c delete mode 100644 drivers/block/cciss.h delete mode 100644 drivers/block/cciss_cmd.h delete mode 100644 drivers/block/cciss_scsi.c delete mode 100644 drivers/block/cciss_scsi.h
Documentation/blockdev/cciss.txt deleted +0 -194
@@ -1,194 +0,0 @@ -This driver is for Compaq's SMART Array Controllers. - -Supported Cards: ----------------- - -This driver is known to work with the following cards: - - * SA 5300 - * SA 5i - * SA 532 - * SA 5312 - * SA 641 - * SA 642 - * SA 6400 - * SA 6400 U320 Expansion Module - * SA 6i - * SA P600 - * SA P800 - * SA E400 - * SA P400i - * SA E200 - * SA E200i - * SA E500 - * SA P700m - * SA P212 - * SA P410 - * SA P410i - * SA P411 - * SA P812 - * SA P712m - * SA P711m - -Detecting drive failures: -------------------------- - -To get the status of logical volumes and to detect physical drive -failures, you can use the cciss_vol_status program found here: -http://cciss.sourceforge.net/#cciss_utils - -Device Naming: --------------- - -If nodes are not already created in the /dev/cciss directory, run as root: - -# cd /dev -# ./MAKEDEV cciss - -You need some entries in /dev for the cciss device. The MAKEDEV script -can make device nodes for you automatically. Currently the device setup -is as follows: - -Major numbers: - 104 cciss0 - 105 cciss1 - 106 cciss2 - 105 cciss3 - 108 cciss4 - 109 cciss5 - 110 cciss6 - 111 cciss7 - -Minor numbers: - b7 b6 b5 b4 b3 b2 b1 b0 - |----+----| |----+----| - | | - | +-------- Partition ID (0=wholedev, 1-15 partition) - | - +-------------------- Logical Volume number - -The device naming scheme is: -/dev/cciss/c0d0 Controller 0, disk 0, whole device -/dev/cciss/c0d0p1 Controller 0, disk 0, partition 1 -/dev/cciss/c0d0p2 Controller 0, disk 0, partition 2 -/dev/cciss/c0d0p3 Controller 0, disk 0, partition 3 - -/dev/cciss/c1d1 Controller 1, disk 1, whole device -/dev/cciss/c1d1p1 Controller 1, disk 1, partition 1 -/dev/cciss/c1d1p2 Controller 1, disk 1, partition 2 -/dev/cciss/c1d1p3 Controller 1, disk 1, partition 3 - -CCISS simple mode support -------------------------- - -The "cciss_simple_mode=1" boot parameter may be used to prevent the driver -from putting the controller into "performant" mode. The difference is that -with simple mode, each command completion requires an interrupt, while with -"performant mode" (the default, and ordinarily better performing) it is -possible to have multiple command completions indicated by a single -interrupt. - -SCSI tape drive and medium changer support ------------------------------------------- - -SCSI sequential access devices and medium changer devices are supported and -appropriate device nodes are automatically created. (e.g. -/dev/st0, /dev/st1, etc. See the "st" man page for more details.) -You must enable "SCSI tape drive support for Smart Array 5xxx" and -"SCSI support" in your kernel configuration to be able to use SCSI -tape drives with your Smart Array 5xxx controller. - -Additionally, note that the driver will engage the SCSI core at init -time if any tape drives or medium changers are detected. The driver may -also be directed to dynamically engage the SCSI core via the /proc filesystem -entry which the "block" side of the driver creates as -/proc/driver/cciss/cciss* at runtime. This is best done via a script. - -For example: - - for x in /proc/driver/cciss/cciss[0-9]* - do - echo "engage scsi" > $x - done - -Once the SCSI core is engaged by the driver, it cannot be disengaged -(except by unloading the driver, if it happens to be linked as a module.) - -Note also that if no sequential access devices or medium changers are -detected, the SCSI core will not be engaged by the action of the above -script. - -Hot plug support for SCSI tape drives -------------------------------------- - -Hot plugging of SCSI tape drives is supported, with some caveats. -The cciss driver must be informed that changes to the SCSI bus -have been made. This may be done via the /proc filesystem. -For example: - - echo "rescan" > /proc/scsi/cciss0/1 - -This causes the driver to query the adapter about changes to the -physical SCSI buses and/or fibre channel arbitrated loop and the -driver to make note of any new or removed sequential access devices -or medium changers. The driver will output messages indicating what -devices have been added or removed and the controller, bus, target and -lun used to address the device. It then notifies the SCSI mid layer -of these changes. - -Note that the naming convention of the /proc filesystem entries -contains a number in addition to the driver name. (E.g. "cciss0" -instead of just "cciss" which you might expect.) - -Note: ONLY sequential access devices and medium changers are presented -as SCSI devices to the SCSI mid layer by the cciss driver. Specifically, -physical SCSI disk drives are NOT presented to the SCSI mid layer. The -physical SCSI disk drives are controlled directly by the array controller -hardware and it is important to prevent the kernel from attempting to directly -access these devices too, as if the array controller were merely a SCSI -controller in the same way that we are allowing it to access SCSI tape drives. - -SCSI error handling for tape drives and medium changers -------------------------------------------------------- - -The linux SCSI mid layer provides an error handling protocol which -kicks into gear whenever a SCSI command fails to complete within a -certain amount of time (which can vary depending on the command). -The cciss driver participates in this protocol to some extent. The -normal protocol is a four step process. First the device is told -to abort the command. If that doesn't work, the device is reset. -If that doesn't work, the SCSI bus is reset. If that doesn't work -the host bus adapter is reset. Because the cciss driver is a block -driver as well as a SCSI driver and only the tape drives and medium -changers are presented to the SCSI mid layer, and unlike more -straightforward SCSI drivers, disk i/o continues through the block -side during the SCSI error recovery process, the cciss driver only -implements the first two of these actions, aborting the command, and -resetting the device. Additionally, most tape drives will not oblige -in aborting commands, and sometimes it appears they will not even -obey a reset command, though in most circumstances they will. In -the case that the command cannot be aborted and the device cannot be -reset, the device will be set offline. - -In the event the error handling code is triggered and a tape drive is -successfully reset or the tardy command is successfully aborted, the -tape drive may still not allow i/o to continue until some command -is issued which positions the tape to a known position. Typically you -must rewind the tape (by issuing "mt -f /dev/st0 rewind" for example) -before i/o can proceed again to a tape drive which was reset. - -There is a cciss_tape_cmds module parameter which can be used to make cciss -allocate more commands for use by tape drives. Ordinarily only a few commands -(6) are allocated for tape drives because tape drives are slow and -infrequently used and the primary purpose of Smart Array controllers is to -act as a RAID controller for disk drives, so the vast majority of commands -are allocated for disk devices. However, if you have more than a few tape -drives attached to a smart array, the default number of commands may not be -enough (for example, if you have 8 tape drives, you could only rewind 6 -at one time with the default number of commands.) The cciss_tape_cmds module -parameter allows more commands (up to 16 more) to be allocated for use by -tape drives. For example: - - insmod cciss.ko cciss_tape_cmds=16 - -Or, as a kernel boot parameter passed in via grub: cciss.cciss_tape_cmds=8
MAINTAINERS +0 -10
@@ -6032,16 +6032,6 @@ F: drivers/scsi/hpsa*.[ch] F: include/linux/cciss*.h F: include/uapi/linux/cciss*.h -HEWLETT-PACKARD SMART CISS RAID DRIVER (cciss) -M: Don Brace <[email protected]> -L: [email protected] -L: [email protected] -S: Supported -F: Documentation/blockdev/cciss.txt -F: drivers/block/cciss* -F: include/linux/cciss_ioctl.h -F: include/uapi/linux/cciss_ioctl.h - HFI1 DRIVER M: Mike Marciniszyn <[email protected]> M: Dennis Dalessandro <[email protected]>
drivers/block/Kconfig +0 -27
@@ -111,33 +111,6 @@ source "drivers/block/mtip32xx/Kconfig" source "drivers/block/zram/Kconfig" -config BLK_CPQ_CISS_DA - tristate "Compaq Smart Array 5xxx support" - depends on PCI - select CHECK_SIGNATURE - select BLK_SCSI_REQUEST - help - This is the driver for Compaq Smart Array 5xxx controllers. - Everyone using these boards should say Y here. - See <file:Documentation/blockdev/cciss.txt> for the current list of - boards supported by this driver, and for further information - on the use of this driver. - -config CISS_SCSI_TAPE - bool "SCSI tape drive support for Smart Array 5xxx" - depends on BLK_CPQ_CISS_DA && PROC_FS - depends on SCSI=y || SCSI=BLK_CPQ_CISS_DA - help - When enabled (Y), this option allows SCSI tape drives and SCSI medium - changers (tape robots) to be accessed via a Compaq 5xxx array - controller. (See <file:Documentation/blockdev/cciss.txt> for more details.) - - "SCSI support" and "SCSI tape support" must also be enabled for this - option to work. - - When this option is disabled (N), the SCSI portion of the driver - is not compiled. - config BLK_DEV_DAC960 tristate "Mylex DAC960/DAC1100 PCI RAID Controller support" depends on PCI
drivers/block/Makefile +0 -1
@@ -15,7 +15,6 @@ obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o obj-$(CONFIG_AMIGA_Z2RAM) += z2ram.o obj-$(CONFIG_BLK_DEV_RAM) += brd.o obj-$(CONFIG_BLK_DEV_LOOP) += loop.o -obj-$(CONFIG_BLK_CPQ_CISS_DA) += cciss.o obj-$(CONFIG_BLK_DEV_DAC960) += DAC960.o obj-$(CONFIG_XILINX_SYSACE) += xsysace.o obj-$(CONFIG_CDROM_PKTCDVD) += pktcdvd.o
drivers/block/cciss.c deleted +0 -5415
2,750 lines not on this page · raw message
drivers/block/cciss.h deleted +0 -433
433 lines not on this page · raw message
drivers/block/cciss_cmd.h deleted +0 -269
269 lines not on this page · raw message
drivers/block/cciss_scsi.c deleted +0 -1653
1,653 lines not on this page · raw message
drivers/block/cciss_scsi.h deleted +0 -79
79 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.5.6
Part of the diff is not shown here. View the raw message.
RE: [PATCHv2 6/6] cciss: Drop obsolete driver
Quoted 30 lines
-----Original Message-----
From: Hannes Reinecke [mailto:[email protected]]
Sent: Monday, August 14, 2017 6:19 AM
To: Martin K. Petersen <[email protected]>
Cc: Christoph Hellwig <[email protected]>; James Bottomley <[email protected]>; Don Brace <[email protected]>; Meelis Roos <[email protected]>; linux- [email protected]; Hannes Reinecke <[email protected]>; Hannes Reinecke <[email protected]>
Subject: [PATCHv2 6/6] cciss: Drop obsolete driverEXTERNAL EMAIL
The hpsa driver now has support for all boards the cciss driver used to support, so this patch removes the cciss driver and make hpsa an alias to cciss.
Signed-off-by Hannes Reinecke <[email protected]>Cc Don Brace <[email protected]>--- Documentation/blockdev/cciss.txt | 194 -- MAINTAINERS | 10 - drivers/block/Kconfig | 27 - drivers/block/Makefile | 1 - drivers/block/cciss.c | 5415 -------------------------------------- drivers/block/cciss.h | 433 --- drivers/block/cciss_cmd.h | 269 -- drivers/block/cciss_scsi.c | 1653 ------------ drivers/block/cciss_scsi.h | 79 -
Quoted 9 lines
drivers/scsi/hpsa.c | 1 + 10 files changed, 1 insertion(+), 8081 deletions(-) delete mode 100644 Documentation/blockdev/cciss.txt delete mode 100644 drivers/block/cciss.c delete mode 100644 drivers/block/cciss.h delete mode 100644 drivers/block/cciss_cmd.h delete mode 100644 drivers/block/cciss_scsi.c delete mode 100644 drivers/block/cciss_scsi.h
Hannes,
Quoted 6 lines
here's now the second attempt to add support for legacy boards, ie for boards previously supported by cciss only. With this patchset the hpsa driver should work with all Smart Array boards if the '
hpsa_allow_any' module option is set, rendering the cciss driver obsolete. Consequently I've added a patch to remove the cciss driver and make 'hpsa' an alias to 'cciss'.
How does the module alias solve the problem that hpsa_allow_any=1 needs to be added for users currently running cciss?
I also fail to see what the point is of having an opt-in parameter when there is no alternative after cciss has been removed. It's a don't-be-broken switch.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Quoted 10 lines · Martin K. Petersen
Hannes,
Quoted 6 lines
here's now the second attempt to add support for legacy boards, ie for boards previously supported by cciss only. With this patchset the hpsa driver should work with all Smart Array boards if the '
hpsa_allow_any' module option is set, rendering the cciss driver obsolete. Consequently I've added a patch to remove the cciss driver and make 'hpsa' an alias to 'cciss'.
Quoted 7 lines
How does the module alias solve the problem that hpsa_allow_any=1 needs to be added for users currently running cciss?
I also fail to see what the point is of having an opt-in parameter when there is no alternative after cciss has been removed. It's a don't-be-broken switch.
Hmm ... considering this (and the fact that we now have the ->legacy_board switch) we can indeed remove that option. Will be redoing the patchset.
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)