From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: netdev <netdev@vger.kernel.org>,
"Nelson, Shannon" <shannon.nelson@intel.com>,
davem@davemloft.net
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
"Brandeburg, Jesse" <jesse.brandeburg@intel.com>,
"Wyborny, Carolyn" <carolyn.wyborny@intel.com>,
"Skidmore, Donald C" <donald.c.skidmore@intel.com>,
"Vick, Matthew" <matthew.vick@intel.com>,
"Ronciak, John" <john.ronciak@intel.com>,
"Williams, Mitch A" <mitch.a.williams@intel.com>
Subject: Re: [PATCH v5] i40e: Look up MAC address in Open Firmware or IDPROM
Date: Thu, 3 Dec 2015 10:48:23 -0500 [thread overview]
Message-ID: <20151203154823.GA23433@oracle.com> (raw)
In-Reply-To: <FC41C24E35F18A40888AACA1A36F3E418AFAEA1A@fmsmsx115.amr.corp.intel.com>
Hi,
The patch here: http://patchwork.ozlabs.org/patch/540218/
is marked "Awaiting Upstream", I think that means it has to first
show up in some other repo first (which one?)?
On addiitonal testing, we found a bug in the patch: if
we did not find the macaddr from Open Firmwre or IDPROM (i.e., defaults
were ok) then you dont want to be doing i40e_macaddr_init again, else
you will get a failure like this (truncated dump_stack shown
below)
[ 8127.050926] WARNING: CPU: 18 PID: 878 at kernel/irq/manage.c:1346 __free_irq+0x9f/0x230()
[ 8127.050927] Trying to free already-free IRQ 177
:
[ 8127.051013] [<ffffffffa043ddd0>] i40e_clear_interrupt_scheme+0xb0/0xc0 [i40e]
[ 8127.051018] [<ffffffffa044b538>] i40e_probe.part.64+0x1018/0x1320 [i40e]
:
[ 8127.051057] [<ffffffffa044b862>] i40e_probe+0x22/0x30 [i40e]
I can think of a couple of ways to fix this- one (the ugly
way) is to ifdef the i40e_macaddr_init invocation for CONFIG_OF or CONFIG_SPARC
only. Another way to solve this is to track some bit in struct i40e_hw that
indicates that the macaddr is not the default, thus i40e_macaddr_init() should
be called before register_netdev only if that bit is set. (Dont know
if there are cache-line considerations that exist in i40e_hw that
need to be taken into account for the second version)
In order to send a fix out for review, what should I clone?
should I just apply the patch/540218 to net-next and send the update?
--Sowmini
next prev parent reply other threads:[~2015-12-03 15:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 19:39 [Intel-wired-lan] [PATCH v5] i40e: Look up MAC address in Open Firmware or IDPROM Sowmini Varadhan
2015-11-04 19:39 ` Sowmini Varadhan
2015-11-04 19:59 ` [Intel-wired-lan] " Andy Shevchenko
2015-11-04 19:59 ` Andy Shevchenko
2015-11-04 20:06 ` [Intel-wired-lan] " Sowmini Varadhan
2015-11-04 20:06 ` Sowmini Varadhan
2015-11-04 21:31 ` [Intel-wired-lan] " Andy Shevchenko
2015-11-04 21:31 ` Andy Shevchenko
2015-11-04 22:53 ` [Intel-wired-lan] " Nelson, Shannon
2015-11-04 22:53 ` Nelson, Shannon
2015-11-04 22:53 ` Nelson, Shannon
2015-11-04 23:06 ` [Intel-wired-lan] " Andy Shevchenko
2015-11-04 23:06 ` Andy Shevchenko
2015-12-03 15:48 ` Sowmini Varadhan [this message]
2015-12-03 17:13 ` David Miller
2015-12-03 21:35 ` Jeff Kirsher
2015-12-03 21:42 ` Sowmini Varadhan
2015-11-04 23:01 ` [Intel-wired-lan] " Nelson, Shannon
2015-11-04 23:01 ` Nelson, Shannon
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=20151203154823.GA23433@oracle.com \
--to=sowmini.varadhan@oracle.com \
--cc=andy.shevchenko@gmail.com \
--cc=carolyn.wyborny@intel.com \
--cc=davem@davemloft.net \
--cc=donald.c.skidmore@intel.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=john.ronciak@intel.com \
--cc=matthew.vick@intel.com \
--cc=mitch.a.williams@intel.com \
--cc=netdev@vger.kernel.org \
--cc=shannon.nelson@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.