From: Corinna Vinschen <vinschen@redhat.com>
To: poma <pomidorabelisima@gmail.com>
Cc: netdev@vger.kernel.org, David Miller <davem@davemloft.net>,
Francois Romieu <romieu@fr.zoreil.com>,
Mike Massonnet <m8t@gandi.net>,
Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>,
Bernhard Walle <bernhard.walle@gmx.de>,
Hendrik Scholz <hscholz@raisdorf.net>,
Florian Rivoal <frivoal@xfce.org>
Subject: Re: [PATCH net 1/1] r8169: fix sleepable allocation during netdevice stats retrieval.
Date: Wed, 9 Sep 2015 21:08:05 +0200 [thread overview]
Message-ID: <20150909190805.GA26699@calimero.vinschen.de> (raw)
In-Reply-To: <55F07BBC.9020308@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3427 bytes --]
On Sep 9 20:34, poma wrote:
> On 09/09/2015 05:55 PM, Corinna Vinschen wrote:
> > On Sep 9 17:54, Corinna Vinschen wrote:
> >> On Sep 9 17:24, poma wrote:
> >>> [PATCH net] r8169: Fix sleeping function called during get_stats64
> >>> http://marc.info/?l=linux-netdev&m=144180123410135&q=raw
> >>> - the noise is still present
> >>
> >> Are you really sure? The entire dma_alloc/dma_free stuff has been moved
> >> away. There's no locking or sleeping involved different from what was
> >> there before my original patch when calling .ndo_get_stats64.
> >>
>
>
> It is literally the kernel ring buffer output,
> so I really can not understand your question.
I'm asking because I'm wondering if you're actually testing the
right r8169.ko module, the one with the patch applied. See below.
> >> How would I be able to reproduce this on the command line?
>
> This I have already written, here's once more for you,
> <quote>
> This noise is induced via userspace, xfce4-netload-plugin,
> http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin
>
> $ grep -i device .config/xfce4/panel/netload-16.rc
> Network_Device=enp3s0
>
> $ ethtool -i enp3s0 | grep driver
> driver: r8169
> </quote>
>
> Therefore, to try to reproduce this issue, 'xfce4-netload-plugin' must run within 'xfce4-panel',
> moreover 'xfce4-netload-plugin' must be configured to monitor affected network interface.
I'lll see if I can try this tomorrow.
> No command line this time, hombre.
If it has to be spanish, I'd prefer mujer, but whatever.
> > It would also be interesting to see the "noise" as it looks after
> > applying the above patch...
>
> The "noise" after applying "r8169: Fix sleeping function called during get_stats64":
> [...]
> [ 215.049067] Call Trace:
> [ 215.049078] [<ffffffff8184b6c1>] dump_stack+0x4b/0x63
> [ 215.049090] [<ffffffff81100d77>] lockdep_rcu_suspicious+0xd7/0x110
> [ 215.049099] [<ffffffff810d5377>] ___might_sleep+0xa7/0x230
> [ 215.049107] [<ffffffff810d5549>] __might_sleep+0x49/0x80
> [ 215.049121] [<ffffffff811e575e>] __alloc_pages_nodemask+0x2fe/0xb90
> [ 215.049130] [<ffffffff81121b0d>] ? debug_lockdep_rcu_enabled+0x1d/0x20
> [ 215.049141] [<ffffffff81024b29>] ? sched_clock+0x9/0x10
> [ 215.049149] [<ffffffff810e258c>] ? local_clock+0x1c/0x20
> [ 215.049157] [<ffffffff81121b0d>] ? debug_lockdep_rcu_enabled+0x1d/0x20
> [ 215.049168] [<ffffffff810218e6>] dma_generic_alloc_coherent+0x96/0x130
> [ 215.049178] [<ffffffff81069865>] x86_swiotlb_alloc_coherent+0x25/0x50
> [ 215.049193] [<ffffffff810215fd>] dma_alloc_attrs+0x6d/0xe0
> [ 215.049208] [<ffffffffa002e25e>] rtl8169_map_counters+0x3e/0x70 [r8169]
This is very certainly not the r8169.ko driver with my patch applied.
There is no rtl8169_map_counters function anymore, just as with
Francois' patch. I'm not sure what you're doing wrong there, but this
stack dump definitely cannot be produced with either Francois or my
patch, so you're apparently testing the unpatched upstream driver all
the time.
> ...
> etc.
> etc.
> etc.
>
> This looks the same as at the beginning, as if you were dealing with
> an entirely different problem, hombre.
No, sorry, it's you running the wrong kernel module, and a single
occurence of the stack dump would have been sufficient, but thanks
all the same.
Corinna
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-09-09 19:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 14:05 BUG: sleeping function called from invalid context at mm/page_alloc.c:3186 poma
2015-09-04 18:36 ` David Miller
2015-09-04 20:59 ` [PATCH net 1/1] r8169: fix sleepable allocation during netdevice stats retrieval Francois Romieu
2015-09-04 22:22 ` David Miller
2015-09-04 23:11 ` Francois Romieu
2015-09-04 23:15 ` David Miller
2015-09-06 10:19 ` Corinna Vinschen
2015-09-06 20:20 ` Francois Romieu
2015-09-07 7:13 ` poma
2015-09-07 8:50 ` Corinna Vinschen
2015-09-07 14:43 ` poma
2015-09-08 6:36 ` poma
2015-09-09 15:24 ` poma
2015-09-09 15:54 ` Corinna Vinschen
2015-09-09 15:55 ` Corinna Vinschen
2015-09-09 18:34 ` poma
2015-09-09 19:04 ` David Miller
2015-09-10 0:38 ` poma
2015-09-09 19:08 ` Corinna Vinschen [this message]
2015-09-09 23:11 ` poma
2015-09-09 23:51 ` poma
2015-09-10 8:47 ` Corinna Vinschen
2015-09-10 12:36 ` poma
2015-09-10 14:29 ` Corinna Vinschen
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=20150909190805.GA26699@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=benedikt.meurer@unix-ag.uni-siegen.de \
--cc=bernhard.walle@gmx.de \
--cc=davem@davemloft.net \
--cc=frivoal@xfce.org \
--cc=hscholz@raisdorf.net \
--cc=m8t@gandi.net \
--cc=netdev@vger.kernel.org \
--cc=pomidorabelisima@gmail.com \
--cc=romieu@fr.zoreil.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).