Re: i40e: crash on NMI by continuous module reload
flat view
From: Nicholas Krause <hidden>
Date: 2015-02-27 21:25:09
On February 27, 2015 2:42:29 PM EST, "Nelson, Shannon" [off-list ref] wrote:
quoted
From: nick [mailto:xerofoify@gmail.com] On 2015-02-27 09:16 AM, Stefan Assmann wrote:quoted
On 27.02.2015 15:02, nick wrote: [...]quoted
quoted
i40e: Fix a bug where Rx would stop after some time [...]diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.cb/drivers/net/ethernet/intel/i40e/i40e_main.cquoted
quoted
quoted
index f7464e8..ff6d94d 100644--- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c[...]@@ -9169,6 +9178,13 @@ static int i40e_probe(struct pci_dev*pdev,quoted
const struct pci_device_id *ent)quoted
quoted
quoted
if (err) dev_info(&pf->pdev->dev, "set phy mask fail, aq_err %d\n",err);quoted
quoted
quoted
+ msleep(75); + err = i40e_aq_set_link_restart_an(&pf->hw, true, NULL); + if (err) { + dev_info(&pf->pdev->dev, "link restart failed, aq_err=%d\n", + pf->hw.aq.asq_last_status); + } + /* The main driver is (mostly) up and happy. We need to setthisquoted
statequoted
quoted
quoted
* before setting up the misc vector or we get a race and thevectorquoted
quoted
quoted
* ends up disabled forever. With this hunk removed the driver successfully unloaded/reloadedaquoted
quoted
quoted
quoted
couple of hundred times. Would it be safe to just remove thishunk?quoted
quoted
quoted
quoted
I haven't seen any negative effects by removing this yet. StefanStefan, I wouldn't remove them yet as this does look like a valid idea tocheck to see if the link isquoted
quoted
restarting successfully. On the other hand can you try removingthequoted
msleep line as this one isquoted
quoted
most likely causing the issue due to sleeping for some long in aprobe function is generally aquoted
quoted
bad idea. Thanks, NickThanks Nick for the quick reply. I tested removing the msleep butthatquoted
quoted
didn't make a difference. You actually need to remove the completehunkquoted
to get a stable driver reload. StefanStefan, Basically there are a few things that could be going wrong 1. You are getting a error return for the function,i40e_aq_set_link_restart_an 2. You are trying to re able the device again when not needed 3. You are sending a NULL value to a field for command arguments that takes a 0 and not NULL to take no arguments NickFirst of all, I would make sure you've got a short sleep in between each load and unload in this stress test. There's a lot going on under the covers in the Firmware that really should be allowed to settle out before jostling it again with another load/unload command. It would help to know what Firmware you have on your NIC - can you give us the output from "ethtool -i <ethX>"? The out-of-tree driver has just (finally!) been updated on SourceForge, so you might give this version 1.2.37 driver a try to see if it changes your result. That code still has the hunk in question, but protected by a FW version check. The related patch will be headed upstream to net-next very soon. Firmware updates have also just been released, but I'm not sure they've made it to the Intel Downloads site yet. Updating your FW will make a difference. sln
Thanks Shannon, For the advice on there being a newer driver and firmware to test that on before reporting the bug against this driver. I am curious as to why this newer code is not up streamed to Linux next yet through. Nick -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired