netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement
@ 2013-03-22 15:57 Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 1/5] qlcnic: Fix configure mailbox interrupt command for 83xx adapter Shahed Shaikh
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh

From: Shahed Shaikh <shahed.shaikh@qlogic.com>

Please apply to net-next.

Thanks,
Shahed

Himanshu Madhani (1):
  qlcnic: Log warning message for 83xx adapter in MSI mode.

Manish chopra (1):
  qlcnic: Fix configure mailbox interrupt command for 83xx adapter

Shahed Shaikh (3):
  qlcnic: change mdelay to msleep
  qlcnic: Clear link status when interface is down
  qlcnic: Bump up the version to 5.1.38

 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h        |    4 ++--
 .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c    |    3 +--
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c    |    2 +-
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c   |    7 +++++++
 4 files changed, 11 insertions(+), 5 deletions(-)

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

* [PATCH net-next 1/5] qlcnic: Fix configure mailbox interrupt command for 83xx adapter
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
@ 2013-03-22 15:57 ` Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 2/5] qlcnic: Log warning message for 83xx adapter in MSI mode Shahed Shaikh
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Manish chopra

From: Manish chopra <manish.chopra@qlogic.com>

o Due to improper data type of variable "type", interrupt resources were
  not getting deleted in hardware which was causing resource exhaustion
  in hardware. Hence mailbox command fails after some iterations of context change.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
 .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c    |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
index 56c3676..8de8ca5 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
@@ -2111,9 +2111,8 @@ int qlcnic_83xx_get_pci_info(struct qlcnic_adapter *adapter,
 int qlcnic_83xx_config_intrpt(struct qlcnic_adapter *adapter, bool op_type)
 {
 	int i, index, err;
-	bool type;
 	u8 max_ints;
-	u32 val, temp;
+	u32 val, temp, type;
 	struct qlcnic_cmd_args cmd;
 
 	max_ints = adapter->ahw->num_msix - 1;
-- 
1.5.6

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

* [PATCH net-next 2/5] qlcnic: Log warning message for 83xx adapter in MSI mode.
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 1/5] qlcnic: Fix configure mailbox interrupt command for 83xx adapter Shahed Shaikh
@ 2013-03-22 15:57 ` Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 3/5] qlcnic: change mdelay to msleep Shahed Shaikh
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Himanshu Madhani

From: Himanshu Madhani <himanshu.madhani@qlogic.com>

o 83xx adapter does not support MSI interrupts, display
  warning whenever module parameter is used to load driver
  in MSI mode.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index c6f9d5e..d980723 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -1923,6 +1923,12 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 			module_name(THIS_MODULE),
 			board_name, adapter->ahw->revision_id);
 	}
+
+	if (qlcnic_83xx_check(adapter) && !qlcnic_use_msi_x &&
+	    !!qlcnic_use_msi)
+		dev_warn(&pdev->dev,
+			 "83xx adapter do not support MSI interrupts\n");
+
 	err = qlcnic_setup_intr(adapter, 0);
 	if (err) {
 		dev_err(&pdev->dev, "Failed to setup interrupt\n");
-- 
1.5.6

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

* [PATCH net-next 3/5] qlcnic: change mdelay to msleep
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 1/5] qlcnic: Fix configure mailbox interrupt command for 83xx adapter Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 2/5] qlcnic: Log warning message for 83xx adapter in MSI mode Shahed Shaikh
@ 2013-03-22 15:57 ` Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 4/5] qlcnic: Clear link status when interface is down Shahed Shaikh
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh

From: Shahed Shaikh <shahed.shaikh@qlogic.com>

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
index a69097c..6428a14 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
@@ -655,7 +655,7 @@ void qlcnic_fw_destroy_ctx(struct qlcnic_adapter *adapter)
 				qlcnic_83xx_config_intrpt(adapter, 0);
 		}
 		/* Allow dma queues to drain after context reset */
-		mdelay(20);
+		msleep(20);
 	}
 }
 
-- 
1.5.6

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

* [PATCH net-next 4/5] qlcnic: Clear link status when interface is down
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
                   ` (2 preceding siblings ...)
  2013-03-22 15:57 ` [PATCH net-next 3/5] qlcnic: change mdelay to msleep Shahed Shaikh
@ 2013-03-22 15:57 ` Shahed Shaikh
  2013-03-22 15:57 ` [PATCH net-next 5/5] qlcnic: Bump up the version to 5.1.38 Shahed Shaikh
  2013-03-22 16:47 ` [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement David Miller
  5 siblings, 0 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh

From: Shahed Shaikh <shahed.shaikh@qlogic.com>

o When interface is down, mailbox command to get context statistics
  fails. So restrict driver from issuing get statistics command when
  interface is down.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index d980723..d8b9e3b 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -1412,6 +1412,7 @@ void __qlcnic_down(struct qlcnic_adapter *adapter, struct net_device *netdev)
 	smp_mb();
 	spin_lock(&adapter->tx_clean_lock);
 	netif_carrier_off(netdev);
+	adapter->ahw->linkup = 0;
 	netif_tx_disable(netdev);
 
 	qlcnic_free_mac_list(adapter);
-- 
1.5.6

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

* [PATCH net-next 5/5] qlcnic: Bump up the version to 5.1.38
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
                   ` (3 preceding siblings ...)
  2013-03-22 15:57 ` [PATCH net-next 4/5] qlcnic: Clear link status when interface is down Shahed Shaikh
@ 2013-03-22 15:57 ` Shahed Shaikh
  2013-03-22 16:47 ` [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement David Miller
  5 siblings, 0 replies; 7+ messages in thread
From: Shahed Shaikh @ 2013-03-22 15:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh

From: Shahed Shaikh <shahed.shaikh@qlogic.com>

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
index 1577799..72bbba0 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
@@ -38,8 +38,8 @@
 
 #define _QLCNIC_LINUX_MAJOR 5
 #define _QLCNIC_LINUX_MINOR 1
-#define _QLCNIC_LINUX_SUBVERSION 37
-#define QLCNIC_LINUX_VERSIONID  "5.1.37"
+#define _QLCNIC_LINUX_SUBVERSION 38
+#define QLCNIC_LINUX_VERSIONID  "5.1.38"
 #define QLCNIC_DRV_IDC_VER  0x01
 #define QLCNIC_DRIVER_VERSION  ((_QLCNIC_LINUX_MAJOR << 16) |\
 		 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION))
-- 
1.5.6

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

* Re: [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement
  2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
                   ` (4 preceding siblings ...)
  2013-03-22 15:57 ` [PATCH net-next 5/5] qlcnic: Bump up the version to 5.1.38 Shahed Shaikh
@ 2013-03-22 16:47 ` David Miller
  5 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2013-03-22 16:47 UTC (permalink / raw)
  To: shahed.shaikh; +Cc: netdev, Dept_NX_Linux_NIC_Driver

From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Date: Fri, 22 Mar 2013 11:57:52 -0400

> Please apply to net-next.

Series applied, thanks.

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

end of thread, other threads:[~2013-03-22 16:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 15:57 [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement Shahed Shaikh
2013-03-22 15:57 ` [PATCH net-next 1/5] qlcnic: Fix configure mailbox interrupt command for 83xx adapter Shahed Shaikh
2013-03-22 15:57 ` [PATCH net-next 2/5] qlcnic: Log warning message for 83xx adapter in MSI mode Shahed Shaikh
2013-03-22 15:57 ` [PATCH net-next 3/5] qlcnic: change mdelay to msleep Shahed Shaikh
2013-03-22 15:57 ` [PATCH net-next 4/5] qlcnic: Clear link status when interface is down Shahed Shaikh
2013-03-22 15:57 ` [PATCH net-next 5/5] qlcnic: Bump up the version to 5.1.38 Shahed Shaikh
2013-03-22 16:47 ` [PATCH net-next 0/5] qlcnic: bug fixes and log enhancement David Miller

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).