* [PATCH 0/2] qla2xxx: Miscellaneous fixes
@ 2014-08-08 11:38 Chad Dupuis
2014-08-08 11:38 ` [PATCH 1/2] qla2xxx: Move mailbox failure messages to a default debug level Chad Dupuis
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chad Dupuis @ 2014-08-08 11:38 UTC (permalink / raw)
To: linux-scsi, hch; +Cc: giridhar.malavali
Hi James, Christoph,
Pleas apply the following two patches at your earliest convenience.
Thanks,
Chad
Chad Dupuis (2):
qla2xxx: Move mailbox failure messages to a default debug level.
qla2xxx: Remove restriction on starting remote device discovery on
port update.
drivers/scsi/qla2xxx/qla_dbg.c | 2 +-
drivers/scsi/qla2xxx/qla_isr.c | 10 ++++------
drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
3 files changed, 6 insertions(+), 8 deletions(-)
--
1.8.5.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] qla2xxx: Move mailbox failure messages to a default debug level.
2014-08-08 11:38 [PATCH 0/2] qla2xxx: Miscellaneous fixes Chad Dupuis
@ 2014-08-08 11:38 ` Chad Dupuis
2014-08-08 11:38 ` [PATCH 2/2] qla2xxx: Remove restriction on starting remote device discovery on port update Chad Dupuis
2014-08-24 15:30 ` [PATCH 0/2] qla2xxx: Miscellaneous fixes Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Chad Dupuis @ 2014-08-08 11:38 UTC (permalink / raw)
To: linux-scsi, hch; +Cc: giridhar.malavali
Move the mailbox failure messages to a default debugging level so that
benign failures won't flood the system logs but will still show up if
default debug messaging is enabled (ql2xextended_error_logging=1).
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
---
drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index d9aafc0..a7a373f 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -373,7 +373,7 @@ premature_exit:
mbx_done:
if (rval) {
- ql_log(ql_log_warn, base_vha, 0x1020,
+ 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);
} else {
--
1.8.5.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] qla2xxx: Remove restriction on starting remote device discovery on port update.
2014-08-08 11:38 [PATCH 0/2] qla2xxx: Miscellaneous fixes Chad Dupuis
2014-08-08 11:38 ` [PATCH 1/2] qla2xxx: Move mailbox failure messages to a default debug level Chad Dupuis
@ 2014-08-08 11:38 ` Chad Dupuis
2014-08-24 15:30 ` [PATCH 0/2] qla2xxx: Miscellaneous fixes Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Chad Dupuis @ 2014-08-08 11:38 UTC (permalink / raw)
To: linux-scsi, hch; +Cc: giridhar.malavali
Limiting which port update events will allow the driver to kick off a
name server scan has been problematic in some corner cases so remove the
restriction and restore the previous semantic. Also move the link
up/down informational messages to the LOOP_UP and LOOP_DOWN events.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
---
drivers/scsi/qla2xxx/qla_dbg.c | 2 +-
drivers/scsi/qla2xxx/qla_isr.c | 10 ++++------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index c72ee97b..41117b3 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -34,7 +34,7 @@
* | | | 0x5047,0x5052 |
* | | | 0x5084,0x5075 |
* | | | 0x503d,0x5044 |
- * | | | 0x507b |
+ * | | | 0x507b,0x505f |
* | Timer Routines | 0x6012 | |
* | User Space Interactions | 0x70e2 | 0x7018,0x702e |
* | | | 0x7020,0x7024 |
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 550a4a3..d89e3c4 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -730,7 +730,7 @@ skip_rio:
else
ha->link_data_rate = mb[1];
- ql_dbg(ql_dbg_async, vha, 0x500a,
+ ql_log(ql_log_info, vha, 0x500a,
"LOOP UP detected (%s Gbps).\n",
qla2x00_get_link_speed_str(ha, ha->link_data_rate));
@@ -743,7 +743,7 @@ skip_rio:
? RD_REG_WORD(®24->mailbox4) : 0;
mbx = (IS_P3P_TYPE(ha)) ? RD_REG_WORD(®82->mailbox_out[4])
: mbx;
- ql_dbg(ql_dbg_async, vha, 0x500b,
+ ql_log(ql_log_info, vha, 0x500b,
"LOOP DOWN detected (%x %x %x %x).\n",
mb[1], mb[2], mb[3], mbx);
@@ -908,7 +908,8 @@ skip_rio:
* it. Otherwise ignore it and Wait for RSCN to come in.
*/
atomic_set(&vha->loop_down_timer, 0);
- if (mb[1] != 0xffff || (mb[2] != 0x6 && mb[2] != 0x4)) {
+ if (atomic_read(&vha->loop_state) != LOOP_DOWN &&
+ atomic_read(&vha->loop_state) != LOOP_DEAD) {
ql_dbg(ql_dbg_async, vha, 0x5011,
"Asynchronous PORT UPDATE ignored %04x/%04x/%04x.\n",
mb[1], mb[2], mb[3]);
@@ -920,9 +921,6 @@ skip_rio:
ql_dbg(ql_dbg_async, vha, 0x5012,
"Port database changed %04x %04x %04x.\n",
mb[1], mb[2], mb[3]);
- ql_log(ql_log_warn, vha, 0x505f,
- "Link is operational (%s Gbps).\n",
- qla2x00_get_link_speed_str(ha, ha->link_data_rate));
/*
* Mark all devices as missing so we will login again.
--
1.8.5.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] qla2xxx: Miscellaneous fixes
2014-08-08 11:38 [PATCH 0/2] qla2xxx: Miscellaneous fixes Chad Dupuis
2014-08-08 11:38 ` [PATCH 1/2] qla2xxx: Move mailbox failure messages to a default debug level Chad Dupuis
2014-08-08 11:38 ` [PATCH 2/2] qla2xxx: Remove restriction on starting remote device discovery on port update Chad Dupuis
@ 2014-08-24 15:30 ` Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2014-08-24 15:30 UTC (permalink / raw)
To: Chad Dupuis; +Cc: linux-scsi, hch, giridhar.malavali
On Fri, Aug 08, 2014 at 07:38:07AM -0400, Chad Dupuis wrote:
> Hi James, Christoph,
>
> Pleas apply the following two patches at your earliest convenience.
Thanks, I've applied them to the drivers-for-3.18 branch (actually
already a few days ago, so they are in Linux-next already)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-24 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-08 11:38 [PATCH 0/2] qla2xxx: Miscellaneous fixes Chad Dupuis
2014-08-08 11:38 ` [PATCH 1/2] qla2xxx: Move mailbox failure messages to a default debug level Chad Dupuis
2014-08-08 11:38 ` [PATCH 2/2] qla2xxx: Remove restriction on starting remote device discovery on port update Chad Dupuis
2014-08-24 15:30 ` [PATCH 0/2] qla2xxx: Miscellaneous fixes Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).