netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux-stable] i40e: Don't stop driver probe when querying DCB config fails
@ 2014-08-13 11:30 Jeff Kirsher
  2014-08-13 19:43 ` David Miller
  2014-08-13 23:33 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Kirsher @ 2014-08-13 11:30 UTC (permalink / raw)
  To: gregkh, davem
  Cc: Neerav Parikh, netdev, stable, Catherine Sullivan, Jeff Kirsher

From: Neerav Parikh <neerav.parikh@intel.com>

Commit id: 014269ff376f552363ecdab78d3d947fbe2237d9 in Linus's tree
should be queued up for stable 3.14 & 3.15 since the i40e driver will
not load when DCB is enabled, unless this patch is applied.

In case of any AQ command to query port's DCB configuration fails
during driver's probe time; the probe fails and returns an error.

This patch prevents this issue by continuing the driver probe even
when an error is returned.

Also, added an error message to dump the AQ error status to show what
error caused the failure to get the DCB configuration from firmware.

Change-ID: Ifd5663512588bca684069bb7d4fb586dd72221af
Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index b901371..5d3206d 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -4024,6 +4024,9 @@ static int i40e_init_pf_dcb(struct i40e_pf *pf)
 				       DCB_CAP_DCBX_VER_IEEE;
 			pf->flags |= I40E_FLAG_DCB_ENABLED;
 		}
+	} else {
+		dev_info(&pf->pdev->dev, "AQ Querying DCB configuration failed: %d\n",
+			 pf->hw.aq.asq_last_status);
 	}
 
 out:
@@ -8003,7 +8006,7 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (err) {
 		dev_info(&pdev->dev, "init_pf_dcb failed: %d\n", err);
 		pf->flags &= ~I40E_FLAG_DCB_ENABLED;
-		goto err_init_dcb;
+		/* Continue without DCB enabled */
 	}
 #endif /* CONFIG_I40E_DCB */
 
@@ -8119,9 +8122,6 @@ err_vsis:
 err_switch_setup:
 	i40e_reset_interrupt_capability(pf);
 	del_timer_sync(&pf->service_timer);
-#ifdef CONFIG_I40E_DCB
-err_init_dcb:
-#endif /* CONFIG_I40E_DCB */
 err_mac_addr:
 err_configure_lan_hmc:
 	(void)i40e_shutdown_lan_hmc(hw);
-- 
1.9.3

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

* Re: [linux-stable] i40e: Don't stop driver probe when querying DCB config fails
  2014-08-13 11:30 [linux-stable] i40e: Don't stop driver probe when querying DCB config fails Jeff Kirsher
@ 2014-08-13 19:43 ` David Miller
  2014-08-13 20:24   ` Jeff Kirsher
  2014-08-13 23:33 ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: David Miller @ 2014-08-13 19:43 UTC (permalink / raw)
  To: jeffrey.t.kirsher
  Cc: gregkh, neerav.parikh, netdev, stable, catherine.sullivan

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 13 Aug 2014 04:30:55 -0700

> From: Neerav Parikh <neerav.parikh@intel.com>
> 
> Commit id: 014269ff376f552363ecdab78d3d947fbe2237d9 in Linus's tree
> should be queued up for stable 3.14 & 3.15 since the i40e driver will
> not load when DCB is enabled, unless this patch is applied.
> 
> In case of any AQ command to query port's DCB configuration fails
> during driver's probe time; the probe fails and returns an error.
> 
> This patch prevents this issue by continuing the driver probe even
> when an error is returned.
> 
> Also, added an error message to dump the AQ error status to show what
> error caused the failure to get the DCB configuration from firmware.
> 
> Change-ID: Ifd5663512588bca684069bb7d4fb586dd72221af
> Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
> Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

This is a very confusing submission.

Is this an already applied patch that you want accepted into the -stable
tree?  If so, which tree(s)?

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

* Re: [linux-stable] i40e: Don't stop driver probe when querying DCB config fails
  2014-08-13 19:43 ` David Miller
@ 2014-08-13 20:24   ` Jeff Kirsher
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2014-08-13 20:24 UTC (permalink / raw)
  To: David Miller; +Cc: gregkh, neerav.parikh, netdev, stable, catherine.sullivan

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

On Wed, 2014-08-13 at 12:43 -0700, David Miller wrote:
> From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> Date: Wed, 13 Aug 2014 04:30:55 -0700
> 
> > From: Neerav Parikh <neerav.parikh@intel.com>
> > 
> > Commit id: 014269ff376f552363ecdab78d3d947fbe2237d9 in Linus's tree
> > should be queued up for stable 3.14 & 3.15 since the i40e driver will
> > not load when DCB is enabled, unless this patch is applied.
> > 
> > In case of any AQ command to query port's DCB configuration fails
> > during driver's probe time; the probe fails and returns an error.
> > 
> > This patch prevents this issue by continuing the driver probe even
> > when an error is returned.
> > 
> > Also, added an error message to dump the AQ error status to show what
> > error caused the failure to get the DCB configuration from firmware.
> > 
> > Change-ID: Ifd5663512588bca684069bb7d4fb586dd72221af
> > Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
> > Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> 
> This is a very confusing submission.
> 
> Is this an already applied patch that you want accepted into the -stable
> tree?  If so, which tree(s)?

Sorry, yes.  It is current in 3.16.y, and we would like it queued up for
3.14.y and 3.15.y stable trees.  I got a bit confused when I went to
submit this to stable and saw that networking stable patches were
handled differently that other stable patches.  I tried to make my
request clear by writing that first paragraph in the patch description,
but I probably just muddied the water instead.

It is just easier, when the developers tell me to begin with that a
patch needs to go into stable when they first submit the patch.  Which
was not the case for this patch, grrr.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [linux-stable] i40e: Don't stop driver probe when querying DCB config fails
  2014-08-13 11:30 [linux-stable] i40e: Don't stop driver probe when querying DCB config fails Jeff Kirsher
  2014-08-13 19:43 ` David Miller
@ 2014-08-13 23:33 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2014-08-13 23:33 UTC (permalink / raw)
  To: jeffrey.t.kirsher
  Cc: gregkh, neerav.parikh, netdev, stable, catherine.sullivan

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 13 Aug 2014 04:30:55 -0700

> From: Neerav Parikh <neerav.parikh@intel.com>
> 
> Commit id: 014269ff376f552363ecdab78d3d947fbe2237d9 in Linus's tree
> should be queued up for stable 3.14 & 3.15 since the i40e driver will
> not load when DCB is enabled, unless this patch is applied.
> 
> In case of any AQ command to query port's DCB configuration fails
> during driver's probe time; the probe fails and returns an error.
> 
> This patch prevents this issue by continuing the driver probe even
> when an error is returned.
> 
> Also, added an error message to dump the AQ error status to show what
> error caused the failure to get the DCB configuration from firmware.
> 
> Change-ID: Ifd5663512588bca684069bb7d4fb586dd72221af
> Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
> Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Queued up for -stable, thanks.

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

end of thread, other threads:[~2014-08-13 23:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-13 11:30 [linux-stable] i40e: Don't stop driver probe when querying DCB config fails Jeff Kirsher
2014-08-13 19:43 ` David Miller
2014-08-13 20:24   ` Jeff Kirsher
2014-08-13 23:33 ` 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).