Asix causes to kernel panic on Android

Started by mkurnaz, March 29, 2016, 02:34:14 PM

Previous topic - Next topic

mkurnaz

Hello All,

We have made a custom board like Olinuxino with NAND, 10"LCD and touch panel. We have build Android Jelly Bean, created sun5i_android_a13-evb.img. We have flashed to NAND. It looks good but after a few minutes, Asix driver gives error and causes kernel panic.
Kernel messages is like below;
[ 1990.890127] asix 2-1:1.0: eth0: kevent 2 may have been dropped
[ 1990.890127] android.vending: page allocation failure: order:3, mode:0x4020
[ 1990.890127] [<c003f240>] (unwind_backtrace+0x0/0x138) from [<c00d17b4>] (warn_alloc_failed+0xc4/0x114)
[ 1990.890127] [<c00d17b4>] (warn_alloc_failed+0xc4/0x114) from [<c00d54ec>] (__alloc_pages_nodemask+0x464/0x6e0)
[ 1990.890127] [<c00d54ec>] (__alloc_pages_nodemask+0x464/0x6e0) from [<c00d57c8>] (__get_free_pages+0x10/0x24)
[ 1990.890127] [<c00d57c8>] (__get_free_pages+0x10/0x24) from [<c047c7f8>] (__alloc_skb+0x54/0xe0)
[ 1990.890127] [<c047c7f8>] (__alloc_skb+0x54/0xe0) from [<c03666e8>] (rx_submit+0x28/0x34c)
[ 1990.890127] [<c03666e8>] (rx_submit+0x28/0x34c) from [<c03753a8>] (usb_hcd_giveback_urb+0x50/0xc0)
[ 1990.890127] [<c03753a8>] (usb_hcd_giveback_urb+0x50/0xc0) from [<c0385148>] (ehci_urb_done+0xa0/0xc0)
[ 1990.890127] [<c0385148>] (ehci_urb_done+0xa0/0xc0) from [<c0387fac>] (qh_completions+0x224/0x4dc)
[ 1990.890127] [<c0387fac>] (qh_completions+0x224/0x4dc) from [<c0389c58>] (ehci_work+0xe4/0xfa4)
[ 1990.890127] [<c0389c58>] (ehci_work+0xe4/0xfa4) from [<c038b7b4>] (ehci_irq+0x13c/0x530)
[ 1990.890127] [<c038b7b4>] (ehci_irq+0x13c/0x530) from [<c0374988>] (usb_hcd_irq+0x34/0xa0)
[ 1990.890127] [<c0374988>] (usb_hcd_irq+0x34/0xa0) from [<c00bb080>] (handle_irq_event_percpu+0x54/0x19c)
[ 1990.890127] [<c00bb080>] (handle_irq_event_percpu+0x54/0x19c) from [<c00bb218>] (handle_irq_event+0x50/0x78)
[ 1990.890127] [<c00bb218>] (handle_irq_event+0x50/0x78) from [<c00bcca8>] (handle_level_irq+0x8c/0x124)
[ 1990.890127] [<c00bcca8>] (handle_level_irq+0x8c/0x124) from [<c00bab54>] (generic_handle_irq+0x20/0x30)
[ 1990.890127] [<c00bab54>] (generic_handle_irq+0x20/0x30) from [<c0032038>] (asm_do_IRQ+0x38/0x84)
[ 1990.890127] [<c0032038>] (asm_do_IRQ+0x38/0x84) from [<c0038cc4>] (__irq_usr+0x44/0x120)
[ 1990.890127] Exception stack(0xd1a5dfb0 to 0xd1a5dff8)
[ 1990.890127] dfa0:                                     8f280000 ffffff8f ffffff1e 00000006
[ 1990.890127] dfc0: 4652bd8a 40bf255c 40cdaa40 00000214 40773fc0 00000002 40bf2548 00000002
[ 1990.890127] dfe0: 00000028 bebe2870 4008f48f 407749d4 80000010 ffffffff
[ 1990.890127] Mem-info:
[ 1990.890127] Normal per-cpu:
[ 1990.890127] CPU    0: hi:  186, btch:  31 usd: 167
[ 1990.890127] active_anon:40943 inactive_anon:108 isolated_anon:0
[ 1990.890127]  active_file:6398 inactive_file:6412 isolated_file:0
[ 1990.890127]  unevictable:678 dirty:14 writeback:0 unstable:0
[ 1990.890127]  free:571 slab_reclaimable:588 slab_unreclaimable:1944
[ 1990.890127]  mapped:8551 shmem:115 pagetables:1968 bounce:0
[ 1990.890127] Normal free:2284kB min:2696kB low:3368kB high:4044kB active_anon:163772kB inactive_anon:432kB active_file:25592kB inactive_file:25648kB unevictable:2712kB isolated(anon):0kB isolated(file):o
[ 1990.890127] lowmem_reserve[]: 0 0 0
[ 1990.890127] Normal: 527*4kB 14*8kB 2*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2284kB
[ 1990.890127] 13603 total pagecache pages
[ 1990.890127] 0 pages in swap cache
[ 1990.890127] Swap cache stats: add 0, delete 0, find 0/0
[ 1990.890127] Free swap  = 0kB
[ 1990.890127] Total swap = 0kB
[ 1990.890127] 114688 pages of RAM
[ 1990.890127] 1509 free pages
[ 1990.890127] 24183 reserved pages
[ 1990.890127] 2063 slab pages
[ 1990.890127] 144480 pages shared
[ 1990.890127] 0 pages swap cached


Best regards
Mehmet

mkurnaz

We tested A13-Olinuxino board. Problem occurs on this board too. There should be anyone who encounter ASIX problem. It is about ASIX and memory usage.

Best regards
Mehmet

JohnS

Is that driver standard with the Olimex A13 board, i.e. used by everyone?

John

mkurnaz

Yes, it is standard driver. It is /system/vendor/modules/asix.ko We tested with a13_android_sd_800x480_first_release.img. We changed only script.bin for VGA.

Best regards
Mehmet

JohnS

I don't see it loaded / in use.  Are you connecting some external hardware or what?

I don't recall a previous report like yours so anything non-standard about your Olimex A13 hardware or software?

John

mkurnaz

There is no any external hardware, only usb2eth converter. We mounted NAND for NAND iamges but we used a13_android_sd_800x480_first_release.img for SD card. And we only changed script.bin for VGA. We enabled eth in settings than surf the web with default android browser. Kernel crashes when surfing or when setting network. It seems about memory. I cat /proc/meminfo, and output is:

MemTotal:         362040 kB
MemFree:            3988 kB
Buffers:            4436 kB
Cached:           139404 kB
SwapCached:            0 kB
Active:           169828 kB
Inactive:         104924 kB
Active(anon):     132616 kB
Inactive(anon):      416 kB
Active(file):      37212 kB
Inactive(file):   104508 kB
Unevictable:        1672 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         362040 kB
LowFree:            3988 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        132592 kB
Mapped:            51844 kB
Shmem:               448 kB
Slab:               9080 kB
SReclaimable:       2728 kB
SUnreclaim:         6352 kB
KernelStack:        3984 kB
PageTables:         6992 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      181020 kB
Committed_AS:    2560748 kB
VmallocTotal:     253952 kB
VmallocUsed:       29200 kB
VmallocChunk:     207876 kB

Best regards
Mehmet

JohnS

I'm lost.  I simply cannot see the device.  Is it a USB device you plug in?

I feel it cannot be because you would have said so and put the actual device full name / URL.

John

mkurnaz

Hello John,
Firts of all, so thanks for your help.
We have A13-Olinuxino board and mounted NAND flash on it. But we tried SD card image a13_android_sd_800x480_first_release.img. We used for ethernet, usb device USB-ETHERNET-AX88772B.
https://www.olimex.com/Products/USB-Modules/USB-ETHERNET-AX88772B/

Best regards
Mehmet

JohnS

#8
If you ever post a new thread be sure to include ALL relevant data.

The product page says it's supported by Linux.  You are using Android.  So, up to you how you proceed - maybe debugging the Android driver yourself, contact the driver maintainer or choosing another device.

John