Ethernet issues on RZ-G1E

ravb Ethernet issues on RZ-G1E:

Hi,

We are trying to implement an application with continuous high data transfer. While running the application on RZ-G1E, we found "ravb e6800000.ethernet eth1: Receive Descriptor Empty" error with below debug prints:

 


irq 195: nobody cared (try booting with the "irqpoll" option)
CPU: 0 PID: 1138 Comm: nu_application Tainted: G           O 3.10.31-ltsi #17
Backtrace:
[<c0011e90>] (dump_backtrace+0x0/0x104) from [<c001209c>] (show_stack+0x18/0x1c)
 r6:00000000 r5:ea00fc50 r4:ea00fc00 r3:00400040
[<c0012084>] (show_stack+0x0/0x1c) from [<c0410d70>] (dump_stack+0x20/0x28)
[<c0410d50>] (dump_stack+0x0/0x28) from [<c0081384>] (__report_bad_irq+0x30/0xc0)
[<c0081354>] (__report_bad_irq+0x0/0xc0) from [<c00817fc>] (note_interrupt+0x184/0x228)
 r6:00000000 r5:ea00fc00 r4:ea00fc00 r3:0001863c
[<c0081678>] (note_interrupt+0x0/0x228) from [<c007f6ec>] (handle_irq_event_percpu+0x154/0x174)
[<c007f598>] (handle_irq_event_percpu+0x0/0x174) from [<c007f750>] (handle_irq_event+0x44/0x64)
[<c007f70c>] (handle_irq_event+0x0/0x64) from [<c0082518>] (handle_fasteoi_irq+0xbc/0x104)
 r6:00000000 r5:ea00fc50 r4:ea00fc00 r3:00000000
[<c008245c>] (handle_fasteoi_irq+0x0/0x104) from [<c007edec>] (generic_handle_irq+0x28/0x38)
 r5:c05a9f30 r4:000000c3
[<c007edc4>] (generic_handle_irq+0x0/0x38) from [<c000f24c>] (handle_IRQ+0x70/0x98)
 r4:000000c3 r3:000001a4
[<c000f1dc>] (handle_IRQ+0x0/0x98) from [<c0009310>] (gic_handle_irq+0x44/0x68)
 r6:c05b4914 r5:e980b7d0 r4:f3002000 r3:00000000
[<c00092cc>] (gic_handle_irq+0x0/0x68) from [<c000e500>] (__irq_svc+0x40/0x70)
Exception stack(0xe980b7d0 to 0xe980b818)
b7c0:                                     e993f11c 00000001 00000000 0000f676
b7e0: e993f0c0 00000001 ea243000 00000000 00000001 00000001 ea39d0c0 e980b824
b800: e980b828 e980b818 c03636f8 c04145b8 00070013 ffffffff
 r6:ffffffff r5:00070013 r4:c04145b8 r3:c03636f8
[<c0414598>] (_raw_spin_unlock+0x0/0x4c) from [<c03636f8>] (dev_queue_xmit+0x29c/0x3f4)
[<c036345c>] (dev_queue_xmit+0x0/0x3f4) from [<c038fc34>] (ip_finish_output+0x374/0x3e4)
[<c038f8c0>] (ip_finish_output+0x0/0x3e4) from [<c0391058>] (ip_output+0xa0/0xf8)
 r9:c05ae0c0 r8:00000000 r7:ea243000 r6:e833b5f8 r5:00000001
r4:4e81cfca
[<c0390fb8>] (ip_output+0x0/0xf8) from [<c0390870>] (ip_local_out+0x30/0x34)
 r7:e99607c0 r6:e92e532c r5:e833b5f8 r4:e833b5f8
[<c0390840>] (ip_local_out+0x0/0x34) from [<c0390ce8>] (ip_queue_xmit+0x2b4/0x344)
 r4:e92e5140 r3:00000000
[<c0390a34>] (ip_queue_xmit+0x0/0x344) from [<c03a4ccc>] (tcp_transmit_ravbskb+0x6e0/0x748)
[<c03a45ec>] (tcp_transmit_skb+0x0/0x748) from [<c03a5630>] (tcp_write_xmit+0x8fc/0x9fc)
[<c03a4d34>] (tcp_write_xmit+0x0/0x9fc) from [<c03a598c>] (__tcp_push_pending_frames+0x38/0x98)
[<c03a5954>] (__tcp_push_pending_frames+0x0/0x98) from [<c03a1cdc>] (tcp_rcv_established+0x134/0x5f0)
 r4:e92e5140
[<c03a1ba8>] (tcp_rcv_established+0x0/0x5f0) from [<c03a99a4>] (tcp_v4_do_rcv+0xcc/0x318)
 r9:00000000 r8:e92e5178 r7:c05dc640 r6:e9960140 r5:e92e5140
r4:e8b5c0c0
[<c03a98d8>] (tcp_v4_do_rcv+0x0/0x318) from [<c03aba60>] (tcp_v4_rcv+0x34c/0x720)
 r8:e92e5178 r7:c05dc640 r6:e92e5170 r5:e92e5140 r4:e8b5c0c0
[<c03ab714>] (tcp_v4_rcv+0x0/0x720) from [<c038ba90>] (ip_local_deliver_finish+0x110/0x274)
[<c038b980>] (ip_local_deliver_finish+0x0/0x274) from [<c038c0a4>] (ip_local_deliver+0x94/0xa4)
 r7:c05dc640 r6:e8b5c0c0 r5:e769368e r4:e8b5c0c0
[<c038c010>] (ip_local_deliver+0x0/0xa4) from [<c038beb4>] (ip_rcv_finish+0x2c0/0x33c)
 r4:e769368e
[<c038bbf4>] (ip_rcv_finish+0x0/0x33c) from [<c038c3dc>] (ip_rcv+0x328/0x3f4)
 r7:c05dc640 r6:e8b5c0c0 r5:e769368e r4:ea243000
[<c038c0b4>] (ip_rcv+0x0/0x3f4) from [<c0360ac8>] (__netif_receive_skb_core+0x448/0x4e4)
 r7:c05b6964 r6:00000001 r5:c05b4f88 r4:00000000
[<c0360680>] (_netif_receive_skb_core+0x0/0x4e4) from [<c0361074>] (_netif_receive_skb+0x2c/0x80)
[<c0361048>] (__netif_receive_skb+0x0/0x80) from [<c0361130>] (netif_receive_skb+0x68/0xbc)
 r5:c05b4f90 r4:e8b5c0c0
[<c03610c8>] (netif_receive_skb+0x0/0xbc) from [<c02c60d0>] (ravb_rx.isra.23+0x224/0x43c)
 r5:ea243000 r4:ea243544
[<c02c5eac>] (ravb_rx.isra.23+0x0/0x43c) from [<c02c6394>] (ravb_poll+0xac/0x270)
[<c02c62e8>] (ravb_poll+0x0/0x270) from [<c03620cc>] (net_rx_action+0xc0/0x180)
[<c036200c>] (net_rx_action+0x0/0x180) from [<c0027808>] (__do_softirq+0xd8/0x1c4)
[<c0027730>] (__do_softirq+0x0/0x1c4) from [<c002798c>] (do_softirq+0x4c/0x58)
[<c0027940>] (do_softirq+0x0/0x58) from [<c0027a2c>] (local_bh_enable_ip+0x94/0xc4)
 r4:e980a010 r3:0000000c
[<c0027998>] (local_bh_enable_ip+0x0/0xc4) from [<c041498c>] (_raw_spin_unlock_bh+0x38/0x3c)
 r5:00000000 r4:c035245c
[<c0414954>] (_raw_spin_unlock_bh+0x0/0x3c) from [<c035245c>] (release_sock+0x118/0x144)
 r4:e92e5140 r3:00000000
[<c0352344>] (release_sock+0x0/0x144) from [<c035aff4>] (sk_stream_wait_memory+0x124/0x1ec)
 r9:e980a000 r8:e980a000 r7:e980bdf0 r6:00000000 r5:7fffffff
r4:e92e5140
[<c035aed0>] (sk_stream_wait_memory+0x0/0x1ec) from [<c0399938>] (tcp_sendmsg+0x930/0xc44)
 r8:00000000 r7:a1cf7418 r6:00000000 r5:e8a2f800 r4:e92e5140
[<c0399008>] (tcp_sendmsg+0x0/0xc44) from [<c03ba57c>] (inet_sendmsg+0x8c/0xbc)
[<c03ba4f0>] (inet_sendmsg+0x0/0xbc) from [<c034e354>] (sock_aio_write+0xf8/0x118)
 r7:e980beb8 r6:e980bec0 r5:00000000 r4:e996f800
[<c034e25c>] (sock_aio_write+0x0/0x118) from [<c00cff1c>] (do_sync_write+0x7c/0xa0)
 r8:e996f800 r7:e980bf78 r6:06400022 r5:00000000 r4:00000000
[<c00cfea0>] (do_sync_write+0x0/0xa0) from [<c00d0608>] (vfs_write+0xe4/0x18c)
 r8:9cfff008 r7:06400022 r6:e980bf78 r5:9cfff008 r4:e996f800
[<c00d0524>] (vfs_write+0x0/0x18c) from [<c00d0b00>] (SyS_write+0x44/0x74)
 r9:06400022 r8:9cfff008 r7:00000001 r6:e996f800 r5:00000000
r4:00000000
[<c00d0abc>] (SyS_write+0x0/0x74) from [<c000eaac>] (__sys_trace_return+0x0/0x14)
 r9:e980a000 r8:c000eac4 r7:00000004 r6:befb4b38 r5:00000000
r4:00000000
handlers:
[<c02c7ffc>] isr
[<c02c6558>] ravb_interrupt
Disabling IRQ #195

 

and then we are facing below issue with Receive Descriptor empty error

ravb e6800000.ethernet eth1: Receive Descriptor Empty

 

irq 195: nobody cared (try booting with the "irqpoll" option)
CPU: 0 PID: 16366 Comm: nu_application Not tainted 3.10.31-ltsi #17
Backtrace:
[<c0011e90>] (dump_backtrace+0x0/0x104) from [<c001209c>] (show_stack+0x18/0x1c)
 r6:00000000 r5:ea00fc50 r4:ea00fc00 r3:00400040
[<c0012084>] (show_stack+0x0/0x1c) from [<c0410d70>] (dump_stack+0x20/0x28)
[<c0410d50>] (dump_stack+0x0/0x28) from [<c0081384>] (__report_bad_irq+0x30/0xc0)
[<c0081354>] (__report_bad_irq+0x0/0xc0) from [<c00817fc>] (note_interrupt+0x184/0x228)
 r6:00000000 r5:ea00fc00 r4:ea00fc00 r3:0001863c
[<c0081678>] (note_interrupt+0x0/0x228) from [<c007f6ec>] (handle_irq_event_percpu+0x154/0x174)
[<c007f598>] (handle_irq_event_percpu+0x0/0x174) from [<c007f750>] (handle_irq_event+0x44/0x64)
[<c007f70c>] (handle_irq_event+0x0/0x64) from [<c0082518>] (handle_fasteoi_irq+0xbc/0x104)
 r6:00000000 r5:ea00fc50 r4:ea00fc00 r3:00000000
[<c008245c>] (handle_fasteoi_irq+0x0/0x104) from [<c007edec>] (generic_handle_irq+0x28/0x38)
 r5:c05a9f30 r4:000000c3
[<c007edc4>] (generic_handle_irq+0x0/0x38) from [<c000f24c>] (handle_IRQ+0x70/0x98)
 r4:000000c3 r3:000001a4
[<c000f1dc>] (handle_IRQ+0x0/0x98) from [<c0009310>] (gic_handle_irq+0x44/0x68)
 r6:c05b4914 r5:e97178f0 r4:f3002000 r3:00000000
[<c00092cc>] (gic_handle_irq+0x0/0x68) from [<c000e500>] (__irq_svc+0x40/0x70)
Exception stack(0xe97178f0 to 0xe9717938)
78e0:                                     ea0003c0 00027c6d 00000001 e8f3c3b0
7900: e8f3c240 e8f3c240 00000204 00000001 e7144c14 00000000 00000402 e971794c
7920: e97178d8 e9717938 c00c5f84 c0357c30 600f0113 ffffffff
 r6:ffffffff r5:600f0113 r4:c0357c30 r3:c00c5f84
[<c0357be4>] (__kfree_skb+0x0/0xc4) from [<c03a11cc>] (tcp_ack+0x578/0xbec)
 r4:e8641100 r3:00041700
[<c03a0c54>] (tcp_ack+0x0/0xbec) from [<c03a1cac>] (tcp_rcv_established+0x104/0x5f0)
[<c03a1ba8>] (tcp_rcv_established+0x0/0x5f0) from [<c03a99a4>] (tcp_v4_do_rcv+0xcc/0x318)
 r9:00000000 r8:e8641138 r7:c05dc640 r6:e9919140 r5:e8641100
r4:e94ad540
[<c03a98d8>] (tcp_v4_do_rcv+0x0/0x318) from [<c03aba60>] (tcp_v4_rcv+0x34c/0x720)
 r8:e8641138 r7:c05dc640 r6:e8641130 r5:e8641100 r4:e94ad540
[<c03ab714>] (tcp_v4_rcv+0x0/0x720) from [<c038ba90>] (ip_local_deliver_finish+0x110/0x274)
[<c038b980>] (ip_local_deliver_finish+0x0/0x274) from [<c038c0a4>] (ip_local_deliver+0x94/0xa4)
 r7:c05dc640 r6:e94ad540 r5:e89e3e8e r4:e94ad540
[<c038c010>] (ip_local_deliver+0x0/0xa4) from [<c038beb4>] (ip_rcv_finish+0x2c0/0x33c)
 r4:e89e3e8e
[<c038bbf4>] (ip_rcv_finish+0x0/0x33c) from [<c038c3dc>] (ip_rcv+0x328/0x3f4)
 r7:c05dc640 r6:e94ad540 r5:e89e3e8e r4:ea2c5800
[<c038c0b4>] (ip_rcv+0x0/0x3f4) from [<c0360ac8>] (__netif_receive_skb_core+0x448/0x4e4)
 r7:c05b6964 r6:00000001 r5:c05b4f88 r4:00000000
[<c0360680>] (__netif_receive_skb_core+0x0/0x4e4) from [<c0361074>] (__netif_receive_skb+0x2c/0x80)
[<c0361048>] (__netif_receive_skb+0x0/0x80) from [<c0361130>] (netif_receive_skb+0x68/0xbc)
 r5:c05b4f90 r4:e94ad540

[<c03610c8>] (netif_receive_skb+0x0/0xbc) from [<c02c60d0>] (ravb_rx.isra.23+0x224/0x43c)
 r5:ea2c5800 r4:ea2c5d44
[<c02c5eac>] (ravb_rx.isra.23+0x0/0x43c) from [<c02c6394>] (ravb_poll+0xac/0x270)
[<c02c62e8>] (ravb_poll+0x0/0x270) from [<c03620cc>] (net_rx_action+0xc0/0x180)
[<c036200c>] (net_rx_action+0x0/0x180) from [<c0027808>] (__do_softirq+0xd8/0x1c4)
[<c0027730>] (__do_softirq+0x0/0x1c4) from [<c002798c>] (do_softirq+0x4c/0x58)
[<c0027940>] (do_softirq+0x0/0x58) from [<c0027a2c>] (local_bh_enable_ip+0x94/0xc4)
 r4:e9716010 r3:00000008
[<c0027998>] (local_bh_enable_ip+0x0/0xc4) from [<c041498c>] (_raw_spin_unlock_bh+0x38/0x3c)
 r5:00000000 r4:c035245c
[<c0414954>] (_raw_spin_unlock_bh+0x0/0x3c) from [<c035245c>] (release_sock+0x118/0x144)
 r4:e8641100 r3:00000000
[<c0352344>] (release_sock+0x0/0x144) from [<c035aff4>] (sk_stream_wait_memory+0x124/0x1ec)
 r9:e9716000 r8:e9716000 r7:e9717df0 r6:00000000 r5:7fffffff
r4:e8641100
[<c035aed0>] (sk_stream_wait_memory+0x0/0x1ec) from [<c0399938>] (tcp_sendmsg+0x930/0xc44)
 r8:00000000 r7:9fbbc218 r6:00000000 r5:e9045540 r4:e8641100
[<c0399008>] (tcp_sendmsg+0x0/0xc44) from [<c03ba57c>] (inet_sendmsg+0x8c/0xbc)
[<c03ba4f0>] (inet_sendmsg+0x0/0xbc) from [<c034e354>] (sock_aio_write+0xf8/0x118)
 r7:e9717eb8 r6:e9717ec0 r5:00000000 r4:ea148180
[<c034e25c>] (sock_aio_write+0x0/0x118) from [<c00cff1c>] (do_sync_write+0x7c/0xa0)
 r8:ea148180 r7:e9717f78 r6:03200022 r5:00000000 r4:00000000
[<c00cfea0>] (do_sync_write+0x0/0xa0) from [<c00d0608>] (vfs_write+0xe4/0x18c)
 r8:9dffe008 r7:03200022 r6:e9717f78 r5:9dffe008 r4:ea148180
[<c00d0524>] (vfs_write+0x0/0x18c) from [<c00d0b00>] (SyS_write+0x44/0x74)
 r9:03200022 r8:9dffe008 r7:00000001 r6:ea148180 r5:00000000
r4:00000000
[<c00d0abc>] (SyS_write+0x0/0x74) from [<c000eaac>] (__sys_trace_return+0x0/0x14)
 r9:e9716000 r8:c000eac4 r7:00000004 r6:be968ad8 r5:00000000
r4:00000000
handlers:
[<c02c7ffc>] isr
[<c02c6558>] ravb_interrupt
Disabling IRQ #195

 

Can anyone please suggest a solution for this?

Thanks and best regards,

Pavithra T