netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad
@ 2014-01-30 16:01 Dave Jones
  2014-01-30 21:08 ` Francois Romieu
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2014-01-30 16:01 UTC (permalink / raw)
  To: romieu; +Cc: netdev

WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
DMA-API: exceeded 7 overlapping mappings of pfn 943ad
Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6 nf_defrag_ipv6 nf_defrag_ipv4 xt_conntrack nf_conntrack ip6table_filter ip6_tables crc32c_intel ghash_clmulni_intel microcode pcspkr r8169 mii nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video backlight
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.13.0+ #10
Hardware name: Shuttle Inc. SH87R/FH87, BIOS 1.02 06/26/2013
 0000000000000009 62a5d1f597ade7cd ffff88013ac03910 ffffffff8157a0ca
 ffff88013ac03958 ffff88013ac03948 ffffffff8105c343 00000000000943ad
 ffff8800b198ce38 0000000000000286 ffffffff828acb40 0000000000000286
Call Trace:
 <IRQ>  [<ffffffff8157a0ca>] dump_stack+0x4d/0x66
 [<ffffffff8105c343>] warn_slowpath_common+0x73/0x90
 [<ffffffff8105c3b7>] warn_slowpath_fmt+0x57/0x80
 [<ffffffff812bf60d>] ? active_pfn_read_overlap+0x2d/0x50
 [<ffffffff812bfbd7>] add_dma_entry+0x127/0x130
 [<ffffffff812bff0a>] debug_dma_map_page+0x11a/0x140
 [<ffffffffa01ebaae>] rtl8169_start_xmit+0x1fe/0xac0 [r8169]
 [<ffffffff810a81bf>] ? lock_release_holdtime.part.30+0xf/0x190
 [<ffffffff8146b3f0>] ? dev_queue_xmit_nit+0x170/0x3d0
 [<ffffffff8146d69b>] dev_hard_start_xmit+0x2cb/0x4c0
 [<ffffffff8148e3de>] sch_direct_xmit+0xee/0x280
 [<ffffffff8146da90>] __dev_queue_xmit+0x200/0x770
 [<ffffffff8146d890>] ? dev_hard_start_xmit+0x4c0/0x4c0
 [<ffffffff8146e00b>] dev_queue_xmit+0xb/0x10
 [<ffffffff8147912a>] neigh_resolve_output+0x17a/0x2e0
 [<ffffffff814a87f0>] ? ip_finish_output+0x3f0/0x8e0
 [<ffffffff814a87f0>] ip_finish_output+0x3f0/0x8e0
 [<ffffffff814a8666>] ? ip_finish_output+0x266/0x8e0
 [<ffffffff814aa427>] ip_output+0x57/0xf0
 [<ffffffff814a5121>] ip_forward_finish+0x71/0x1c0
 [<ffffffff814a5483>] ip_forward+0x213/0x590
 [<ffffffff814a3030>] ip_rcv_finish+0x140/0x570
 [<ffffffff814a39b4>] ip_rcv+0x294/0x3d0
 [<ffffffff8146aaa2>] __netif_receive_skb_core+0x762/0x960
 [<ffffffff8146a47d>] ? __netif_receive_skb_core+0x13d/0x960
 [<ffffffff810aad4d>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8146acb3>] __netif_receive_skb+0x13/0x60
 [<ffffffff8146ad2d>] netif_receive_skb_internal+0x2d/0x210
 [<ffffffff8146ca68>] napi_gro_receive+0x58/0x80
 [<ffffffffa01ec4d6>] rtl8169_poll+0x166/0x700 [r8169]
 [<ffffffff8146b839>] net_rx_action+0x129/0x1e0
 [<ffffffff81060ebc>] __do_softirq+0x11c/0x2a0
 [<ffffffff8106137d>] irq_exit+0x11d/0x140
 [<ffffffff810043c3>] do_IRQ+0x53/0xf0
 [<ffffffff81582def>] common_interrupt+0x6f/0x6f
 <EOI>  [<ffffffff8142c35f>] ? cpuidle_enter_state+0x4f/0xc0
 [<ffffffff8142c35b>] ? cpuidle_enter_state+0x4b/0xc0
 [<ffffffff8142c466>] cpuidle_idle_call+0x96/0x140
 [<ffffffff8100b879>] arch_cpu_idle+0x9/0x30
 [<ffffffff810b505a>] cpu_startup_entry+0xea/0x220
 [<ffffffff81571a83>] rest_init+0x133/0x140
 [<ffffffff81571950>] ? csum_partial_copy_generic+0x170/0x170
 [<ffffffff81c78e6c>] start_kernel+0x41f/0x440
 [<ffffffff81c78856>] ? repair_env_string+0x5c/0x5c
 [<ffffffff81c78571>] x86_64_start_reservations+0x2a/0x2c
 [<ffffffff81c7863a>] x86_64_start_kernel+0xc7/0xca

This box has two r8169's. Two different revs..
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad
  2014-01-30 16:01 r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad Dave Jones
@ 2014-01-30 21:08 ` Francois Romieu
  2014-01-30 21:13   ` Dave Jones
  2014-02-11 23:33   ` Dave Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Francois Romieu @ 2014-01-30 21:08 UTC (permalink / raw)
  To: Dave Jones; +Cc: netdev

Dave Jones <davej@redhat.com> :
> WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
> DMA-API: exceeded 7 overlapping mappings of pfn 943ad
> Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6 nf_defrag_ipv6 nf_defrag_ipv4 xt_conntrack nf_conntrack ip6table_filter ip6_tables crc32c_intel ghash_clmulni_intel microcode pcspkr r8169 mii nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video backlight
> CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.13.0+ #10

Was 59f2e7df574c78e952d79435de3f4867349403aa included in the run ?

-- 
Ueimor

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad
  2014-01-30 21:08 ` Francois Romieu
@ 2014-01-30 21:13   ` Dave Jones
  2014-02-11 23:33   ` Dave Jones
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Jones @ 2014-01-30 21:13 UTC (permalink / raw)
  To: Francois Romieu; +Cc: netdev

On Thu, Jan 30, 2014 at 10:08:02PM +0100, Francois Romieu wrote:
 > Dave Jones <davej@redhat.com> :
 > > WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
 > > DMA-API: exceeded 7 overlapping mappings of pfn 943ad
 > > Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6 nf_defrag_ipv6 nf_defrag_ipv4 xt_conntrack nf_conntrack ip6table_filter ip6_tables crc32c_intel ghash_clmulni_intel microcode pcspkr r8169 mii nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video backlight
 > > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.13.0+ #10
 > 
 > Was 59f2e7df574c78e952d79435de3f4867349403aa included in the run ?

yes.

	Dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad
  2014-01-30 21:08 ` Francois Romieu
  2014-01-30 21:13   ` Dave Jones
@ 2014-02-11 23:33   ` Dave Jones
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Jones @ 2014-02-11 23:33 UTC (permalink / raw)
  To: Francois Romieu; +Cc: netdev, dan.j.williams

On Thu, Jan 30, 2014 at 10:08:02PM +0100, Francois Romieu wrote:
 > Dave Jones <davej@redhat.com> :
 > > WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
 > > DMA-API: exceeded 7 overlapping mappings of pfn 943ad
 > > Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6 nf_defrag_ipv6 nf_defrag_ipv4 xt_conntrack nf_conntrack ip6table_filter ip6_tables crc32c_intel ghash_clmulni_intel microcode pcspkr r8169 mii nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video backlight
 > > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.13.0+ #10
 > 
 > Was 59f2e7df574c78e952d79435de3f4867349403aa included in the run ?

fyi, still seeing this in .14rc2.

It happens shortly after boot, and seems quite reproducable for me..

/var/log/messages-20140202:Jan 30 10:48:08 firewall kernel: [30254.316836] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
/var/log/messages-20140202:Jan 31 10:42:09 firewall kernel: [ 2333.196185] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
/var/log/messages-20140202:Feb  2 01:40:26 firewall kernel: [  164.305284] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
/var/log/messages-20140209:Feb  7 17:26:06 firewall kernel: [  422.596431] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()

As the hostname suggests, this box is forwarding packets between two 8169s.

(Added Dan to cc in case this is another dma-debug regression, full trace below for his benefit)

	Dave

[  676.433089] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:491 add_dma_entry+0x127/0x130()
[  676.433177] DMA-API: exceeded 7 overlapping mappings of pfn 84
[  676.433243] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter nf_conntrack_ipv4 ip6_tables nf_defrag_ipv4 xt_conntrack nf_conntrack crc32c_intel ghash_clmulni_intel microcode pcspkr r8169 mii nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video backlight
[  676.433729] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.14.0-rc2+ #17 
[  676.433842] Hardware name: Shuttle Inc. SH87R/FH87, BIOS 1.02 06/26/2013
[  676.433917]  0000000000000009 a926658692479a32 ffff88013ac03910 ffffffff8157b0d8
[  676.434015]  ffff88013ac03958 ffff88013ac03948 ffffffff8105c313 0000000000000084
[  676.434110]  ffff8800b190bc70 0000000000000286 ffffffff828a0180 0000000000000286
[  676.434205] Call Trace:
[  676.434234]  <IRQ>  [<ffffffff8157b0d8>] dump_stack+0x4d/0x66
[  676.434320]  [<ffffffff8105c313>] warn_slowpath_common+0x73/0x90
[  676.434391]  [<ffffffff8105c387>] warn_slowpath_fmt+0x57/0x80
[  676.434460]  [<ffffffff812c029d>] ? active_pfn_read_overlap+0x2d/0x50
[  676.434535]  [<ffffffff812c0867>] add_dma_entry+0x127/0x130
[  676.434601]  [<ffffffff812c0b9a>] debug_dma_map_page+0x11a/0x140
[  676.434679]  [<ffffffffa01ebaae>] rtl8169_start_xmit+0x1fe/0xac0 [r8169]
[  676.434761]  [<ffffffff810a81af>] ? lock_release_holdtime.part.30+0xf/0x190
[  676.439701]  [<ffffffff8146c3b0>] ? dev_queue_xmit_nit+0x170/0x3d0
[  676.444647]  [<ffffffff8146e65b>] dev_hard_start_xmit+0x2cb/0x4c0
[  676.449593]  [<ffffffff8148f39e>] sch_direct_xmit+0xee/0x280
[  676.454537]  [<ffffffff8146ea50>] __dev_queue_xmit+0x200/0x770
[  676.459320]  [<ffffffff8146e850>] ? dev_hard_start_xmit+0x4c0/0x4c0
[  676.463946]  [<ffffffff8146efcb>] dev_queue_xmit+0xb/0x10
[  676.468409]  [<ffffffff8147a0ea>] neigh_resolve_output+0x17a/0x2e0
[  676.472827]  [<ffffffff814a97b0>] ? ip_finish_output+0x3f0/0x8e0
[  676.477191]  [<ffffffff814a97b0>] ip_finish_output+0x3f0/0x8e0
[  676.481493]  [<ffffffff814a9626>] ? ip_finish_output+0x266/0x8e0
[  676.485744]  [<ffffffff814ab3e7>] ip_output+0x57/0xf0
[  676.489926]  [<ffffffff814a60e1>] ip_forward_finish+0x71/0x1c0
[  676.494055]  [<ffffffff814a6443>] ip_forward+0x213/0x590
[  676.498113]  [<ffffffff814a3ff0>] ip_rcv_finish+0x140/0x570
[  676.502112]  [<ffffffff814a4974>] ip_rcv+0x294/0x3d0
[  676.506040]  [<ffffffff8146ba62>] __netif_receive_skb_core+0x762/0x960
[  676.509937]  [<ffffffff8146b43d>] ? __netif_receive_skb_core+0x13d/0x960
[  676.513783]  [<ffffffff810aad3d>] ? trace_hardirqs_on+0xd/0x10
[  676.517570]  [<ffffffff8146bc73>] __netif_receive_skb+0x13/0x60
[  676.521299]  [<ffffffff8146bced>] netif_receive_skb_internal+0x2d/0x210
[  676.524981]  [<ffffffff8146da28>] napi_gro_receive+0x58/0x80
[  676.528606]  [<ffffffffa01ec4d6>] rtl8169_poll+0x166/0x700 [r8169]
[  676.532180]  [<ffffffff8146c7f9>] net_rx_action+0x129/0x1e0
[  676.535694]  [<ffffffff81060e8c>] __do_softirq+0x11c/0x2a0
[  676.539229]  [<ffffffff8106134d>] irq_exit+0x11d/0x140
[  676.542699]  [<ffffffff810043e3>] do_IRQ+0x53/0xf0
[  676.546183]  [<ffffffff81583def>] common_interrupt+0x6f/0x6f
[  676.549692]  <EOI>  [<ffffffff8142d31f>] ? cpuidle_enter_state+0x4f/0xc0
[  676.553275]  [<ffffffff8142d31b>] ? cpuidle_enter_state+0x4b/0xc0
[  676.556803]  [<ffffffff8142d426>] cpuidle_idle_call+0x96/0x140
[  676.560276]  [<ffffffff8100b949>] arch_cpu_idle+0x9/0x30
[  676.563769]  [<ffffffff810b504a>] cpu_startup_entry+0xea/0x220
[  676.567211]  [<ffffffff81572a43>] rest_init+0x133/0x140
[  676.570589]  [<ffffffff81572910>] ? csum_partial_copy_generic+0x170/0x170
[  676.574017]  [<ffffffff81c78e6c>] start_kernel+0x41f/0x440
[  676.577382]  [<ffffffff81c78856>] ? repair_env_string+0x5c/0x5c
[  676.580692]  [<ffffffff81c78571>] x86_64_start_reservations+0x2a/0x2c
[  676.584036]  [<ffffffff81c7863a>] x86_64_start_kernel+0xc7/0xca
[  676.587390] ---[ end trace 6c6ab4309da33850 ]---

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-11 23:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 16:01 r8169: DMA-API: exceeded 7 overlapping mappings of pfn 943ad Dave Jones
2014-01-30 21:08 ` Francois Romieu
2014-01-30 21:13   ` Dave Jones
2014-02-11 23:33   ` Dave Jones

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).