qla2xxx: fixes for 2.6.23 [8.02.00-k3].
Subsystems (2)
cover qla2xxx: fixes for 2.6.23 [8.02.00-k3].
This patchset contains fixes for 2.6.23.
drivers/scsi/qla2xxx/qla_dbg.c | 21 ++++++-------- drivers/scsi/qla2xxx/qla_def.h | 1 - drivers/scsi/qla2xxx/qla_gs.c | 24 ++++++++++++---- drivers/scsi/qla2xxx/qla_init.c | 51 ++++++++++------------------------- drivers/scsi/qla2xxx/qla_isr.c | 1 + drivers/scsi/qla2xxx/qla_os.c | 2 +- drivers/scsi/qla2xxx/qla_version.h | 2 +- 7 files changed, 45 insertions(+), 57 deletions(-)
here's the commits:
- Allocate enough space for the full PCI descriptor.
- Don't modify parity bits during ISP25XX restart.
- Correct management-server login-state synchronization issue.
- Correct 8GB iIDMA support.
- Correct mailbox register dump for FWI2 capable ISPs.
- Update version number to 8.02.00-k3.
Regards,
Andrew Vasquez
QLogic Corporation
PATCH 1/6 qla2xxx: Allocate enough space for the full PCI descriptor.
--- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +1 -1
@@ -1564,7 +1564,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)struct Scsi_Host *host;scsi_qla_host_t *ha;unsigned long flags =0 ; -char pci_info[20 ]; +char pci_info[30 ];char fw_str[30 ];struct scsi_host_template *sht;
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 2/6 qla2xxx: Don't modify parity bits during ISP25XX restart.
In reply to Andrew Vasquez--- drivers/scsi/qla2xxx/qla_init.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_init.c +4 -2
@@ -3354,7 +3354,8 @@ qla2x00_restart_isp(scsi_qla_host_t *ha)spin_lock_irqsave (&ha->hardware_lock, flags); -if (!IS_QLA24XX (ha) && !IS_QLA54XX (ha)) { +if (!IS_QLA24XX (ha) && !IS_QLA54XX (ha) && + !IS_QLA25XX (ha)) {/* * Disable SRAM, Instruction RAM and GP RAM * parity.
@@ -3370,7 +3371,8 @@ qla2x00_restart_isp(scsi_qla_host_t *ha)spin_lock_irqsave (&ha->hardware_lock, flags); -if (!IS_QLA24XX (ha) && !IS_QLA54XX (ha)) { +if (!IS_QLA24XX (ha) && !IS_QLA54XX (ha) && + !IS_QLA25XX (ha)) {/* Enable proper parity */ if (IS_QLA2300 (ha))/* SRAM parity */
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 3/6 qla2xxx: Correct management-server login-state synchronization issue.
In reply to Andrew VasquezTransitioning link-state via NOS/OLS requires a relogin to a fabric's Management Server. Request relogin when the firmware issues a point-to-point asynchronous event (0x8030).
--- drivers/scsi/qla2xxx/qla_isr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/qla2xxx/qla_isr.c +1 -0
@@ -490,6 +490,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb)set_bit (REGISTER_FC4_NEEDED , &ha->dpc_flags); ha->flags.gpsc_supported =1 ; + ha->flags.management_server_logged_in =0 ;break ;case MBA_CHG_IN_CONNECTION :/* Change in connection mode */
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 5/6 qla2xxx: Correct mailbox register dump for FWI2 capable ISPs.
In reply to Andrew Vasquez--- drivers/scsi/qla2xxx/qla_dbg.c | 21 +++++++++------------ 1 files changed, 9 insertions(+), 12 deletions(-)
drivers/scsi/qla2xxx/qla_dbg.c +9 -12
@@ -2050,21 +2050,18 @@ qla25xx_fw_dump_failed:void qla2x00_dump_regs (scsi_qla_host_t *ha) { +int i;struct device_reg_2xxx __iomem *reg = &ha->iobase->isp; +struct device_reg_24xx __iomem *reg24 = &ha->iobase->isp24; +uint16_t __iomem *mbx_reg; + + mbx_reg =IS_FWI2_CAPABLE (ha) ? ®24->mailbox0: +MAILBOX_REG (ha, reg,0 );printk ("Mailbox registers:\n" ); -printk ("scsi(%ld): mbox 0 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,0 )); -printk ("scsi(%ld): mbox 1 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,1 )); -printk ("scsi(%ld): mbox 2 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,2 )); -printk ("scsi(%ld): mbox 3 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,3 )); -printk ("scsi(%ld): mbox 4 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,4 )); -printk ("scsi(%ld): mbox 5 0x%04x \n" , - ha->host_no,RD_MAILBOX_REG (ha, reg,5 )); +for (i =0 ; i <6 ; i++) +printk ("scsi(%ld): mbox %d 0x%04x \n" , ha->host_no, i, +RD_REG_WORD (mbx_reg++)); }
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 6/6 qla2xxx: Update version number to 8.02.00-k3.
In reply to Andrew Vasquez--- drivers/scsi/qla2xxx/qla_version.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/qla2xxx/qla_version.h +1 -1
@@ -7,7 +7,7 @@/* * Driver version */ -#define QLA2XXX_VERSION "8.02.00-k2" +#define QLA2XXX_VERSION "8.02.00-k3"#define QLA_DRIVER_MAJOR_VER 8#define QLA_DRIVER_MINOR_VER 2
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 4/6 qla2xxx: Correct 8GB iIDMA support.
In reply to Andrew VasquezOriginal implementation manipulated the FC_GS values for port-speed. Transition the codes to use the driver's own internal representations as this makes for a reduction in duplicate 'conversion' codes throughout the driver.
--- drivers/scsi/qla2xxx/qla_def.h | 1 - drivers/scsi/qla2xxx/qla_gs.c | 24 +++++++++++++++----- drivers/scsi/qla2xxx/qla_init.c | 45 +++++++++----------------------------- 3 files changed, 29 insertions(+), 41 deletions(-)
drivers/scsi/qla2xxx/qla_def.h +0 -1
@@ -1502,7 +1502,6 @@ typedef struct {uint8_t node_name[WWN_SIZE ];uint8_t port_name[WWN_SIZE ];uint8_t fabric_port_name[WWN_SIZE ]; -uint16_t fp_speeds;uint16_t fp_speed; } sw_info_t;
drivers/scsi/qla2xxx/qla_gs.c +18 -6
@@ -1821,7 +1821,7 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list)for (i =0 ; i <MAX_FIBRE_DEVICES ; i++) {/* Issue GFPN_ID */ - list[i].fp_speeds = list[i].fp_speed =0 ; + list[i].fp_speed =PORT_SPEED_UNKNOWN ;/* Prepare common MS IOCB */ ms_pkt = qla24xx_prep_ms_fm_iocb(ha, GPSC_REQ_SIZE,
@@ -1858,9 +1858,21 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list) } rval =QLA_FUNCTION_FAILED ; }else { -/* Save portname */ - list[i].fp_speeds = ct_rsp->rsp.gpsc.speeds; - list[i].fp_speed = ct_rsp->rsp.gpsc.speed; +/* Save port-speed */ +switch (be16_to_cpu (ct_rsp->rsp.gpsc.speed)) { +case BIT_15 : + list[i].fp_speed =PORT_SPEED_1GB ; +break ; +case BIT_14 : + list[i].fp_speed =PORT_SPEED_2GB ; +break ; +case BIT_13 : + list[i].fp_speed =PORT_SPEED_4GB ; +break ; +case BIT_11 : + list[i].fp_speed =PORT_SPEED_8GB ; +break ; + } DEBUG2_3(printk("scsi(%ld): GPSC ext entry - " "fpn %02x%02x%02x%02x%02x%02x%02x%02x speeds=%04x "
@@ -1873,8 +1885,8 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list) list[i].fabric_port_name[5 ], list[i].fabric_port_name[6 ], list[i].fabric_port_name[7 ], -be16_to_cpu (list[i].fp_speeds), - be16_to_cpu(list[i].fp_speed))); +be16_to_cpu (ct_rsp->rsp.gpsc.speeds), + be16_to_cpu(ct_rsp->rsp.gpsc.speed))); }/* Last device exit. */
drivers/scsi/qla2xxx/qla_init.c +11 -34
78 lines not on this page · raw message
Signature · 1 line
1.5.3.rc4.41.g7efe
PATCH 4/6 qla2xxx: Correct 8GB iIDMA support.
Original implementation manipulated the FC_GS values for port-speed. Transition the codes to use the driver's own internal representations as this makes for a reduction in duplicate 'conversion' codes throughout the driver.
---
James,
Sorry, original patch was incomplete. Please use the corrected one.
Thanks, Andrew Vasquez
drivers/scsi/qla2xxx/qla_def.h | 1 - drivers/scsi/qla2xxx/qla_gs.c | 28 ++++++++++++++++------- drivers/scsi/qla2xxx/qla_init.c | 45 +++++++++----------------------------- 3 files changed, 30 insertions(+), 44 deletions(-)
drivers/scsi/qla2xxx/qla_def.h +0 -1
@@ -1502,7 +1502,6 @@ typedef struct {uint8_t node_name[WWN_SIZE ];uint8_t port_name[WWN_SIZE ];uint8_t fabric_port_name[WWN_SIZE ]; -uint16_t fp_speeds;uint16_t fp_speed; } sw_info_t;
drivers/scsi/qla2xxx/qla_gs.c +19 -9
@@ -295,6 +295,8 @@ qla2x00_gid_pt(scsi_qla_host_t *ha, sw_info_t *list) list[i].d_id.b.domain = gid_data->port_id[0 ]; list[i].d_id.b.area = gid_data->port_id[1 ]; list[i].d_id.b.al_pa = gid_data->port_id[2 ]; +memset (list[i].fabric_port_name,0 ,WWN_SIZE ); + list[i].fp_speed =PORT_SPEED_UNKNOWN ;/* Last one exit. */ if (gid_data->control_byte &BIT_7 ) {
@@ -1707,8 +1709,6 @@ qla2x00_gfpn_id(scsi_qla_host_t *ha, sw_info_t *list)for (i =0 ; i <MAX_FIBRE_DEVICES ; i++) {/* Issue GFPN_ID */ -memset (list[i].fabric_port_name,0 ,WWN_SIZE ); -/* Prepare common MS IOCB */ ms_pkt = ha->isp_ops->prep_ms_iocb (ha,GFPN_ID_REQ_SIZE ,GFPN_ID_RSP_SIZE );
@@ -1821,8 +1821,6 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list)for (i =0 ; i <MAX_FIBRE_DEVICES ; i++) {/* Issue GFPN_ID */ - list[i].fp_speeds = list[i].fp_speed =0 ; -/* Prepare common MS IOCB */ ms_pkt =qla24xx_prep_ms_fm_iocb (ha,GPSC_REQ_SIZE ,GPSC_RSP_SIZE );
@@ -1858,9 +1856,21 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list) } rval =QLA_FUNCTION_FAILED ; }else { -/* Save portname */ - list[i].fp_speeds = ct_rsp->rsp.gpsc.speeds; - list[i].fp_speed = ct_rsp->rsp.gpsc.speed; +/* Save port-speed */ +switch (be16_to_cpu (ct_rsp->rsp.gpsc.speed)) { +case BIT_15 : + list[i].fp_speed =PORT_SPEED_1GB ; +break ; +case BIT_14 : + list[i].fp_speed =PORT_SPEED_2GB ; +break ; +case BIT_13 : + list[i].fp_speed =PORT_SPEED_4GB ; +break ; +case BIT_11 : + list[i].fp_speed =PORT_SPEED_8GB ; +break ; + } DEBUG2_3(printk("scsi(%ld): GPSC ext entry - " "fpn %02x%02x%02x%02x%02x%02x%02x%02x speeds=%04x "
@@ -1873,8 +1883,8 @@ qla2x00_gpsc(scsi_qla_host_t *ha, sw_info_t *list) list[i].fabric_port_name[5 ], list[i].fabric_port_name[6 ], list[i].fabric_port_name[7 ], -be16_to_cpu (list[i].fp_speeds), - be16_to_cpu(list[i].fp_speed))); +be16_to_cpu (ct_rsp->rsp.gpsc.speeds), + be16_to_cpu(ct_rsp->rsp.gpsc.speed))); }/* Last device exit. */
drivers/scsi/qla2xxx/qla_init.c +11 -34
78 lines not on this page · raw message
Signature · 1 line
1.5.3.rc4.67.gf9286