diff options
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/Kconfig | 24 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/Makefile | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 4 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.c | 105 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.h | 4 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 6 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gs.c | 8 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 24 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 14 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 107 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 6 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 3 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_version.h | 4 |
13 files changed, 127 insertions, 184 deletions
diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig index 5205c4e7d6ff..5758b2566d7f 100644 --- a/drivers/scsi/qla2xxx/Kconfig +++ b/drivers/scsi/qla2xxx/Kconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | config SCSI_QLA2XXX | 1 | config SCSI_QLA_FC |
2 | tristate "QLogic QLA2XXX Fibre Channel Support" | 2 | tristate "QLogic QLA2XXX Fibre Channel Support" |
3 | depends on PCI && SCSI | 3 | depends on PCI && SCSI |
4 | select SCSI_FC_ATTRS | 4 | select SCSI_FC_ATTRS |
@@ -22,49 +22,57 @@ config SCSI_QLA2XXX | |||
22 | Upon request, the driver caches the firmware image until | 22 | Upon request, the driver caches the firmware image until |
23 | the driver is unloaded. | 23 | the driver is unloaded. |
24 | 24 | ||
25 | Firmware images can be retrieved from: | ||
26 | |||
27 | ftp://ftp.qlogic.com/outgoing/linux/firmware/ | ||
28 | |||
25 | NOTE: The original method of building firmware-loader | 29 | NOTE: The original method of building firmware-loader |
26 | modules has been deprecated as the firmware-images will | 30 | modules has been deprecated as the firmware-images will |
27 | be removed from the kernel sources. | 31 | be removed from the kernel sources. |
28 | 32 | ||
29 | config SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 33 | config SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
30 | bool " Use firmware-loader modules (DEPRECATED)" | 34 | bool " Use firmware-loader modules (DEPRECATED)" |
31 | depends on SCSI_QLA2XXX | 35 | depends on SCSI_QLA_FC |
36 | help | ||
37 | This option offers you the deprecated firmware-loader | ||
38 | modules that have been obsoleted by the usage of the | ||
39 | Firmware Loader interface in the qla2xxx driver. | ||
32 | 40 | ||
33 | config SCSI_QLA21XX | 41 | config SCSI_QLA21XX |
34 | tristate " Build QLogic ISP2100 firmware-module" | 42 | tristate " Build QLogic ISP2100 firmware-module" |
35 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 43 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
36 | ---help--- | 44 | ---help--- |
37 | This driver supports the QLogic 21xx (ISP2100) host adapter family. | 45 | This driver supports the QLogic 21xx (ISP2100) host adapter family. |
38 | 46 | ||
39 | config SCSI_QLA22XX | 47 | config SCSI_QLA22XX |
40 | tristate " Build QLogic ISP2200 firmware-module" | 48 | tristate " Build QLogic ISP2200 firmware-module" |
41 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 49 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
42 | ---help--- | 50 | ---help--- |
43 | This driver supports the QLogic 22xx (ISP2200) host adapter family. | 51 | This driver supports the QLogic 22xx (ISP2200) host adapter family. |
44 | 52 | ||
45 | config SCSI_QLA2300 | 53 | config SCSI_QLA2300 |
46 | tristate " Build QLogic ISP2300 firmware-module" | 54 | tristate " Build QLogic ISP2300 firmware-module" |
47 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 55 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
48 | ---help--- | 56 | ---help--- |
49 | This driver supports the QLogic 2300 (ISP2300 and ISP2312) host | 57 | This driver supports the QLogic 2300 (ISP2300 and ISP2312) host |
50 | adapter family. | 58 | adapter family. |
51 | 59 | ||
52 | config SCSI_QLA2322 | 60 | config SCSI_QLA2322 |
53 | tristate " Build QLogic ISP2322 firmware-module" | 61 | tristate " Build QLogic ISP2322 firmware-module" |
54 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 62 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
55 | ---help--- | 63 | ---help--- |
56 | This driver supports the QLogic 2322 (ISP2322) host adapter family. | 64 | This driver supports the QLogic 2322 (ISP2322) host adapter family. |
57 | 65 | ||
58 | config SCSI_QLA6312 | 66 | config SCSI_QLA6312 |
59 | tristate " Build QLogic ISP63xx firmware-module" | 67 | tristate " Build QLogic ISP63xx firmware-module" |
60 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 68 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
61 | ---help--- | 69 | ---help--- |
62 | This driver supports the QLogic 63xx (ISP6312 and ISP6322) host | 70 | This driver supports the QLogic 63xx (ISP6312 and ISP6322) host |
63 | adapter family. | 71 | adapter family. |
64 | 72 | ||
65 | config SCSI_QLA24XX | 73 | config SCSI_QLA24XX |
66 | tristate " Build QLogic ISP24xx firmware-module" | 74 | tristate " Build QLogic ISP24xx firmware-module" |
67 | depends on SCSI_QLA2XXX_EMBEDDED_FIRMWARE | 75 | depends on SCSI_QLA_FC && SCSI_QLA2XXX_EMBEDDED_FIRMWARE |
68 | ---help--- | 76 | ---help--- |
69 | This driver supports the QLogic 24xx (ISP2422 and ISP2432) host | 77 | This driver supports the QLogic 24xx (ISP2422 and ISP2432) host |
70 | adapter family. | 78 | adapter family. |
diff --git a/drivers/scsi/qla2xxx/Makefile b/drivers/scsi/qla2xxx/Makefile index 40c0de125889..d028bc50ccf7 100644 --- a/drivers/scsi/qla2xxx/Makefile +++ b/drivers/scsi/qla2xxx/Makefile | |||
@@ -3,7 +3,7 @@ EXTRA_CFLAGS += -DUNIQUE_FW_NAME | |||
3 | qla2xxx-y := qla_os.o qla_init.o qla_mbx.o qla_iocb.o qla_isr.o qla_gs.o \ | 3 | qla2xxx-y := qla_os.o qla_init.o qla_mbx.o qla_iocb.o qla_isr.o qla_gs.o \ |
4 | qla_dbg.o qla_sup.o qla_rscn.o qla_attr.o | 4 | qla_dbg.o qla_sup.o qla_rscn.o qla_attr.o |
5 | 5 | ||
6 | obj-$(CONFIG_SCSI_QLA2XXX) += qla2xxx.o | 6 | obj-$(CONFIG_SCSI_QLA_FC) += qla2xxx.o |
7 | 7 | ||
8 | qla2100-y := ql2100.o ql2100_fw.o | 8 | qla2100-y := ql2100.o ql2100_fw.o |
9 | qla2200-y := ql2200.o ql2200_fw.o | 9 | qla2200-y := ql2200.o ql2200_fw.o |
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 2efca52dff50..b17ee62dd1a9 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -541,7 +541,7 @@ struct fc_function_template qla2xxx_transport_functions = { | |||
541 | void | 541 | void |
542 | qla2x00_init_host_attr(scsi_qla_host_t *ha) | 542 | qla2x00_init_host_attr(scsi_qla_host_t *ha) |
543 | { | 543 | { |
544 | fc_host_node_name(ha->host) = wwn_to_u64(ha->init_cb->node_name); | 544 | fc_host_node_name(ha->host) = wwn_to_u64(ha->node_name); |
545 | fc_host_port_name(ha->host) = wwn_to_u64(ha->init_cb->port_name); | 545 | fc_host_port_name(ha->host) = wwn_to_u64(ha->port_name); |
546 | fc_host_supported_classes(ha->host) = FC_COS_CLASS3; | 546 | fc_host_supported_classes(ha->host) = FC_COS_CLASS3; |
547 | } | 547 | } |
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 5c5d2315cfab..2d9b12ffe09c 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c | |||
@@ -1003,10 +1003,10 @@ qla24xx_fw_dump(scsi_qla_host_t *ha, int hardware_locked) | |||
1003 | fw = (struct qla24xx_fw_dump *) ha->fw_dump24; | 1003 | fw = (struct qla24xx_fw_dump *) ha->fw_dump24; |
1004 | 1004 | ||
1005 | rval = QLA_SUCCESS; | 1005 | rval = QLA_SUCCESS; |
1006 | fw->hccr = RD_REG_DWORD(®->hccr); | 1006 | fw->host_status = RD_REG_DWORD(®->host_status); |
1007 | 1007 | ||
1008 | /* Pause RISC. */ | 1008 | /* Pause RISC. */ |
1009 | if ((fw->hccr & HCCRX_RISC_PAUSE) == 0) { | 1009 | if ((RD_REG_DWORD(®->hccr) & HCCRX_RISC_PAUSE) == 0) { |
1010 | WRT_REG_DWORD(®->hccr, HCCRX_SET_RISC_RESET | | 1010 | WRT_REG_DWORD(®->hccr, HCCRX_SET_RISC_RESET | |
1011 | HCCRX_CLR_HOST_INT); | 1011 | HCCRX_CLR_HOST_INT); |
1012 | RD_REG_DWORD(®->hccr); /* PCI Posting. */ | 1012 | RD_REG_DWORD(®->hccr); /* PCI Posting. */ |
@@ -1021,16 +1021,54 @@ qla24xx_fw_dump(scsi_qla_host_t *ha, int hardware_locked) | |||
1021 | } | 1021 | } |
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | /* Disable interrupts. */ | ||
1025 | WRT_REG_DWORD(®->ictrl, 0); | ||
1026 | RD_REG_DWORD(®->ictrl); | ||
1027 | |||
1028 | if (rval == QLA_SUCCESS) { | 1024 | if (rval == QLA_SUCCESS) { |
1029 | /* Host interface registers. */ | 1025 | /* Host interface registers. */ |
1030 | dmp_reg = (uint32_t __iomem *)(reg + 0); | 1026 | dmp_reg = (uint32_t __iomem *)(reg + 0); |
1031 | for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) | 1027 | for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) |
1032 | fw->host_reg[cnt] = RD_REG_DWORD(dmp_reg++); | 1028 | fw->host_reg[cnt] = RD_REG_DWORD(dmp_reg++); |
1033 | 1029 | ||
1030 | /* Disable interrupts. */ | ||
1031 | WRT_REG_DWORD(®->ictrl, 0); | ||
1032 | RD_REG_DWORD(®->ictrl); | ||
1033 | |||
1034 | /* Shadow registers. */ | ||
1035 | WRT_REG_DWORD(®->iobase_addr, 0x0F70); | ||
1036 | RD_REG_DWORD(®->iobase_addr); | ||
1037 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1038 | WRT_REG_DWORD(dmp_reg, 0xB0000000); | ||
1039 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1040 | fw->shadow_reg[0] = RD_REG_DWORD(dmp_reg); | ||
1041 | |||
1042 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1043 | WRT_REG_DWORD(dmp_reg, 0xB0100000); | ||
1044 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1045 | fw->shadow_reg[1] = RD_REG_DWORD(dmp_reg); | ||
1046 | |||
1047 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1048 | WRT_REG_DWORD(dmp_reg, 0xB0200000); | ||
1049 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1050 | fw->shadow_reg[2] = RD_REG_DWORD(dmp_reg); | ||
1051 | |||
1052 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1053 | WRT_REG_DWORD(dmp_reg, 0xB0300000); | ||
1054 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1055 | fw->shadow_reg[3] = RD_REG_DWORD(dmp_reg); | ||
1056 | |||
1057 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1058 | WRT_REG_DWORD(dmp_reg, 0xB0400000); | ||
1059 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1060 | fw->shadow_reg[4] = RD_REG_DWORD(dmp_reg); | ||
1061 | |||
1062 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1063 | WRT_REG_DWORD(dmp_reg, 0xB0500000); | ||
1064 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1065 | fw->shadow_reg[5] = RD_REG_DWORD(dmp_reg); | ||
1066 | |||
1067 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1068 | WRT_REG_DWORD(dmp_reg, 0xB0600000); | ||
1069 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1070 | fw->shadow_reg[6] = RD_REG_DWORD(dmp_reg); | ||
1071 | |||
1034 | /* Mailbox registers. */ | 1072 | /* Mailbox registers. */ |
1035 | mbx_reg = (uint16_t __iomem *)((uint8_t __iomem *)reg + 0x80); | 1073 | mbx_reg = (uint16_t __iomem *)((uint8_t __iomem *)reg + 0x80); |
1036 | for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) | 1074 | for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) |
@@ -1308,43 +1346,6 @@ qla24xx_fw_dump(scsi_qla_host_t *ha, int hardware_locked) | |||
1308 | for (cnt = 0; cnt < 16; cnt++) | 1346 | for (cnt = 0; cnt < 16; cnt++) |
1309 | *iter_reg++ = RD_REG_DWORD(dmp_reg++); | 1347 | *iter_reg++ = RD_REG_DWORD(dmp_reg++); |
1310 | 1348 | ||
1311 | WRT_REG_DWORD(®->iobase_addr, 0x0F70); | ||
1312 | RD_REG_DWORD(®->iobase_addr); | ||
1313 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1314 | WRT_REG_DWORD(dmp_reg, 0xB0000000); | ||
1315 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1316 | fw->shadow_reg[0] = RD_REG_DWORD(dmp_reg); | ||
1317 | |||
1318 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1319 | WRT_REG_DWORD(dmp_reg, 0xB0100000); | ||
1320 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1321 | fw->shadow_reg[1] = RD_REG_DWORD(dmp_reg); | ||
1322 | |||
1323 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1324 | WRT_REG_DWORD(dmp_reg, 0xB0200000); | ||
1325 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1326 | fw->shadow_reg[2] = RD_REG_DWORD(dmp_reg); | ||
1327 | |||
1328 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1329 | WRT_REG_DWORD(dmp_reg, 0xB0300000); | ||
1330 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1331 | fw->shadow_reg[3] = RD_REG_DWORD(dmp_reg); | ||
1332 | |||
1333 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1334 | WRT_REG_DWORD(dmp_reg, 0xB0400000); | ||
1335 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1336 | fw->shadow_reg[4] = RD_REG_DWORD(dmp_reg); | ||
1337 | |||
1338 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1339 | WRT_REG_DWORD(dmp_reg, 0xB0500000); | ||
1340 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1341 | fw->shadow_reg[5] = RD_REG_DWORD(dmp_reg); | ||
1342 | |||
1343 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xF0); | ||
1344 | WRT_REG_DWORD(dmp_reg, 0xB0600000); | ||
1345 | dmp_reg = (uint32_t __iomem *)((uint8_t __iomem *)reg + 0xFC); | ||
1346 | fw->shadow_reg[6] = RD_REG_DWORD(dmp_reg); | ||
1347 | |||
1348 | /* Local memory controller registers. */ | 1349 | /* Local memory controller registers. */ |
1349 | iter_reg = fw->lmc_reg; | 1350 | iter_reg = fw->lmc_reg; |
1350 | WRT_REG_DWORD(®->iobase_addr, 0x3000); | 1351 | WRT_REG_DWORD(®->iobase_addr, 0x3000); |
@@ -1677,7 +1678,7 @@ qla24xx_ascii_fw_dump(scsi_qla_host_t *ha) | |||
1677 | ha->fw_major_version, ha->fw_minor_version, | 1678 | ha->fw_major_version, ha->fw_minor_version, |
1678 | ha->fw_subminor_version, ha->fw_attributes); | 1679 | ha->fw_subminor_version, ha->fw_attributes); |
1679 | 1680 | ||
1680 | qla_uprintf(&uiter, "\nHCCR Register\n%04x\n", fw->hccr); | 1681 | qla_uprintf(&uiter, "\nR2H Status Register\n%04x\n", fw->host_status); |
1681 | 1682 | ||
1682 | qla_uprintf(&uiter, "\nHost Interface Registers"); | 1683 | qla_uprintf(&uiter, "\nHost Interface Registers"); |
1683 | for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) { | 1684 | for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) { |
@@ -1687,6 +1688,14 @@ qla24xx_ascii_fw_dump(scsi_qla_host_t *ha) | |||
1687 | qla_uprintf(&uiter, "%08x ", fw->host_reg[cnt]); | 1688 | qla_uprintf(&uiter, "%08x ", fw->host_reg[cnt]); |
1688 | } | 1689 | } |
1689 | 1690 | ||
1691 | qla_uprintf(&uiter, "\n\nShadow Registers"); | ||
1692 | for (cnt = 0; cnt < sizeof(fw->shadow_reg) / 4; cnt++) { | ||
1693 | if (cnt % 8 == 0) | ||
1694 | qla_uprintf(&uiter, "\n"); | ||
1695 | |||
1696 | qla_uprintf(&uiter, "%08x ", fw->shadow_reg[cnt]); | ||
1697 | } | ||
1698 | |||
1690 | qla_uprintf(&uiter, "\n\nMailbox Registers"); | 1699 | qla_uprintf(&uiter, "\n\nMailbox Registers"); |
1691 | for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) { | 1700 | for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) { |
1692 | if (cnt % 8 == 0) | 1701 | if (cnt % 8 == 0) |
@@ -1855,14 +1864,6 @@ qla24xx_ascii_fw_dump(scsi_qla_host_t *ha) | |||
1855 | qla_uprintf(&uiter, "%08x ", fw->risc_gp_reg[cnt]); | 1864 | qla_uprintf(&uiter, "%08x ", fw->risc_gp_reg[cnt]); |
1856 | } | 1865 | } |
1857 | 1866 | ||
1858 | qla_uprintf(&uiter, "\n\nShadow Registers"); | ||
1859 | for (cnt = 0; cnt < sizeof(fw->shadow_reg) / 4; cnt++) { | ||
1860 | if (cnt % 8 == 0) | ||
1861 | qla_uprintf(&uiter, "\n"); | ||
1862 | |||
1863 | qla_uprintf(&uiter, "%08x ", fw->shadow_reg[cnt]); | ||
1864 | } | ||
1865 | |||
1866 | qla_uprintf(&uiter, "\n\nLMC Registers"); | 1867 | qla_uprintf(&uiter, "\n\nLMC Registers"); |
1867 | for (cnt = 0; cnt < sizeof(fw->lmc_reg) / 4; cnt++) { | 1868 | for (cnt = 0; cnt < sizeof(fw->lmc_reg) / 4; cnt++) { |
1868 | if (cnt % 8 == 0) | 1869 | if (cnt % 8 == 0) |
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h index 935a59a8c054..ab6afeaa2f2c 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.h +++ b/drivers/scsi/qla2xxx/qla_dbg.h | |||
@@ -227,8 +227,9 @@ struct qla2100_fw_dump { | |||
227 | #define FW_DUMP_SIZE_24XX 0x2B0000 | 227 | #define FW_DUMP_SIZE_24XX 0x2B0000 |
228 | 228 | ||
229 | struct qla24xx_fw_dump { | 229 | struct qla24xx_fw_dump { |
230 | uint32_t hccr; | 230 | uint32_t host_status; |
231 | uint32_t host_reg[32]; | 231 | uint32_t host_reg[32]; |
232 | uint32_t shadow_reg[7]; | ||
232 | uint16_t mailbox_reg[32]; | 233 | uint16_t mailbox_reg[32]; |
233 | uint32_t xseq_gp_reg[128]; | 234 | uint32_t xseq_gp_reg[128]; |
234 | uint32_t xseq_0_reg[16]; | 235 | uint32_t xseq_0_reg[16]; |
@@ -250,7 +251,6 @@ struct qla24xx_fw_dump { | |||
250 | uint32_t rcvt0_data_dma_reg[32]; | 251 | uint32_t rcvt0_data_dma_reg[32]; |
251 | uint32_t rcvt1_data_dma_reg[32]; | 252 | uint32_t rcvt1_data_dma_reg[32]; |
252 | uint32_t risc_gp_reg[128]; | 253 | uint32_t risc_gp_reg[128]; |
253 | uint32_t shadow_reg[7]; | ||
254 | uint32_t lmc_reg[112]; | 254 | uint32_t lmc_reg[112]; |
255 | uint32_t fpm_hdw_reg[192]; | 255 | uint32_t fpm_hdw_reg[192]; |
256 | uint32_t fb_hdw_reg[176]; | 256 | uint32_t fb_hdw_reg[176]; |
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index bec81adcf4fd..32be4c14cccb 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
@@ -62,6 +62,7 @@ extern int qlport_down_retry; | |||
62 | extern int ql2xplogiabsentdevice; | 62 | extern int ql2xplogiabsentdevice; |
63 | extern int ql2xloginretrycount; | 63 | extern int ql2xloginretrycount; |
64 | extern int ql2xfdmienable; | 64 | extern int ql2xfdmienable; |
65 | extern int ql2xprocessrscn; | ||
65 | 66 | ||
66 | extern void qla2x00_sp_compl(scsi_qla_host_t *, srb_t *); | 67 | extern void qla2x00_sp_compl(scsi_qla_host_t *, srb_t *); |
67 | 68 | ||
@@ -96,10 +97,7 @@ int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); | |||
96 | * Global Function Prototypes in qla_mbx.c source file. | 97 | * Global Function Prototypes in qla_mbx.c source file. |
97 | */ | 98 | */ |
98 | extern int | 99 | extern int |
99 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t); | 100 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
100 | |||
101 | extern int | ||
102 | qla2x00_load_ram_ext(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); | ||
103 | 101 | ||
104 | extern int | 102 | extern int |
105 | qla2x00_execute_fw(scsi_qla_host_t *, uint32_t); | 103 | qla2x00_execute_fw(scsi_qla_host_t *, uint32_t); |
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index cd6f7c3cfe68..d620a8e8a614 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c | |||
@@ -538,6 +538,7 @@ qla2x00_rff_id(scsi_qla_host_t *ha) | |||
538 | ct_req->req.rff_id.port_id[1] = ha->d_id.b.area; | 538 | ct_req->req.rff_id.port_id[1] = ha->d_id.b.area; |
539 | ct_req->req.rff_id.port_id[2] = ha->d_id.b.al_pa; | 539 | ct_req->req.rff_id.port_id[2] = ha->d_id.b.al_pa; |
540 | 540 | ||
541 | ct_req->req.rff_id.fc4_feature = BIT_1; | ||
541 | ct_req->req.rff_id.fc4_type = 0x08; /* SCSI - FCP */ | 542 | ct_req->req.rff_id.fc4_type = 0x08; /* SCSI - FCP */ |
542 | 543 | ||
543 | /* Execute MS IOCB */ | 544 | /* Execute MS IOCB */ |
@@ -1529,9 +1530,9 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1529 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); | 1530 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); |
1530 | eiter->len = __constant_cpu_to_be16(4 + 4); | 1531 | eiter->len = __constant_cpu_to_be16(4 + 4); |
1531 | if (IS_QLA25XX(ha)) | 1532 | if (IS_QLA25XX(ha)) |
1532 | eiter->a.sup_speed = __constant_cpu_to_be32(4); | ||
1533 | else if (IS_QLA24XX(ha)) | ||
1534 | eiter->a.sup_speed = __constant_cpu_to_be32(8); | 1533 | eiter->a.sup_speed = __constant_cpu_to_be32(8); |
1534 | else if (IS_QLA24XX(ha)) | ||
1535 | eiter->a.sup_speed = __constant_cpu_to_be32(4); | ||
1535 | else if (IS_QLA23XX(ha)) | 1536 | else if (IS_QLA23XX(ha)) |
1536 | eiter->a.sup_speed = __constant_cpu_to_be32(2); | 1537 | eiter->a.sup_speed = __constant_cpu_to_be32(2); |
1537 | else | 1538 | else |
@@ -1553,9 +1554,6 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1553 | eiter->a.cur_speed = __constant_cpu_to_be32(2); | 1554 | eiter->a.cur_speed = __constant_cpu_to_be32(2); |
1554 | break; | 1555 | break; |
1555 | case 3: | 1556 | case 3: |
1556 | eiter->a.cur_speed = __constant_cpu_to_be32(8); | ||
1557 | break; | ||
1558 | case 4: | ||
1559 | eiter->a.cur_speed = __constant_cpu_to_be32(4); | 1557 | eiter->a.cur_speed = __constant_cpu_to_be32(4); |
1560 | break; | 1558 | break; |
1561 | } | 1559 | } |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 7d973bd9022b..a91fea69ad63 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -1014,11 +1014,13 @@ qla24xx_update_fw_options(scsi_qla_host_t *ha) | |||
1014 | int rval; | 1014 | int rval; |
1015 | 1015 | ||
1016 | /* Update Serial Link options. */ | 1016 | /* Update Serial Link options. */ |
1017 | if ((ha->fw_seriallink_options24[0] & BIT_0) == 0) | 1017 | if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0) |
1018 | return; | 1018 | return; |
1019 | 1019 | ||
1020 | rval = qla2x00_set_serdes_params(ha, ha->fw_seriallink_options24[1], | 1020 | rval = qla2x00_set_serdes_params(ha, |
1021 | ha->fw_seriallink_options24[2], ha->fw_seriallink_options24[3]); | 1021 | le16_to_cpu(ha->fw_seriallink_options24[1]), |
1022 | le16_to_cpu(ha->fw_seriallink_options24[2]), | ||
1023 | le16_to_cpu(ha->fw_seriallink_options24[3])); | ||
1022 | if (rval != QLA_SUCCESS) { | 1024 | if (rval != QLA_SUCCESS) { |
1023 | qla_printk(KERN_WARNING, ha, | 1025 | qla_printk(KERN_WARNING, ha, |
1024 | "Unable to update Serial Link options (%x).\n", rval); | 1026 | "Unable to update Serial Link options (%x).\n", rval); |
@@ -1939,6 +1941,9 @@ qla2x00_configure_local_loop(scsi_qla_host_t *ha) | |||
1939 | "information -- get_port_database=%x, " | 1941 | "information -- get_port_database=%x, " |
1940 | "loop_id=0x%04x\n", | 1942 | "loop_id=0x%04x\n", |
1941 | ha->host_no, rval2, new_fcport->loop_id)); | 1943 | ha->host_no, rval2, new_fcport->loop_id)); |
1944 | DEBUG2(printk("scsi(%ld): Scheduling resync...\n", | ||
1945 | ha->host_no)); | ||
1946 | set_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags); | ||
1942 | continue; | 1947 | continue; |
1943 | } | 1948 | } |
1944 | 1949 | ||
@@ -2648,7 +2653,8 @@ qla2x00_device_resync(scsi_qla_host_t *ha) | |||
2648 | 2653 | ||
2649 | switch (format) { | 2654 | switch (format) { |
2650 | case 0: | 2655 | case 0: |
2651 | if (!IS_QLA2100(ha) && !IS_QLA2200(ha) && | 2656 | if (ql2xprocessrscn && |
2657 | !IS_QLA2100(ha) && !IS_QLA2200(ha) && | ||
2652 | !IS_QLA6312(ha) && !IS_QLA6322(ha) && | 2658 | !IS_QLA6312(ha) && !IS_QLA6322(ha) && |
2653 | !IS_QLA24XX(ha) && !IS_QLA25XX(ha) && | 2659 | !IS_QLA24XX(ha) && !IS_QLA25XX(ha) && |
2654 | ha->flags.init_done) { | 2660 | ha->flags.init_done) { |
@@ -3402,6 +3408,8 @@ qla24xx_nvram_config(scsi_qla_host_t *ha) | |||
3402 | ha->node_name = icb->node_name; | 3408 | ha->node_name = icb->node_name; |
3403 | ha->port_name = icb->port_name; | 3409 | ha->port_name = icb->port_name; |
3404 | 3410 | ||
3411 | icb->execution_throttle = __constant_cpu_to_le16(0xFFFF); | ||
3412 | |||
3405 | ha->retry_count = le16_to_cpu(nv->login_retry_count); | 3413 | ha->retry_count = le16_to_cpu(nv->login_retry_count); |
3406 | 3414 | ||
3407 | /* Set minimum login_timeout to 4 seconds. */ | 3415 | /* Set minimum login_timeout to 4 seconds. */ |
@@ -3667,8 +3675,8 @@ qla24xx_load_risc_flash(scsi_qla_host_t *ha, uint32_t *srisc_addr) | |||
3667 | for (i = 0; i < dlen; i++) | 3675 | for (i = 0; i < dlen; i++) |
3668 | dcode[i] = swab32(dcode[i]); | 3676 | dcode[i] = swab32(dcode[i]); |
3669 | 3677 | ||
3670 | rval = qla2x00_load_ram_ext(ha, ha->request_dma, | 3678 | rval = qla2x00_load_ram(ha, ha->request_dma, risc_addr, |
3671 | risc_addr, dlen); | 3679 | dlen); |
3672 | if (rval) { | 3680 | if (rval) { |
3673 | DEBUG(printk("scsi(%ld):[ERROR] Failed to load " | 3681 | DEBUG(printk("scsi(%ld):[ERROR] Failed to load " |
3674 | "segment %d of firmware\n", ha->host_no, | 3682 | "segment %d of firmware\n", ha->host_no, |
@@ -3868,8 +3876,8 @@ qla24xx_load_risc(scsi_qla_host_t *ha, uint32_t *srisc_addr) | |||
3868 | for (i = 0; i < dlen; i++) | 3876 | for (i = 0; i < dlen; i++) |
3869 | dcode[i] = swab32(fwcode[i]); | 3877 | dcode[i] = swab32(fwcode[i]); |
3870 | 3878 | ||
3871 | rval = qla2x00_load_ram_ext(ha, ha->request_dma, | 3879 | rval = qla2x00_load_ram(ha, ha->request_dma, risc_addr, |
3872 | risc_addr, dlen); | 3880 | dlen); |
3873 | if (rval) { | 3881 | if (rval) { |
3874 | DEBUG(printk("scsi(%ld):[ERROR] Failed to load " | 3882 | DEBUG(printk("scsi(%ld):[ERROR] Failed to load " |
3875 | "segment %d of firmware\n", ha->host_no, | 3883 | "segment %d of firmware\n", ha->host_no, |
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 5181d966fecb..f63af081d4ff 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -519,7 +519,8 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb) | |||
519 | * us, create a new entry in our rscn fcports list and handle | 519 | * us, create a new entry in our rscn fcports list and handle |
520 | * the event like an RSCN. | 520 | * the event like an RSCN. |
521 | */ | 521 | */ |
522 | if (!IS_QLA2100(ha) && !IS_QLA2200(ha) && !IS_QLA6312(ha) && | 522 | if (ql2xprocessrscn && |
523 | !IS_QLA2100(ha) && !IS_QLA2200(ha) && !IS_QLA6312(ha) && | ||
523 | !IS_QLA6322(ha) && !IS_QLA24XX(ha) && !IS_QLA25XX(ha) && | 524 | !IS_QLA6322(ha) && !IS_QLA24XX(ha) && !IS_QLA25XX(ha) && |
524 | ha->flags.init_done && mb[1] != 0xffff && | 525 | ha->flags.init_done && mb[1] != 0xffff && |
525 | ((ha->operating_mode == P2P && mb[1] != 0) || | 526 | ((ha->operating_mode == P2P && mb[1] != 0) || |
@@ -963,15 +964,16 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt) | |||
963 | break; | 964 | break; |
964 | 965 | ||
965 | case CS_DATA_UNDERRUN: | 966 | case CS_DATA_UNDERRUN: |
966 | DEBUG2(printk(KERN_INFO | ||
967 | "scsi(%ld:%d:%d) UNDERRUN status detected 0x%x-0x%x.\n", | ||
968 | ha->host_no, cp->device->id, cp->device->lun, comp_status, | ||
969 | scsi_status)); | ||
970 | |||
971 | resid = resid_len; | 967 | resid = resid_len; |
972 | if (scsi_status & SS_RESIDUAL_UNDER) { | 968 | if (scsi_status & SS_RESIDUAL_UNDER) { |
973 | cp->resid = resid; | 969 | cp->resid = resid; |
974 | CMD_RESID_LEN(cp) = resid; | 970 | CMD_RESID_LEN(cp) = resid; |
971 | } else { | ||
972 | DEBUG2(printk(KERN_INFO | ||
973 | "scsi(%ld:%d:%d) UNDERRUN status detected " | ||
974 | "0x%x-0x%x.\n", ha->host_no, cp->device->id, | ||
975 | cp->device->lun, comp_status, scsi_status)); | ||
976 | |||
975 | } | 977 | } |
976 | 978 | ||
977 | /* | 979 | /* |
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 9746cd1e664b..3099b379de9d 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -196,7 +196,9 @@ qla2x00_mailbox_command(scsi_qla_host_t *ha, mbx_cmd_t *mcp) | |||
196 | /* Check for pending interrupts. */ | 196 | /* Check for pending interrupts. */ |
197 | qla2x00_poll(ha); | 197 | qla2x00_poll(ha); |
198 | 198 | ||
199 | udelay(10); /* v4.27 */ | 199 | if (command != MBC_LOAD_RISC_RAM_EXTENDED && |
200 | !ha->flags.mbox_int) | ||
201 | msleep(10); | ||
200 | } /* while */ | 202 | } /* while */ |
201 | } | 203 | } |
202 | 204 | ||
@@ -325,113 +327,30 @@ qla2x00_mailbox_command(scsi_qla_host_t *ha, mbx_cmd_t *mcp) | |||
325 | return rval; | 327 | return rval; |
326 | } | 328 | } |
327 | 329 | ||
328 | /* | ||
329 | * qla2x00_load_ram | ||
330 | * Load adapter RAM using DMA. | ||
331 | * | ||
332 | * Input: | ||
333 | * ha = adapter block pointer. | ||
334 | * | ||
335 | * Returns: | ||
336 | * qla2x00 local function return status code. | ||
337 | * | ||
338 | * Context: | ||
339 | * Kernel context. | ||
340 | */ | ||
341 | int | 330 | int |
342 | qla2x00_load_ram(scsi_qla_host_t *ha, dma_addr_t req_dma, uint16_t risc_addr, | 331 | qla2x00_load_ram(scsi_qla_host_t *ha, dma_addr_t req_dma, uint32_t risc_addr, |
343 | uint16_t risc_code_size) | 332 | uint32_t risc_code_size) |
344 | { | 333 | { |
345 | int rval; | 334 | int rval; |
346 | mbx_cmd_t mc; | 335 | mbx_cmd_t mc; |
347 | mbx_cmd_t *mcp = &mc; | 336 | mbx_cmd_t *mcp = &mc; |
348 | uint32_t req_len; | ||
349 | dma_addr_t nml_dma; | ||
350 | uint32_t nml_len; | ||
351 | uint32_t normalized; | ||
352 | |||
353 | DEBUG11(printk("qla2x00_load_ram(%ld): entered.\n", | ||
354 | ha->host_no);) | ||
355 | 337 | ||
356 | req_len = risc_code_size; | 338 | DEBUG11(printk("%s(%ld): entered.\n", __func__, ha->host_no)); |
357 | nml_dma = 0; | ||
358 | nml_len = 0; | ||
359 | |||
360 | normalized = qla2x00_normalize_dma_addr(&req_dma, &req_len, &nml_dma, | ||
361 | &nml_len); | ||
362 | |||
363 | /* Load first segment */ | ||
364 | mcp->mb[0] = MBC_LOAD_RISC_RAM; | ||
365 | mcp->mb[1] = risc_addr; | ||
366 | mcp->mb[2] = MSW(req_dma); | ||
367 | mcp->mb[3] = LSW(req_dma); | ||
368 | mcp->mb[4] = (uint16_t)req_len; | ||
369 | mcp->mb[6] = MSW(MSD(req_dma)); | ||
370 | mcp->mb[7] = LSW(MSD(req_dma)); | ||
371 | mcp->out_mb = MBX_7|MBX_6|MBX_4|MBX_3|MBX_2|MBX_1|MBX_0; | ||
372 | mcp->in_mb = MBX_0; | ||
373 | mcp->tov = 30; | ||
374 | mcp->flags = 0; | ||
375 | rval = qla2x00_mailbox_command(ha, mcp); | ||
376 | |||
377 | /* Load second segment - if necessary */ | ||
378 | if (normalized && (rval == QLA_SUCCESS)) { | ||
379 | mcp->mb[0] = MBC_LOAD_RISC_RAM; | ||
380 | mcp->mb[1] = risc_addr + (uint16_t)req_len; | ||
381 | mcp->mb[2] = MSW(nml_dma); | ||
382 | mcp->mb[3] = LSW(nml_dma); | ||
383 | mcp->mb[4] = (uint16_t)nml_len; | ||
384 | mcp->mb[6] = MSW(MSD(nml_dma)); | ||
385 | mcp->mb[7] = LSW(MSD(nml_dma)); | ||
386 | mcp->out_mb = MBX_7|MBX_6|MBX_4|MBX_3|MBX_2|MBX_1|MBX_0; | ||
387 | mcp->in_mb = MBX_0; | ||
388 | mcp->tov = 30; | ||
389 | mcp->flags = 0; | ||
390 | rval = qla2x00_mailbox_command(ha, mcp); | ||
391 | } | ||
392 | 339 | ||
393 | if (rval == QLA_SUCCESS) { | 340 | if (MSW(risc_addr) || IS_QLA24XX(ha) || IS_QLA25XX(ha)) { |
394 | /* Empty */ | 341 | mcp->mb[0] = MBC_LOAD_RISC_RAM_EXTENDED; |
395 | DEBUG11(printk("qla2x00_load_ram(%ld): done.\n", ha->host_no);) | 342 | mcp->mb[8] = MSW(risc_addr); |
343 | mcp->out_mb = MBX_8|MBX_0; | ||
396 | } else { | 344 | } else { |
397 | /* Empty */ | 345 | mcp->mb[0] = MBC_LOAD_RISC_RAM; |
398 | DEBUG2_3_11(printk("qla2x00_load_ram(%ld): failed. rval=%x " | 346 | mcp->out_mb = MBX_0; |
399 | "mb[0]=%x.\n", ha->host_no, rval, mcp->mb[0]);) | ||
400 | } | 347 | } |
401 | return rval; | ||
402 | } | ||
403 | |||
404 | /* | ||
405 | * qla2x00_load_ram_ext | ||
406 | * Load adapter extended RAM using DMA. | ||
407 | * | ||
408 | * Input: | ||
409 | * ha = adapter block pointer. | ||
410 | * | ||
411 | * Returns: | ||
412 | * qla2x00 local function return status code. | ||
413 | * | ||
414 | * Context: | ||
415 | * Kernel context. | ||
416 | */ | ||
417 | int | ||
418 | qla2x00_load_ram_ext(scsi_qla_host_t *ha, dma_addr_t req_dma, | ||
419 | uint32_t risc_addr, uint32_t risc_code_size) | ||
420 | { | ||
421 | int rval; | ||
422 | mbx_cmd_t mc; | ||
423 | mbx_cmd_t *mcp = &mc; | ||
424 | |||
425 | DEBUG11(printk("%s(%ld): entered.\n", __func__, ha->host_no)); | ||
426 | |||
427 | mcp->mb[0] = MBC_LOAD_RISC_RAM_EXTENDED; | ||
428 | mcp->mb[1] = LSW(risc_addr); | 348 | mcp->mb[1] = LSW(risc_addr); |
429 | mcp->mb[2] = MSW(req_dma); | 349 | mcp->mb[2] = MSW(req_dma); |
430 | mcp->mb[3] = LSW(req_dma); | 350 | mcp->mb[3] = LSW(req_dma); |
431 | mcp->mb[6] = MSW(MSD(req_dma)); | 351 | mcp->mb[6] = MSW(MSD(req_dma)); |
432 | mcp->mb[7] = LSW(MSD(req_dma)); | 352 | mcp->mb[7] = LSW(MSD(req_dma)); |
433 | mcp->mb[8] = MSW(risc_addr); | 353 | mcp->out_mb |= MBX_7|MBX_6|MBX_3|MBX_2|MBX_1; |
434 | mcp->out_mb = MBX_8|MBX_7|MBX_6|MBX_3|MBX_2|MBX_1|MBX_0; | ||
435 | if (IS_QLA24XX(ha) || IS_QLA25XX(ha)) { | 354 | if (IS_QLA24XX(ha) || IS_QLA25XX(ha)) { |
436 | mcp->mb[4] = MSW(risc_code_size); | 355 | mcp->mb[4] = MSW(risc_code_size); |
437 | mcp->mb[5] = LSW(risc_code_size); | 356 | mcp->mb[5] = LSW(risc_code_size); |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 24304300d7b5..4916847d84ec 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -71,6 +71,12 @@ MODULE_PARM_DESC(ql2xfdmienable, | |||
71 | "Enables FDMI registratons " | 71 | "Enables FDMI registratons " |
72 | "Default is 0 - no FDMI. 1 - perfom FDMI."); | 72 | "Default is 0 - no FDMI. 1 - perfom FDMI."); |
73 | 73 | ||
74 | int ql2xprocessrscn; | ||
75 | module_param(ql2xprocessrscn, int, S_IRUGO|S_IRUSR); | ||
76 | MODULE_PARM_DESC(ql2xprocessrscn, | ||
77 | "Option to enable port RSCN handling via a series of less" | ||
78 | "fabric intrusive ADISCs and PLOGIs."); | ||
79 | |||
74 | /* | 80 | /* |
75 | * SCSI host template entry points | 81 | * SCSI host template entry points |
76 | */ | 82 | */ |
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index d54d2a99c3d3..f4d755a643e4 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c | |||
@@ -573,6 +573,9 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr, | |||
573 | } | 573 | } |
574 | } while (0); | 574 | } while (0); |
575 | 575 | ||
576 | /* Enable flash write-protection. */ | ||
577 | qla24xx_write_flash_dword(ha, flash_conf_to_access_addr(0x101), 0x9c); | ||
578 | |||
576 | /* Disable flash write. */ | 579 | /* Disable flash write. */ |
577 | WRT_REG_DWORD(®->ctrl_status, | 580 | WRT_REG_DWORD(®->ctrl_status, |
578 | RD_REG_DWORD(®->ctrl_status) & ~CSRX_FLASH_ENABLE); | 581 | RD_REG_DWORD(®->ctrl_status) & ~CSRX_FLASH_ENABLE); |
diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h index f7937f7f9c68..d537192a1edb 100644 --- a/drivers/scsi/qla2xxx/qla_version.h +++ b/drivers/scsi/qla2xxx/qla_version.h | |||
@@ -7,9 +7,9 @@ | |||
7 | /* | 7 | /* |
8 | * Driver version | 8 | * Driver version |
9 | */ | 9 | */ |
10 | #define QLA2XXX_VERSION "8.01.03-k" | 10 | #define QLA2XXX_VERSION "8.01.04-k" |
11 | 11 | ||
12 | #define QLA_DRIVER_MAJOR_VER 8 | 12 | #define QLA_DRIVER_MAJOR_VER 8 |
13 | #define QLA_DRIVER_MINOR_VER 1 | 13 | #define QLA_DRIVER_MINOR_VER 1 |
14 | #define QLA_DRIVER_PATCH_VER 3 | 14 | #define QLA_DRIVER_PATCH_VER 4 |
15 | #define QLA_DRIVER_BETA_VER 0 | 15 | #define QLA_DRIVER_BETA_VER 0 |