linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Veaceslav Falico <vfalico@redhat.com>
To: Zdenek Kabelac <zkabelac@redhat.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux.nics@intel.com,
	"e1000-devel@lists.sourceforge.net"
	<e1000-devel@lists.sourceforge.net>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: kobject_add_internal failed for msi_irqs with -EEXIST
Date: Tue, 1 Oct 2013 15:00:46 +0200	[thread overview]
Message-ID: <20131001130046.GC6096@redhat.com> (raw)
In-Reply-To: <5245D626.6090209@redhat.com>

On Fri, Sep 27, 2013 at 09:01:58PM +0200, Zdenek Kabelac wrote:
>Dne 27.9.2013 18:01, Veaceslav Falico napsal(a):
>>On Fri, Sep 27, 2013 at 09:58:28AM -0600, Bjorn Helgaas wrote:
>>>[+cc Veaceslav, linux-pci]
>>>
>>>On Fri, Sep 27, 2013 at 7:34 AM, Zdenek Kabelac <zkabelac@redhat.com> wrote:
>>>>Hi
>>>>
>>>>With recent build of 3.12-rc2 I'm getting this warning report from kernel:
>>>>(hw Lenovo T61, C2D, 4GB Ram)
>>>>(repost since linux-kernel@ rejected my gmail email....)
>>>
>>>This looks related to the MSI/kobject issues Veaceslav is working on.
>>>See
>>>http://lkml.kernel.org/r/1379382464-7920-2-git-send-email-vfalico@redhat.com
>>>and related messages.
>>>
>>>We don't have a resolution yet.  If you have
>>>CONFIG_DEBUG_KOBJECT_RELEASE=y, you could try turning that off.  I
>>>don't know if it would help, and it would only be a temporary
>>>workaround anyway.
>>
>>I've looked at the original post -
>>http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg510798.html
>>hope that's it - and it seems that it's disabling DEBUG_KOBJECT_RELEASE
>>won't help - the warning is about the re-registering, not about freeing it.
>>
>>As a workaround I'd suggest adding some kind of delay between removing and
>>adding the msi - as in - rmmod e1000e; sleep 1; modprobe e1000e; - or
>>something like that, so that there is enough time for the /msqi_irqs/ to go
>>away.
>>
>
>I'm not readding e1000e modules myself - however I've no idea what 
>NetworkManager does. Here are messages prior warning:
>
>NetworkManager[304]: <info> monitoring kernel firmware directory '/lib/firmware'.
>NetworkManager[304]: <info> rfkill1: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1) 
>(driver iwl3945)
>NetworkManager[304]: <info> WiFi hardware radio set enabled
>NetworkManager[304]: <info> WiFi enabled by radio killswitch; enabled 
>by state file
>NetworkManager[304]: <info> WWAN enabled by radio killswitch; 
>disabled by state file
>NetworkManager[304]: <info> WiMAX enabled by radio killswitch; 
>enabled by state file
>NetworkManager[304]: <info> Networking is enabled by state file
>NetworkManager[304]: <info> (eth0): carrier is OFF
>NetworkManager[304]: <info> (eth0): new Ethernet device (driver: 
>'e1000e' ifindex: 2)
>NetworkManager[304]: <info> (eth0): exported as 
>/org/freedesktop/NetworkManager/Devices/0
>NetworkManager[304]: <info> (eth0): device state change: unmanaged -> 
>unavailable (reason 'managed') [10 20 2]
>NetworkManager[304]: <info> (eth0): bringing up device.
>rpcbind: cannot create socket for udp6
>rpcbind: cannot create socket for tcp6
>kernel: [    5.727025] WARNING! power/level is deprecated; use 
>power/control instead
>
>
>So it looks like  'bringing up' causes recreation of msi_irqs ?

Yep, seems like that. .ndo_stop() (e1000_close(), which removes msi irqs
and the /msi_irqs/ kset) instantly followed by .ndo_open() (e1000_open(),
which enables the requested msi irqs via pci_enable_msi() - and,
consequently, re-creates the /msi_irqs/ kset) triggers it - because the
kset, in the meanwhile, isn't freed - maybe because of some readers, maybe
because of the delay introduced by DEBUG_KOBJECT_RELEASE.

I'm now slowly fighting this (and adjacent) issues, will put you on CC if
I'll come up with patches.

In the meanwhile - can you please try disabling DEBUG_KOBJECT_RELEASE and
test if you see the warning _constantly_?

Cause if you do - we might have another issue here...

>
>Zdenek
>
>
>
>
>

      reply	other threads:[~2013-10-01 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5245896A.70705@redhat.com>
2013-09-27 15:58 ` kobject_add_internal failed for msi_irqs with -EEXIST Bjorn Helgaas
2013-09-27 16:01   ` Veaceslav Falico
2013-09-27 19:01     ` Zdenek Kabelac
2013-10-01 13:00       ` Veaceslav Falico [this message]

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=20131001130046.GC6096@redhat.com \
    --to=vfalico@redhat.com \
    --cc=bhelgaas@google.com \
    --cc=e1000-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux.nics@intel.com \
    --cc=zkabelac@redhat.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 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).