From: nick <xerofoify@gmail.com>
To: Stefan Assmann <sassmann@kpanic.de>, netdev <netdev@vger.kernel.org>
Cc: "e1000-devel@lists.sourceforge.net"
<e1000-devel@lists.sourceforge.net>,
"Brandeburg, Jesse" <jesse.brandeburg@intel.com>
Subject: Re: i40e: crash on NMI by continuous module reload
Date: Fri, 27 Feb 2015 09:44:24 -0500 [thread overview]
Message-ID: <54F082C8.8040407@gmail.com> (raw)
In-Reply-To: <54F07C29.8010805@kpanic.de>
On 2015-02-27 09:16 AM, Stefan Assmann wrote:
> On 27.02.2015 15:02, nick wrote:
>
> [...]
>
>>> i40e: Fix a bug where Rx would stop after some time
>>> [...]
>>> diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
>>> 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, const struct pci_device_id *ent)
>>> if (err)
>>> dev_info(&pf->pdev->dev, "set phy mask fail, aq_err %d\n", err);
>>>
>>> + 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 set this state
>>> * before setting up the misc vector or we get a race and the vector
>>> * ends up disabled forever.
>>>
>>> With this hunk removed the driver successfully unloaded/reloaded a
>>> couple of hundred times. Would it be safe to just remove this hunk?
>>> I haven't seen any negative effects by removing this yet.
>>>
>>> Stefan
>>>
>> Stefan,
>> I wouldn't remove them yet as this does look like a valid idea to check to see if the link is
>> restarting successfully. On the other hand can you try removing the msleep line as this one is
>> most likely causing the issue due to sleeping for some long in a probe function is generally a
>> bad idea.
>> Thanks,
>> Nick
>
> Thanks Nick for the quick reply. I tested removing the msleep but that
> didn't make a difference. You actually need to remove the complete hunk
> to get a stable driver reload.
>
> Stefan
>
Stefan,
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
Nick
------------------------------------------------------------------------------
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
next prev parent reply other threads:[~2015-02-27 14:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 13:50 i40e: crash on NMI by continuous module reload Stefan Assmann
2015-02-27 14:02 ` nick
2015-02-27 14:16 ` [E1000-devel] " Stefan Assmann
2015-02-27 14:44 ` nick [this message]
2015-02-27 19:42 ` Nelson, Shannon
2015-02-27 21:25 ` Nicholas Krause
2015-02-28 0:45 ` [E1000-devel] " Jeff Kirsher
2015-02-28 2:11 ` Nicholas Krause
2015-03-02 8:08 ` [E1000-devel] " Stefan Assmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F082C8.8040407@gmail.com \
--to=xerofoify@gmail.com \
--cc=e1000-devel@lists.sourceforge.net \
--cc=jesse.brandeburg@intel.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@kpanic.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).