All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch.
@ 2015-04-09 18:59 Himanshu Madhani
  2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
                   ` (14 more replies)
  0 siblings, 15 replies; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Hi James,

Please apply the following patches to the scsi tree at your earliest
convenience for inclusion in the next mainline merge window.

Thanks,
Himanshu

Andrew Vasquez (1):
  qla2xxx: Add serdes read/write support for ISP27XX

Chad Dupuis (1):
  qla2xxx: Increase the wait time for firmware to be ready for P3P.

Himanshu Madhani (8):
  qla2xxx: Fix warnings reported by static checker.
  qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
  qla2xxx: Add message for sucessful FW dump collected for ISP27XX.
  qla2xxx: Add udev notification to save fw dump for ISP27XX
  qla2xxx: Add debugging info for MBX timeout.
  qla2xxx: Disable Interrupt handshake for ISP27XX.
  qla2xxx: Prevent multiple firmware dump collection for ISP27XX.
  qla2xxx: Update driver version to 8.07.00.18-k

Nigel Kirkland (1):
  qla2xxx: Fix beacon blink for ISP27XX.

Sawan Chandak (3):
  qla2xxx: Add support to load firmware from file for ISP 26XX/27XX.
  qla2xxx: Fix virtual port configuration, when switch port is
    disabled/enabled.
  qla2xxx: Restore physical port WWPN only, when port down detected for
    FA-WWPN port.

 drivers/scsi/qla2xxx/Kconfig       |    3 +
 drivers/scsi/qla2xxx/qla_dbg.c     |    6 +-
 drivers/scsi/qla2xxx/qla_def.h     |   16 +++++---
 drivers/scsi/qla2xxx/qla_init.c    |   75 ++++++++++++++++++++++++++++++------
 drivers/scsi/qla2xxx/qla_isr.c     |   17 +++++++-
 drivers/scsi/qla2xxx/qla_mbx.c     |   31 ++++++++++++--
 drivers/scsi/qla2xxx/qla_mid.c     |   22 +++++++----
 drivers/scsi/qla2xxx/qla_os.c      |    3 +
 drivers/scsi/qla2xxx/qla_sup.c     |   11 +++--
 drivers/scsi/qla2xxx/qla_tmpl.c    |   15 +++++++-
 drivers/scsi/qla2xxx/qla_version.h |    2 +-
 11 files changed, 158 insertions(+), 43 deletions(-)

-- 
1.7.7


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [PATCH 01/14] qla2xxx: Fix warnings reported by static checker.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
@ 2015-04-09 18:59 ` Himanshu Madhani
  2015-04-10  6:30   ` Hannes Reinecke
  2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
                   ` (13 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_def.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 5f6b296..cdaf52e 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2163,7 +2163,7 @@ struct ct_fdmi_hba_attr {
 		uint8_t node_name[WWN_SIZE];
 		uint8_t manufacturer[64];
 		uint8_t serial_num[32];
-		uint8_t model[16];
+		uint8_t model[16+1];
 		uint8_t model_desc[80];
 		uint8_t hw_version[32];
 		uint8_t driver_version[32];
@@ -2184,9 +2184,9 @@ struct ct_fdmiv2_hba_attr {
 	uint16_t len;
 	union {
 		uint8_t node_name[WWN_SIZE];
-		uint8_t manufacturer[32];
+		uint8_t manufacturer[64];
 		uint8_t serial_num[32];
-		uint8_t model[16];
+		uint8_t model[16+1];
 		uint8_t model_desc[80];
 		uint8_t hw_version[16];
 		uint8_t driver_version[32];
@@ -2252,7 +2252,7 @@ struct ct_fdmiv2_port_attr {
 		uint32_t cur_speed;
 		uint32_t max_frame_size;
 		uint8_t os_dev_name[32];
-		uint8_t host_name[32];
+		uint8_t host_name[256];
 		uint8_t node_name[WWN_SIZE];
 		uint8_t port_name[WWN_SIZE];
 		uint8_t port_sym_name[128];
@@ -2283,7 +2283,7 @@ struct ct_fdmi_port_attr {
 		uint32_t cur_speed;
 		uint32_t max_frame_size;
 		uint8_t os_dev_name[32];
-		uint8_t host_name[32];
+		uint8_t host_name[256];
 	} a;
 };
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
  2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
@ 2015-04-09 18:59 ` Himanshu Madhani
  2015-04-10  5:59   ` Bart Van Assche
  2015-04-10  6:31   ` Hannes Reinecke
  2015-04-09 18:59 ` [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P Himanshu Madhani
                   ` (12 subsequent siblings)
  14 siblings, 2 replies; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_tmpl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
index a8c0c73..7a92f60 100644
--- a/drivers/scsi/qla2xxx/qla_tmpl.c
+++ b/drivers/scsi/qla2xxx/qla_tmpl.c
@@ -190,7 +190,7 @@ static inline void
 qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
 	uint offset, uint32_t data, void *buf)
 {
-	__iomem void *window = reg + offset;
+	__iomem void *window = (void *)reg + offset;
 
 	if (buf) {
 		WRT_REG_DWORD(window, data);
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
  2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
  2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
@ 2015-04-09 18:59 ` Himanshu Madhani
  2015-04-10  6:31   ` Hannes Reinecke
  2015-04-09 18:59 ` [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX Himanshu Madhani
                   ` (11 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Chad Dupuis <chad.dupuis@qlogic.com>

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_init.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index e59f25b..cb294e5 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -2243,8 +2243,11 @@ qla2x00_fw_ready(scsi_qla_host_t *vha)
 
 	rval = QLA_SUCCESS;
 
-	/* 20 seconds for loop down. */
-	min_wait = 20;
+	/* Time to wait for loop down */
+	if (IS_P3P_TYPE(ha))
+		min_wait = 30;
+	else
+		min_wait = 20;
 
 	/*
 	 * Firmware should take at most one RATOV to login, plus 5 seconds for
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (2 preceding siblings ...)
  2015-04-09 18:59 ` [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P Himanshu Madhani
@ 2015-04-09 18:59 ` Himanshu Madhani
  2015-04-10  6:32   ` Hannes Reinecke
  2015-04-09 18:59 ` [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX Himanshu Madhani
                   ` (10 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Nigel Kirkland <nigel.kirkland@qlogic.com>

Signed-off-by: Nigel Kirkland <nigel.kirkland@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_sup.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c
index b656a05..028e8c8 100644
--- a/drivers/scsi/qla2xxx/qla_sup.c
+++ b/drivers/scsi/qla2xxx/qla_sup.c
@@ -1718,13 +1718,16 @@ qla83xx_beacon_blink(struct scsi_qla_host *vha)
 	uint16_t orig_led_cfg[6];
 	uint32_t led_10_value, led_43_value;
 
-	if (!IS_QLA83XX(ha) && !IS_QLA81XX(ha))
+	if (!IS_QLA83XX(ha) && !IS_QLA81XX(ha) && !IS_QLA27XX(ha))
 		return;
 
 	if (!ha->beacon_blink_led)
 		return;
 
-	if (IS_QLA2031(ha)) {
+	if (IS_QLA27XX(ha)) {
+		qla2x00_write_ram_word(vha, 0x1003, 0x40000230);
+		qla2x00_write_ram_word(vha, 0x1004, 0x40000230);
+	} else if (IS_QLA2031(ha)) {
 		led_select_value = qla83xx_select_led_port(ha);
 
 		qla83xx_wr_reg(vha, led_select_value, 0x40000230);
@@ -1811,7 +1814,7 @@ qla24xx_beacon_on(struct scsi_qla_host *vha)
 			return QLA_FUNCTION_FAILED;
 		}
 
-		if (IS_QLA2031(ha))
+		if (IS_QLA2031(ha) || IS_QLA27XX(ha))
 			goto skip_gpio;
 
 		spin_lock_irqsave(&ha->hardware_lock, flags);
@@ -1848,7 +1851,7 @@ qla24xx_beacon_off(struct scsi_qla_host *vha)
 
 	ha->beacon_blink_led = 0;
 
-	if (IS_QLA2031(ha))
+	if (IS_QLA2031(ha) || IS_QLA27XX(ha))
 		goto set_fw_options;
 
 	if (IS_QLA8031(ha) || IS_QLA81XX(ha))
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (3 preceding siblings ...)
  2015-04-09 18:59 ` [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX Himanshu Madhani
@ 2015-04-09 18:59 ` Himanshu Madhani
  2015-04-10  6:33   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX Himanshu Madhani
                   ` (9 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 18:59 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Sawan Chandak <sawan.chandak@qlogic.com>

Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/Kconfig  |    3 +++
 drivers/scsi/qla2xxx/qla_os.c |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig
index 113e6c9..33f60c9 100644
--- a/drivers/scsi/qla2xxx/Kconfig
+++ b/drivers/scsi/qla2xxx/Kconfig
@@ -18,6 +18,9 @@ config SCSI_QLA_FC
 	2322, 6322        ql2322_fw.bin
 	24xx, 54xx        ql2400_fw.bin
 	25xx              ql2500_fw.bin
+	2031              ql2600_fw.bin
+	8031              ql8300_fw.bin
+	27xx              ql2700_fw.bin
 
 	Upon request, the driver caches the firmware image until
 	the driver is unloaded.
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index cce1cbc..e4851f8 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -5834,3 +5834,6 @@ MODULE_FIRMWARE(FW_FILE_ISP2300);
 MODULE_FIRMWARE(FW_FILE_ISP2322);
 MODULE_FIRMWARE(FW_FILE_ISP24XX);
 MODULE_FIRMWARE(FW_FILE_ISP25XX);
+MODULE_FIRMWARE(FW_FILE_ISP2031);
+MODULE_FIRMWARE(FW_FILE_ISP8031);
+MODULE_FIRMWARE(FW_FILE_ISP27XX);
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (4 preceding siblings ...)
  2015-04-09 18:59 ` [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:33   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 07/14] qla2xxx: Add udev notification to save fw dump " Himanshu Madhani
                   ` (8 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

o Added message indicating firmware dump was sucessfully collected
  for ISP27XX.
o Improve logging to help debug firmware dump process for ISP27XX.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_dbg.c  |    2 +-
 drivers/scsi/qla2xxx/qla_tmpl.c |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index d77fe43..5774c53 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -60,7 +60,7 @@
  * |                              |                    | 0xb13c-0xb140  |
  * |                              |                    | 0xb149		|
  * | MultiQ                       |       0xc00c       |		|
- * | Misc                         |       0xd213       | 0xd011-0xd017	|
+ * | Misc                         |       0xd213       | 0xd016-0xd017	|
  * |                              |                    | 0xd021,0xd024	|
  * |                              |                    | 0xd025,0xd029	|
  * |                              |                    | 0xd02a,0xd02e	|
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
index 7a92f60..1437fce 100644
--- a/drivers/scsi/qla2xxx/qla_tmpl.c
+++ b/drivers/scsi/qla2xxx/qla_tmpl.c
@@ -219,6 +219,8 @@ qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf)
 {
 	if (buf)
 		ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY;
+	ql_dbg(ql_dbg_misc + ql_dbg_verbose, NULL, 0xd011,
+	    "Skipping entry %d\n", ent->hdr.entry_type);
 }
 
 static int
@@ -784,6 +786,12 @@ qla27xx_walk_template(struct scsi_qla_host *vha,
 
 	ql_dbg(ql_dbg_misc, vha, 0xd01b,
 	    "%s: len=%lx\n", __func__, *len);
+
+	if (buf)
+		ql_log(ql_log_warn, vha, 0xd015,
+		    "Firmware dump saved to temp buffer (%ld/%p)\n",
+		    vha->host_no, vha->hw->fw_dump);
+
 }
 
 static void
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 07/14] qla2xxx: Add udev notification to save fw dump for ISP27XX
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (5 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:35   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 08/14] qla2xxx: Add serdes read/write support " Himanshu Madhani
                   ` (7 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_tmpl.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
index 1437fce..7f67fb2 100644
--- a/drivers/scsi/qla2xxx/qla_tmpl.c
+++ b/drivers/scsi/qla2xxx/qla_tmpl.c
@@ -787,11 +787,12 @@ qla27xx_walk_template(struct scsi_qla_host *vha,
 	ql_dbg(ql_dbg_misc, vha, 0xd01b,
 	    "%s: len=%lx\n", __func__, *len);
 
-	if (buf)
+	if (buf) {
 		ql_log(ql_log_warn, vha, 0xd015,
 		    "Firmware dump saved to temp buffer (%ld/%p)\n",
 		    vha->host_no, vha->hw->fw_dump);
-
+		qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP);
+	}
 }
 
 static void
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 08/14] qla2xxx: Add serdes read/write support for ISP27XX
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (6 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 07/14] qla2xxx: Add udev notification to save fw dump " Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:35   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout Himanshu Madhani
                   ` (6 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Andrew Vasquez <andrew.vasquez@qlogic.com>

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_mbx.c |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 72971da..fe7b87d 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -2838,7 +2838,7 @@ qla2x00_write_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t data)
 	mbx_cmd_t mc;
 	mbx_cmd_t *mcp = &mc;
 
-	if (!IS_QLA2031(vha->hw))
+	if (!IS_QLA2031(vha->hw) && !IS_QLA27XX(vha->hw))
 		return QLA_FUNCTION_FAILED;
 
 	ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1182,
@@ -2846,7 +2846,11 @@ qla2x00_write_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t data)
 
 	mcp->mb[0] = MBC_WRITE_SERDES;
 	mcp->mb[1] = addr;
-	mcp->mb[2] = data & 0xff;
+	if (IS_QLA2031(vha->hw))
+		mcp->mb[2] = data & 0xff;
+	else
+		mcp->mb[2] = data;
+
 	mcp->mb[3] = 0;
 	mcp->out_mb = MBX_3|MBX_2|MBX_1|MBX_0;
 	mcp->in_mb = MBX_0;
@@ -2872,7 +2876,7 @@ qla2x00_read_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t *data)
 	mbx_cmd_t mc;
 	mbx_cmd_t *mcp = &mc;
 
-	if (!IS_QLA2031(vha->hw))
+	if (!IS_QLA2031(vha->hw) && !IS_QLA27XX(vha->hw))
 		return QLA_FUNCTION_FAILED;
 
 	ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x1185,
@@ -2887,7 +2891,10 @@ qla2x00_read_serdes_word(scsi_qla_host_t *vha, uint16_t addr, uint16_t *data)
 	mcp->flags = 0;
 	rval = qla2x00_mailbox_command(vha, mcp);
 
-	*data = mcp->mb[1] & 0xff;
+	if (IS_QLA2031(vha->hw))
+		*data = mcp->mb[1] & 0xff;
+	else
+		*data = mcp->mb[1];
 
 	if (rval != QLA_SUCCESS) {
 		ql_dbg(ql_dbg_mbx, vha, 0x1186,
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (7 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 08/14] qla2xxx: Add serdes read/write support " Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:36   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX Himanshu Madhani
                   ` (5 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_dbg.c  |    4 +-
 drivers/scsi/qla2xxx/qla_def.h  |    2 +
 drivers/scsi/qla2xxx/qla_init.c |   68 +++++++++++++++++++++++++++++++++------
 drivers/scsi/qla2xxx/qla_mbx.c  |   16 ++++++++-
 4 files changed, 77 insertions(+), 13 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 5774c53..b06b6b5 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -11,9 +11,9 @@
  * ----------------------------------------------------------------------
  * |             Level            |   Last Value Used  |     Holes	|
  * ----------------------------------------------------------------------
- * | Module Init and Probe        |       0x017d       | 0x0144,0x0146	|
+ * | Module Init and Probe        |       0x017f       | 0x0146         |
  * |                              |                    | 0x015b-0x0160	|
- * |                              |                    | 0x016e-0x0170	|
+ * |                              |                    | 0x016e-0x0170  |
  * | Mailbox commands             |       0x118d       | 0x1115-0x1116	|
  * |                              |                    | 0x111a-0x111b  |
  * | Device Discovery             |       0x2016       | 0x2020-0x2022, |
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index cdaf52e..222d70a 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -3300,6 +3300,8 @@ struct qla_hw_data {
 #define RISC_RDY_AFT_RESET	3
 #define RISC_SRAM_DUMP_CMPL	4
 #define RISC_EXT_MEM_DUMP_CMPL	5
+#define ISP_MBX_RDY		6
+#define ISP_SOFT_RESET_CMPL	7
 	int		fw_dump_reading;
 	int		prev_minidump_failed;
 	dma_addr_t	eft_dma;
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index cb294e5..22ea00eb 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -1121,7 +1121,7 @@ qla81xx_reset_mpi(scsi_qla_host_t *vha)
  *
  * Returns 0 on success.
  */
-static inline void
+static inline int
 qla24xx_reset_risc(scsi_qla_host_t *vha)
 {
 	unsigned long flags = 0;
@@ -1130,6 +1130,7 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
 	uint32_t cnt, d2;
 	uint16_t wd;
 	static int abts_cnt; /* ISP abort retry counts */
+	int rval = QLA_SUCCESS;
 
 	spin_lock_irqsave(&ha->hardware_lock, flags);
 
@@ -1142,26 +1143,57 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
 		udelay(10);
 	}
 
+	if (!(RD_REG_DWORD(&reg->ctrl_status) & CSRX_DMA_ACTIVE))
+		set_bit(DMA_SHUTDOWN_CMPL, &ha->fw_dump_cap_flags);
+
+	ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x017e,
+	    "HCCR: 0x%x, Control Status %x, DMA active status:0x%x\n",
+	    RD_REG_DWORD(&reg->hccr),
+	    RD_REG_DWORD(&reg->ctrl_status),
+	    (RD_REG_DWORD(&reg->ctrl_status) & CSRX_DMA_ACTIVE));
+
 	WRT_REG_DWORD(&reg->ctrl_status,
 	    CSRX_ISP_SOFT_RESET|CSRX_DMA_SHUTDOWN|MWB_4096_BYTES);
 	pci_read_config_word(ha->pdev, PCI_COMMAND, &wd);
 
 	udelay(100);
+
 	/* Wait for firmware to complete NVRAM accesses. */
 	d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0);
-	for (cnt = 10000 ; cnt && d2; cnt--) {
-		udelay(5);
-		d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0);
+	for (cnt = 10000; RD_REG_WORD(&reg->mailbox0) != 0 &&
+	    rval == QLA_SUCCESS; cnt--) {
 		barrier();
+		if (cnt)
+			udelay(5);
+		else
+			rval = QLA_FUNCTION_TIMEOUT;
 	}
 
+	if (rval == QLA_SUCCESS)
+		set_bit(ISP_MBX_RDY, &ha->fw_dump_cap_flags);
+
+	ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x017f,
+	    "HCCR: 0x%x, MailBox0 Status 0x%x\n",
+	    RD_REG_DWORD(&reg->hccr),
+	    RD_REG_DWORD(&reg->mailbox0));
+
 	/* Wait for soft-reset to complete. */
 	d2 = RD_REG_DWORD(&reg->ctrl_status);
-	for (cnt = 6000000 ; cnt && (d2 & CSRX_ISP_SOFT_RESET); cnt--) {
-		udelay(5);
-		d2 = RD_REG_DWORD(&reg->ctrl_status);
+	for (cnt = 0; cnt < 6000000; cnt++) {
 		barrier();
+		if ((RD_REG_DWORD(&reg->ctrl_status) &
+		    CSRX_ISP_SOFT_RESET) == 0)
+			break;
+
+		udelay(5);
 	}
+	if (!(RD_REG_DWORD(&reg->ctrl_status) & CSRX_ISP_SOFT_RESET))
+		set_bit(ISP_SOFT_RESET_CMPL, &ha->fw_dump_cap_flags);
+
+	ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015d,
+	    "HCCR: 0x%x, Soft Reset status: 0x%x\n",
+	    RD_REG_DWORD(&reg->hccr),
+	    RD_REG_DWORD(&reg->ctrl_status));
 
 	/* If required, do an MPI FW reset now */
 	if (test_and_clear_bit(MPI_RESET_NEEDED, &vha->dpc_flags)) {
@@ -1190,16 +1222,32 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
 	RD_REG_DWORD(&reg->hccr);
 
 	d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0);
-	for (cnt = 6000000 ; cnt && d2; cnt--) {
-		udelay(5);
-		d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0);
+	for (cnt = 6000000; RD_REG_WORD(&reg->mailbox0) != 0 &&
+	    rval == QLA_SUCCESS; cnt--) {
 		barrier();
+		if (cnt)
+			udelay(5);
+		else
+			rval = QLA_FUNCTION_TIMEOUT;
 	}
+	if (rval == QLA_SUCCESS)
+		set_bit(RISC_RDY_AFT_RESET, &ha->fw_dump_cap_flags);
+
+	ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015e,
+	    "Host Risc 0x%x, mailbox0 0x%x\n",
+	    RD_REG_DWORD(&reg->hccr),
+	     RD_REG_WORD(&reg->mailbox0));
 
 	spin_unlock_irqrestore(&ha->hardware_lock, flags);
 
+	ql_dbg(ql_dbg_init + ql_dbg_verbose, vha, 0x015f,
+	    "Driver in %s mode\n",
+	    IS_NOPOLLING_TYPE(ha) ? "Interrupt" : "Polling");
+
 	if (IS_NOPOLLING_TYPE(ha))
 		ha->isp_ops->enable_intrs(ha);
+
+	return rval;
 }
 
 static void
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index fe7b87d..02b1c1c 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -33,7 +33,7 @@
 static int
 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
 {
-	int		rval;
+	int		rval, i;
 	unsigned long    flags = 0;
 	device_reg_t *reg;
 	uint8_t		abort_active;
@@ -43,10 +43,12 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
 	uint16_t __iomem *optr;
 	uint32_t	cnt;
 	uint32_t	mboxes;
+	uint16_t __iomem *mbx_reg;
 	unsigned long	wait_time;
 	struct qla_hw_data *ha = vha->hw;
 	scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev);
 
+
 	ql_dbg(ql_dbg_mbx, vha, 0x1000, "Entered %s.\n", __func__);
 
 	if (ha->pdev->error_state > pci_channel_io_frozen) {
@@ -376,6 +378,18 @@ mbx_done:
 		ql_dbg(ql_dbg_disc, base_vha, 0x1020,
 		    "**** Failed mbx[0]=%x, mb[1]=%x, mb[2]=%x, mb[3]=%x, cmd=%x ****.\n",
 		    mcp->mb[0], mcp->mb[1], mcp->mb[2], mcp->mb[3], command);
+
+		ql_dbg(ql_dbg_disc, vha, 0x1115,
+		    "host status: 0x%x, flags:0x%lx, intr ctrl reg:0x%x, intr status:0x%x\n",
+		    RD_REG_DWORD(&reg->isp24.host_status),
+		    ha->fw_dump_cap_flags,
+		    RD_REG_DWORD(&reg->isp24.ictrl),
+		    RD_REG_DWORD(&reg->isp24.istatus));
+
+		mbx_reg = &reg->isp24.mailbox0;
+		for (i = 0; i < 6; i++)
+			ql_dbg(ql_dbg_disc + ql_dbg_verbose, vha, 0x1116,
+			    "mbox[%d] 0x%04x\n", i, RD_REG_WORD(mbx_reg++));
 	} else {
 		ql_dbg(ql_dbg_mbx, base_vha, 0x1021, "Done %s.\n", __func__);
 	}
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (8 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:37   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection " Himanshu Madhani
                   ` (4 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_def.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 222d70a..9a8aa11 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -3132,7 +3132,8 @@ struct qla_hw_data {
 				IS_QLA25XX(ha) || IS_QLA81XX(ha) || \
 				IS_QLA82XX(ha) || IS_QLA83XX(ha) || \
 				IS_QLA8044(ha) || IS_QLA27XX(ha))
-#define IS_MSIX_NACK_CAPABLE(ha) (IS_QLA81XX(ha) || IS_QLA83XX(ha))
+#define IS_MSIX_NACK_CAPABLE(ha) (IS_QLA81XX(ha) || IS_QLA83XX(ha) || \
+				IS_QLA27XX(ha))
 #define IS_NOPOLLING_TYPE(ha)	(IS_QLA81XX(ha) && (ha)->flags.msix_enabled)
 #define IS_FAC_REQUIRED(ha)	(IS_QLA81XX(ha) || IS_QLA83XX(ha) || \
 				IS_QLA27XX(ha))
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection for ISP27XX.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (9 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:37   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled Himanshu Madhani
                   ` (3 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

For ISP27XX, driver will capture new firmware dump even if there is
one already collected. Prevent this from happening by checking
fw_dumped flag.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_dbg.c  |    2 +-
 drivers/scsi/qla2xxx/qla_tmpl.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index b06b6b5..0e6ee3c 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -60,7 +60,7 @@
  * |                              |                    | 0xb13c-0xb140  |
  * |                              |                    | 0xb149		|
  * | MultiQ                       |       0xc00c       |		|
- * | Misc                         |       0xd213       | 0xd016-0xd017	|
+ * | Misc                         |       0xd300       | 0xd016-0xd017	|
  * |                              |                    | 0xd021,0xd024	|
  * |                              |                    | 0xd025,0xd029	|
  * |                              |                    | 0xd02a,0xd02e	|
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
index 7f67fb2..58fc115 100644
--- a/drivers/scsi/qla2xxx/qla_tmpl.c
+++ b/drivers/scsi/qla2xxx/qla_tmpl.c
@@ -947,6 +947,10 @@ qla27xx_fwdump(scsi_qla_host_t *vha, int hardware_locked)
 		ql_log(ql_log_warn, vha, 0xd01e, "fwdump buffer missing.\n");
 	else if (!vha->hw->fw_dump_template)
 		ql_log(ql_log_warn, vha, 0xd01f, "fwdump template missing.\n");
+	else if (vha->hw->fw_dumped)
+		ql_log(ql_log_warn, vha, 0xd300,
+		    "Firmware has been previously dumped (%p),"
+		    " -- ignoring request\n", vha->hw->fw_dump);
 	else
 		qla27xx_execute_fwdt_template(vha);
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (10 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection " Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:38   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port Himanshu Madhani
                   ` (2 subsequent siblings)
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Sawan Chandak <sawan.chandak@qlogic.com>

On some vendor switches, when switch port is toggled (down /up),
then in some condition driver tries to configure virtual port,
before FW is actually in ready state to process any commands on wire.
At this time, configuring virtual port can fail. Add fix in driver
to make driver wait, for FW to be ready state before

Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_def.h |    1 +
 drivers/scsi/qla2xxx/qla_isr.c |    2 ++
 drivers/scsi/qla2xxx/qla_mid.c |   22 ++++++++++++++--------
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 9a8aa11..e86201d 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -3590,6 +3590,7 @@ typedef struct scsi_qla_host {
 #define VP_BIND_NEEDED		2
 #define VP_DELETE_NEEDED	3
 #define VP_SCR_NEEDED		4	/* State Change Request registration */
+#define VP_CONFIG_OK		5	/* Flag to cfg VP, if FW is ready */
 	atomic_t 		vp_state;
 #define VP_OFFLINE		0
 #define VP_ACTIVE		1
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index a04a1b1..72dfbc1 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -763,6 +763,7 @@ skip_rio:
 				memcpy(vha->port_name, wwpn, WWN_SIZE);
 			}
 
+			clear_bit(VP_CONFIG_OK, &vha->vp_flags);
 			vha->device_flags |= DFLG_NO_CABLE;
 			qla2x00_mark_all_devices_lost(vha, 1);
 		}
@@ -947,6 +948,7 @@ skip_rio:
 
 		set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags);
 		set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
+		set_bit(VP_CONFIG_OK, &vha->vp_flags);
 
 		qlt_async_event(mb[0], vha, mb);
 		break;
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c
index 5c2e031..8f458ef 100644
--- a/drivers/scsi/qla2xxx/qla_mid.c
+++ b/drivers/scsi/qla2xxx/qla_mid.c
@@ -306,19 +306,25 @@ qla2x00_vp_abort_isp(scsi_qla_host_t *vha)
 static int
 qla2x00_do_dpc_vp(scsi_qla_host_t *vha)
 {
+	struct qla_hw_data *ha = vha->hw;
+	scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev);
+
 	ql_dbg(ql_dbg_dpc + ql_dbg_verbose, vha, 0x4012,
 	    "Entering %s vp_flags: 0x%lx.\n", __func__, vha->vp_flags);
 
 	qla2x00_do_work(vha);
 
-	if (test_and_clear_bit(VP_IDX_ACQUIRED, &vha->vp_flags)) {
-		/* VP acquired. complete port configuration */
-		ql_dbg(ql_dbg_dpc, vha, 0x4014,
-		    "Configure VP scheduled.\n");
-		qla24xx_configure_vp(vha);
-		ql_dbg(ql_dbg_dpc, vha, 0x4015,
-		    "Configure VP end.\n");
-		return 0;
+	/* Check if Fw is ready to configure VP first */
+	if (test_bit(VP_CONFIG_OK, &base_vha->vp_flags)) {
+		if (test_and_clear_bit(VP_IDX_ACQUIRED, &vha->vp_flags)) {
+			/* VP acquired. complete port configuration */
+			ql_dbg(ql_dbg_dpc, vha, 0x4014,
+			    "Configure VP scheduled.\n");
+			qla24xx_configure_vp(vha);
+			ql_dbg(ql_dbg_dpc, vha, 0x4015,
+			    "Configure VP end.\n");
+			return 0;
+		}
 	}
 
 	if (test_bit(FCPORT_UPDATE_NEEDED, &vha->dpc_flags)) {
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (11 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:39   ` Hannes Reinecke
  2015-04-09 19:00 ` [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k Himanshu Madhani
  2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

From: Sawan Chandak <sawan.chandak@qlogic.com>

For FA-WWPN is enabled port, if NPIV created on that port and,
if port link is brought down, then WWPN was restored from flash for both
physical and NPIV port. This will result in NPIV port and physical port
sharing same WWPN. Any application refreshing ports information  will
not be able to scan NPIV port because of this behavior. So while restoring WWPN,
only restore physical port WWPN.

Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_isr.c |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 72dfbc1..6dc14cd 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -756,14 +756,23 @@ skip_rio:
 			/*
 			 * In case of loop down, restore WWPN from
 			 * NVRAM in case of FA-WWPN capable ISP
+			 * Restore for Physical Port only
 			 */
-			if (ha->flags.fawwpn_enabled) {
-				void *wwpn = ha->init_cb->port_name;
+			if (!vha->vp_idx) {
+				if (ha->flags.fawwpn_enabled) {
+					void *wwpn = ha->init_cb->port_name;
+					memcpy(vha->port_name, wwpn, WWN_SIZE);
+					fc_host_port_name(vha->host) =
+					    wwn_to_u64(vha->port_name);
+					ql_dbg(ql_dbg_init + ql_dbg_verbose,
+					    vha, 0x0144, "LOOP DOWN detected,"
+					    "restore WWPN %016llx\n",
+					    wwn_to_u64(vha->port_name));
+				}
 
-				memcpy(vha->port_name, wwpn, WWN_SIZE);
+				clear_bit(VP_CONFIG_OK, &vha->vp_flags);
 			}
 
-			clear_bit(VP_CONFIG_OK, &vha->vp_flags);
 			vha->device_flags |= DFLG_NO_CABLE;
 			qla2x00_mark_all_devices_lost(vha, 1);
 		}
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (12 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port Himanshu Madhani
@ 2015-04-09 19:00 ` Himanshu Madhani
  2015-04-10  6:39   ` Hannes Reinecke
  2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
  14 siblings, 1 reply; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-09 19:00 UTC (permalink / raw)
  To: jbottomley
  Cc: hch, giridhar.malavali, himanshu.madhani, andrew.vasquez, linux-scsi

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_version.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h
index d88b862..2ed9ab9 100644
--- a/drivers/scsi/qla2xxx/qla_version.h
+++ b/drivers/scsi/qla2xxx/qla_version.h
@@ -7,7 +7,7 @@
 /*
  * Driver version
  */
-#define QLA2XXX_VERSION      "8.07.00.16-k"
+#define QLA2XXX_VERSION      "8.07.00.18-k"
 
 #define QLA_DRIVER_MAJOR_VER	8
 #define QLA_DRIVER_MINOR_VER	7
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 34+ messages in thread

* Re: [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch.
  2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
                   ` (13 preceding siblings ...)
  2015-04-09 19:00 ` [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k Himanshu Madhani
@ 2015-04-10  5:53 ` Bart Van Assche
  2015-04-10 15:46   ` James Bottomley
                     ` (2 more replies)
  14 siblings, 3 replies; 34+ messages in thread
From: Bart Van Assche @ 2015-04-10  5:53 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, Saurav Kashyap, linux-scsi

On 04/09/15 20:59, Himanshu Madhani wrote:
> Hi James,
>
> Please apply the following patches to the scsi tree at your earliest
> convenience for inclusion in the next mainline merge window.
>
> Thanks,
> Himanshu

Hello Himanshu,

Since you are posting a new patch series for the qla2xxx driver, does 
that mean that the qla2xxx patches I posted three months ago have passed 
the QLogic 12 week regression cycle ? See also 
http://thread.gmane.org/gmane.linux.scsi/98759/focus=99429.

Thanks,

Bart.

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
  2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
@ 2015-04-10  5:59   ` Bart Van Assche
  2015-04-10  6:31   ` Hannes Reinecke
  1 sibling, 0 replies; 34+ messages in thread
From: Bart Van Assche @ 2015-04-10  5:59 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/15 20:59, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
>   drivers/scsi/qla2xxx/qla_tmpl.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
> index a8c0c73..7a92f60 100644
> --- a/drivers/scsi/qla2xxx/qla_tmpl.c
> +++ b/drivers/scsi/qla2xxx/qla_tmpl.c
> @@ -190,7 +190,7 @@ static inline void
>   qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
>   	uint offset, uint32_t data, void *buf)
>   {
> -	__iomem void *window = reg + offset;
> +	__iomem void *window = (void *)reg + offset;
>
>   	if (buf) {
>   		WRT_REG_DWORD(window, data);
>

Hello Himanshu,

The above patch introduces a new sparse warning since an __iomem 
annotation is missing from the cast. Had you noticed that I had already 
posted a fix for this crash in January that does not introduce a new 
sparse warning ? See also http://thread.gmane.org/gmane.linux.scsi/98426.

Bart.

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 01/14] qla2xxx: Fix warnings reported by static checker.
  2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
@ 2015-04-10  6:30   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:30 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 08:59 PM, Himanshu Madhani wrote:
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
  2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
  2015-04-10  5:59   ` Bart Van Assche
@ 2015-04-10  6:31   ` Hannes Reinecke
  1 sibling, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:31 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 08:59 PM, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P.
  2015-04-09 18:59 ` [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P Himanshu Madhani
@ 2015-04-10  6:31   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:31 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 08:59 PM, Himanshu Madhani wrote:
> From: Chad Dupuis <chad.dupuis@qlogic.com>
> 
> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX.
  2015-04-09 18:59 ` [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX Himanshu Madhani
@ 2015-04-10  6:32   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:32 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 08:59 PM, Himanshu Madhani wrote:
> From: Nigel Kirkland <nigel.kirkland@qlogic.com>
> 
> Signed-off-by: Nigel Kirkland <nigel.kirkland@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX.
  2015-04-09 18:59 ` [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX Himanshu Madhani
@ 2015-04-10  6:33   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:33 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 08:59 PM, Himanshu Madhani wrote:
> From: Sawan Chandak <sawan.chandak@qlogic.com>
> 
> Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Please send the firmware for inclusion into linux-firmware.

Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX.
  2015-04-09 19:00 ` [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX Himanshu Madhani
@ 2015-04-10  6:33   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:33 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> o Added message indicating firmware dump was sucessfully collected
>   for ISP27XX.
> o Improve logging to help debug firmware dump process for ISP27XX.
> 
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 07/14] qla2xxx: Add udev notification to save fw dump for ISP27XX
  2015-04-09 19:00 ` [PATCH 07/14] qla2xxx: Add udev notification to save fw dump " Himanshu Madhani
@ 2015-04-10  6:35   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:35 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
>  drivers/scsi/qla2xxx/qla_tmpl.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
> index 1437fce..7f67fb2 100644
> --- a/drivers/scsi/qla2xxx/qla_tmpl.c
> +++ b/drivers/scsi/qla2xxx/qla_tmpl.c
> @@ -787,11 +787,12 @@ qla27xx_walk_template(struct scsi_qla_host *vha,
>  	ql_dbg(ql_dbg_misc, vha, 0xd01b,
>  	    "%s: len=%lx\n", __func__, *len);
>  
> -	if (buf)
> +	if (buf) {
>  		ql_log(ql_log_warn, vha, 0xd015,
>  		    "Firmware dump saved to temp buffer (%ld/%p)\n",
>  		    vha->host_no, vha->hw->fw_dump);
> -
> +		qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP);
> +	}
>  }
>  
>  static void
> 
Hmm? Isn't that the same as in the previous patch?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 08/14] qla2xxx: Add serdes read/write support for ISP27XX
  2015-04-09 19:00 ` [PATCH 08/14] qla2xxx: Add serdes read/write support " Himanshu Madhani
@ 2015-04-10  6:35   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:35 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> From: Andrew Vasquez <andrew.vasquez@qlogic.com>
> 
> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
> Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout.
  2015-04-09 19:00 ` [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout Himanshu Madhani
@ 2015-04-10  6:36   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:36 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX.
  2015-04-09 19:00 ` [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX Himanshu Madhani
@ 2015-04-10  6:37   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:37 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection for ISP27XX.
  2015-04-09 19:00 ` [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection " Himanshu Madhani
@ 2015-04-10  6:37   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:37 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> For ISP27XX, driver will capture new firmware dump even if there is
> one already collected. Prevent this from happening by checking
> fw_dumped flag.
> 
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled.
  2015-04-09 19:00 ` [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled Himanshu Madhani
@ 2015-04-10  6:38   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:38 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> From: Sawan Chandak <sawan.chandak@qlogic.com>
> 
> On some vendor switches, when switch port is toggled (down /up),
> then in some condition driver tries to configure virtual port,
> before FW is actually in ready state to process any commands on wire.
> At this time, configuring virtual port can fail. Add fix in driver
> to make driver wait, for FW to be ready state before
> 
> Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port.
  2015-04-09 19:00 ` [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port Himanshu Madhani
@ 2015-04-10  6:39   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:39 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> From: Sawan Chandak <sawan.chandak@qlogic.com>
> 
> For FA-WWPN is enabled port, if NPIV created on that port and,
> if port link is brought down, then WWPN was restored from flash for both
> physical and NPIV port. This will result in NPIV port and physical port
> sharing same WWPN. Any application refreshing ports information  will
> not be able to scan NPIV port because of this behavior. So while restoring WWPN,
> only restore physical port WWPN.
> 
> Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k
  2015-04-09 19:00 ` [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k Himanshu Madhani
@ 2015-04-10  6:39   ` Hannes Reinecke
  0 siblings, 0 replies; 34+ messages in thread
From: Hannes Reinecke @ 2015-04-10  6:39 UTC (permalink / raw)
  To: Himanshu Madhani, jbottomley
  Cc: hch, giridhar.malavali, andrew.vasquez, linux-scsi

On 04/09/2015 09:00 PM, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch.
  2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
@ 2015-04-10 15:46   ` James Bottomley
  2015-04-10 18:46   ` Himanshu Madhani
  2015-06-02 19:52   ` Himanshu Madhani
  2 siblings, 0 replies; 34+ messages in thread
From: James Bottomley @ 2015-04-10 15:46 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Himanshu Madhani, hch, giridhar.malavali, andrew.vasquez,
	Saurav Kashyap, linux-scsi

On Fri, 2015-04-10 at 07:53 +0200, Bart Van Assche wrote:
> On 04/09/15 20:59, Himanshu Madhani wrote:
> > Hi James,
> >
> > Please apply the following patches to the scsi tree at your earliest
> > convenience for inclusion in the next mainline merge window.
> >
> > Thanks,
> > Himanshu
> 
> Hello Himanshu,
> 
> Since you are posting a new patch series for the qla2xxx driver, does 
> that mean that the qla2xxx patches I posted three months ago have passed 
> the QLogic 12 week regression cycle ? See also 
> http://thread.gmane.org/gmane.linux.scsi/98759/focus=99429.

I expect these patches to be included or further commented on by your
next submission.

Thanks,

James




^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch.
  2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
  2015-04-10 15:46   ` James Bottomley
@ 2015-04-10 18:46   ` Himanshu Madhani
  2015-06-02 19:52   ` Himanshu Madhani
  2 siblings, 0 replies; 34+ messages in thread
From: Himanshu Madhani @ 2015-04-10 18:46 UTC (permalink / raw)
  To: Bart Van Assche, jbottomley
  Cc: hch, Giridhar Malavali, Andrew Vasquez, Saurav Kashyap, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]






On 4/9/15, 10:53 PM, "Bart Van Assche" <bart.vanassche@sandisk.com> wrote:

>On 04/09/15 20:59, Himanshu Madhani wrote:
>> Hi James,
>>
>> Please apply the following patches to the scsi tree at your earliest
>> convenience for inclusion in the next mainline merge window.
>>
>> Thanks,
>> Himanshu
>
>Hello Himanshu,
>
>Since you are posting a new patch series for the qla2xxx driver, does
>that mean that the qla2xxx patches I posted three months ago have passed
>the QLogic 12 week regression cycle ? See also
>http://thread.gmane.org/gmane.linux.scsi/98759/focus=99429.
>
>Thanks,
>
>Bart.

Hi Bart,

Regression Cycle is still continuing with the patches. We will update you
shortly. 

Thanks,

Himanshu
>


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 4323 bytes --]

^ permalink raw reply	[flat|nested] 34+ messages in thread

* Re: [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch.
  2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
  2015-04-10 15:46   ` James Bottomley
  2015-04-10 18:46   ` Himanshu Madhani
@ 2015-06-02 19:52   ` Himanshu Madhani
  2 siblings, 0 replies; 34+ messages in thread
From: Himanshu Madhani @ 2015-06-02 19:52 UTC (permalink / raw)
  To: Bart Van Assche, jbottomley
  Cc: hch, Giridhar Malavali, Andrew Vasquez, Saurav Kashyap, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]


On 4/9/15, 10:53 PM, "Bart Van Assche" <bart.vanassche@sandisk.com> wrote:

>On 04/09/15 20:59, Himanshu Madhani wrote:
>> Hi James,
>>
>> Please apply the following patches to the scsi tree at your earliest
>> convenience for inclusion in the next mainline merge window.
>>
>> Thanks,
>> Himanshu
>
>Hello Himanshu,
>
>Since you are posting a new patch series for the qla2xxx driver, does
>that mean that the qla2xxx patches I posted three months ago have passed
>the QLogic 12 week regression cycle ? See also
>http://thread.gmane.org/gmane.linux.scsi/98759/focus=99429.
>
>Thanks,
>
>Bart.

Hello Bart, 

We have finished validation of the patch series.

Acked-By: Himanshu Madhani <himanshu.madhani@qlogic.com>

Thanks,
Himanshu
>


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 4259 bytes --]

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2015-06-02 19:52 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
2015-04-10  6:30   ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
2015-04-10  5:59   ` Bart Van Assche
2015-04-10  6:31   ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P Himanshu Madhani
2015-04-10  6:31   ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX Himanshu Madhani
2015-04-10  6:32   ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX Himanshu Madhani
2015-04-10  6:33   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX Himanshu Madhani
2015-04-10  6:33   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 07/14] qla2xxx: Add udev notification to save fw dump " Himanshu Madhani
2015-04-10  6:35   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 08/14] qla2xxx: Add serdes read/write support " Himanshu Madhani
2015-04-10  6:35   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout Himanshu Madhani
2015-04-10  6:36   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX Himanshu Madhani
2015-04-10  6:37   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection " Himanshu Madhani
2015-04-10  6:37   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled Himanshu Madhani
2015-04-10  6:38   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port Himanshu Madhani
2015-04-10  6:39   ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k Himanshu Madhani
2015-04-10  6:39   ` Hannes Reinecke
2015-04-10  5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
2015-04-10 15:46   ` James Bottomley
2015-04-10 18:46   ` Himanshu Madhani
2015-06-02 19:52   ` Himanshu Madhani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.