2009-12-24 07:20:25 hot plug crash -no memory
Karthikeyan Jeevanandam (INDIA)
Message: 83915
Hi All,
We use hotplug script to detect USB insertion and deletion. on some cases when we remove USB we get the below memory fail. Please let us know the reason why the hot plug script fails even when memory is available.
Please find the crash log below. Please let us know if you need more information
root:/> free
total used free shared buffers
Mem: 126144 84484 41660 0 0
root:/> cat /proc/buddyinfo
Node 0, zone DMA 379 266 190 53 18 13 3 4 1 1 0 1 1 0
root:/> usb 1-2: USB disconnect, address 3
[: page allocation failure. order:7, mode:0x40d0
Hardware Trace:
0 Target : <0x0018378c> { _dump_stack + 0x0 }
Source : <0x001ab812> { ___alloc_pages_internal + 0x282 } CALL pcrel
1 Target : <0x001ab812> { ___alloc_pages_internal + 0x282 }
Source : <0x0018d68e> { _printk + 0x16 } RTS
2 Target : <0x0018d68a> { _printk + 0x12 }
Source : <0x0018df7e> { _vprintk + 0x276 } RTS
3 Target : <0x0018df72> { _vprintk + 0x26a }
Source : <0x0018df66> { _vprintk + 0x25e } JUMP.S
4 Target : <0x0018df66> { _vprintk + 0x25e }
Source : <0xffa00b74> { __common_int_entry + 0xcc } RTI
5 Target : <0xffa00b12> { __common_int_entry + 0x6a }
Source : <0xffa00960> { _return_from_int + 0x58 } RTS
6 Target : <0xffa00960> { _return_from_int + 0x58 }
Source : <0xffa00936> { _return_from_int + 0x2e } IF !CC JUMP
7 Target : <0xffa00908> { _return_from_int + 0x0 }
Source : <0xffa00b0e> { __common_int_entry + 0x66 } CALL pcrel
8 Target : <0xffa00b0c> { __common_int_entry + 0x64 }
Source : <0xffa002e4> { _asm_do_IRQ + 0x84 } RTS
9 Target : <0xffa002d4> { _asm_do_IRQ + 0x74 }
Source : <0x00190e9c> { __local_bh_enable + 0x84 } RTS
10 Target : <0x00190e84> { __local_bh_enable + 0x6c }
Source : <0x00190e60> { __local_bh_enable + 0x48 } IF CC JUMP
11 Target : <0x00190e56> { __local_bh_enable + 0x3e }
Source : <0x00190e32> { __local_bh_enable + 0x1a } IF CC JUMP
12 Target : <0x00190e18> { __local_bh_enable + 0x0 }
Source : <0x00190f68> { ___do_softirq + 0xc8 } JUMP.L
13 Target : <0x00190f62> { ___do_softirq + 0xc2 }
Source : <0x00190f40> { ___do_softirq + 0xa0 } IF !CC JUMP
14 Target : <0x00190f32> { ___do_softirq + 0x92 }
Source : <0x00190f2c> { ___do_softirq + 0x8c } IF !CC JUMP
15 Target : <0x00190f1a> { ___do_softirq + 0x7a }
Source : <0x00190efe> { ___do_softirq + 0x5e } IF CC JUMP
Stack info:
SP: [0x04419d30] <0x04419d30> /* kernel dynamic memory */
FP: (0x04419d30)
Memory from 0x04419d30 to 0441a000
04419d30:[00000000]<001ab816> 046d79a0 00000000 000240d0 046d7b88 00000007 000040d0
04419d50: 00000001 00000048 000240d0 00000010 00000001 00000000 00000000 00000000
04419d70: 00000000 <001ab846> 076ddaa0 00000000 003b99a0 00007b64 00000004 00000077
04419d90: 0004f000 <001b25ea> 00000000 00007b64 00000000 <001b26ec> 00000000 0795d000
04419db0: 00000005 0034ae58 0795d000 0004ffff 6e69005b 00000000 00000000 <001d8b86>
04419dd0: 04418000 00039623 00000030 00007b64 ffffffe0 00001598 00007b64 003b0fc8
04419df0: 00000000 0004f000 00000007 00000002 00000000 000280d2 00000000 00000000
04419e10: 003b0fc8 0001ff25 00000000 00000004 00001ed9 00005527 00000000 0004f000
04419e30: 00000001 00001598 0000d468 0795d07c 00000008 00000000 04dee008 00003f8f
04419e50: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 <001b8ca4>
04419e70: 04418000 00000001 023ce978 <001b8e98> 003a2ffc 0795d000 05c80b68 fffffffe
04419e90: 00000000 00000000 04419f24 0795d000 04419f24 <001b98c2><001b98e0> 0795d000
04419eb0: 0000000b 00000000 04dee000 05c80b8c 05c80b68 00000000 0000000b 0795d000
04419ed0: 00000000 <00180502> 001804d4 04dee000 05c80b68 05c80b8c 00000000 <001912b6>
04419ef0: ffffe000 <ffa002a6> 04419f24 <ffa007d4> 00000000 ffffe000 05c80b8c 0573c776
04419f10: 023c7948 05c80adc 00000003 00000000 05c80b8c 02380ab6 00008000 00000000
04419f30: 00000000 0441a000 02380ab6 02380ab6 <023a0538><ffa00e2c> 02003025 02390a5d
04419f50: 0238a41b 02390a56 0238a41a 00000000 00000000 00000000 00000000 00000000
04419f70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04419f90: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 05c80aed
04419fb0: 05c80a70 023ce96c 023ce978 023cefd7 0573c004 05c80b68 0573c77d 05c80ade
04419fd0: 0000000b 00000000 05c80adc 05c80b8c 00000000 00000003 05c80b8c 05c80b68
04419ff0: 0573c776 0573c776 0000000b 00000006 00000000
Return addresses in stack:
frame 1 : <0x001ab816> { ___alloc_pages_internal + 0x286 }
address : <0x001ab846> { ___get_free_pages + 0x1e }
address : <0x001b25ea> { _do_mmap_pgoff + 0x36a }
address : <0x001b26ec> { _do_mmap_pgoff + 0x46c }
address : <0x001d8b86> { _load_flat_binary + 0x41e }
address : <0x001b8ca4> { _copy_strings + 0xa0 }
address : <0x001b8e98> { _search_binary_handler + 0x68 }
address : <0x001b98c2> { _do_execve + 0xd6 }
address : <0x001b98e0> { _do_execve + 0xf4 }
address : <0x00180502> { _sys_execve + 0x2e }
address : <0x001912b6> { _irq_enter + 0xa }
address : <0xffa002a6> { _asm_do_IRQ + 0x46 }
address : <0xffa007d4> { _system_call + 0x68 }
address : <0x023a0538> [ hotplug.sh + 0x20538 ]
address : <0xffa00e2c> { _evt_system_call + 0x64 }
Mem-Info:
DMA per-cpu:
CPU 0: hi: 42, btch: 7 usd: 7
Active_anon:0 active_file:3161 inactive_anon:0
inactive_file:2158 dirty:0 writeback:0 unstable:0
free:8248 slab:1643 mapped:0 pagetables:0 bounce:0
DMA free:32992kB min:32768kB low:40960kB high:49152kB active_anon:0kB inactive_anon:0kB active_file:12644kB inactive_file:8632kB present:130044kB pages_scanned:2710 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 360*4kB 236*8kB 186*16kB 62*32kB 18*64kB 6*128kB 3*256kB 1*512kB 1*1024kB 0*2048kB 1*4096kB 0*8192kB 1*16384kB 0*32768kB = 32992kB
5319 total pagecache pages
32767 pages RAM
1231 pages reserved
0 pages shared
23208 pages non-shared
Allocation of length 323584 from process 3467 failed
DMA per-cpu:
CPU 0: hi: 42, btch: 7 usd: 7
Active_anon:0 active_file:3161 inactive_anon:0
inactive_file:2158 dirty:0 writeback:0 unstable:0
free:8248 slab:1643 mapped:0 pagetables:0 bounce:0
DMA free:32992kB min:32768kB low:40960kB high:49152kB active_anon:0kB inactive_anon:0kB active_file:12644kB inactive_file:8632kB present:130044kB pages_scanned:2710 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 360*4kB 236*8kB 186*16kB 62*32kB 18*64kB 6*128kB 3*256kB 1*512kB 1*1024kB 0*2048kB 1*4096kB 0*8192kB 1*16384kB 0*32768kB = 32992kB
5319 total pagecache pages
Unable to allocate RAM for process text/data, errno 12
Undefined instruction
- May be used to emulate instructions that are not defined for
a particular processor implementation.
Deferred Exception context
CURRENT PROCESS:
COMM=[ PID=3467
CPU = 0
TEXT = 0x00000000-0x00000000 DATA = 0x00000000-0x00000000
BSS = 0x00000000-0x00000000 USER-STACK = 0x00000000
return address: [0x023c3b42]; contents of:
0x023c3b20: 6572 7461 6465 203a 656e 6577 2072 726f
0x023c3b30: 7320 6d61 2065 6761 2065 6966 656c 6520
0x023c3b40: 6978 [7473] 0073 0000 6163 6e6e 746f 6320
0x023c3b50: 6572 7461 2065 7325 696c 6b6e 6620 6f72
ADSP-BF527-0.2 600(MHz CCLK) 120(MHz SCLK) (mpu off)
Linux version 2.6.28.10-ADI-2009R1
Built with gcc version 4.1.2 (ADI svn)
SEQUENCER STATUS: Not tainted
SEQSTAT: 00060021 IPEND: 0030 SYSCFG: 0006
EXCAUSE : 0x21
interrupts disabled
physical IVG5 asserted : <0xffa00b78> { _evt_ivhw + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0441a000> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x023c3040> [ hotplug.sh + 0x43040 ]
PC : <0x023c3b42> [ hotplug.sh + 0x43b42 ]
DCPLB_FAULT_ADDR: <0x07a2dc80> /* kernel dynamic memory */
ICPLB_FAULT_ADDR: <0x001829de> { _decode_address + 0xea }
PROCESSOR STATE:
R0 : 00000024 R1 : 00000004 R2 : 05c80b8c R3 : 00000003
R4 : 0000002d R5 : 00000003 R6 : 00000000 R7 : 05c80adc
P0 : 0000002f P1 : 023c798c P2 : 023c6a30 P3 : 00000d8b
P4 : 023cef00 P5 : 023c7948 FP : 023ceefc SP : 04419f24
LB0: 0238a41b LT0: 0238a41a LC0: 00000000
LB1: 02390a5d LT1: 02390a56 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 05c80a70
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 05c80aed
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 023ce9b4 ASTAT: 02002020
Hardware Trace:
0 Target : <0x00183914> { _trap_c + 0x0 }
Source : <0xffa005d2> { _exception_to_level5 + 0x9e } CALL pcrel
1 Target : <0xffa00534> { _exception_to_level5 + 0x0 }
Source : <0xffa00414> { _bfin_return_from_exception + 0x18 } RTX
2 Target : <0xffa003fc> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0048a> { _ex_trap_c + 0x46 } JUMP.S
3 Target : <0xffa00444> { _ex_trap_c + 0x0 }
Source : <0xffa0069c> { _trap + 0x58 } JUMP (P4)
4 Target : <0xffa00644> { _trap + 0x0 }
Source : <0x023c3b40> [ hotplug.sh + 0x43b40 ] 0x6978
5 Target : <0x023c3b3c> [ hotplug.sh + 0x43b3c ]
Source : <0x023c2c60> [ hotplug.sh + 0x42c60 ] JUMP.S
6 Target : <0x023c2c60> [ hotplug.sh + 0x42c60 ]
Source : <0x023c3048> [ hotplug.sh + 0x43048 ] JUMP.S
7 Target : <0x023c3040> [ hotplug.sh + 0x43040 ]
Source : <0x023a12d4> [ hotplug.sh + 0x212d4 ] RTS
8 Target : <0x023a12cc> [ hotplug.sh + 0x212cc ]
Source : <0x023a129c> [ hotplug.sh + 0x2129c ] IF !CC JUMP
9 Target : <0x023a1286> [ hotplug.sh + 0x21286 ]
Source : <0x023a11c8> [ hotplug.sh + 0x211c8 ] IF !CC JUMP
10 Target : <0x023a11c4> [ hotplug.sh + 0x211c4 ]
Source : <0xffa003a0> { _ex_dcplb_miss + 0x78 } RTX
11 Target : <0xffa00328> { _ex_dcplb_miss + 0x0 }
Source : <0xffa0069c> { _trap + 0x58 } JUMP (P4)
12 Target : <0xffa00644> { _trap + 0x0 }
Source : <0x023a11c2> [ hotplug.sh + 0x211c2 ] 0x6021
13 Target : <0x023a11bc> [ hotplug.sh + 0x211bc ]
Source : <0x02380ac8> [ hotplug.sh + 0xac8 ] RTS
14 Target : <0x02380ac2> [ hotplug.sh + 0xac2 ]
Source : <0x02380ad6> [ hotplug.sh + 0xad6 ] JUMP.S
15 Target : <0x02380ace> [ hotplug.sh + 0xace ]
Source : <0x02381f24> [ hotplug.sh + 0x1f24 ] RTS
Userspace Stack
Stack info:
SP: [0x023ce9b4] <0x023ce9b4> [ hotplug.sh + 0x4e9b4 ]
FP: (0x023cea68)
Memory from 0x023ce9b0 to 023cf000
023ce9b0: 00000000 [00000000] 00000000 00000000 00000000 05c80adc 05c80adc 00000000
023ce9d0: 00000000 00000000 00000000 05c80b68 <023a0986> 023c798c 023c7948 023cef00
023ce9f0: 00000000 023a4db4 00000000 00000003 05c80364 00000000 00000000 00000000
023cea10: 05c80b64 05c80b64 05c8041c 00000001 0573d7f0 <023a1846><023a374e><023a378c>
023cea30: 023c7950 0000000a 0573c004 0573c004 <023a1846> 023c7964 <023a3922> 023c7950
023cea50: 05c80684 023cef00 00000001 00000000 00000000 00000003 (00000000)<023a1046>
023cea70: 0573c004 0573d7f0 <023a1846> 023c7998 <023a1046> 0573c004 0573d7f0 <023a106a>
023cea90: 023c790a 0573c004 00000000 <023a1584> 0573c004 0573c776 00000000 0573c776
023ceab0: 00000001 0573d7f0 <023a1846><023a374e><023a378c> 023c7950 0000000a 0573c004
023cead0: 0573c004 <023a1846> 023c7964 <023a3922> 023c7950 05c8080c 023cef00 00000001
023ceaf0: 00000000 00000000 00000003 00000000 <023a19fc><023a18bc><023a3d38> 023c7950
023ceb10: 00000000 <023a1046> 0573c004 0573d7f0 <023a106a> 0000000a 023c7950 05c8080c
023ceb30:<023a1584> 0573c004 0573c776 00000000 0573c776 00000001 05c808d4 05c809bc
023ceb50:<023a374e> 00000002 00000000 0000000a <023a0cb6> 023c798c 023c7948 00000000
023ceb70: 05c80364 00000000 00000000 00000000 00000001 00000000 00000000 00000003
023ceb90: 05c807b4 023cef00 00000108 <023a3d38> 023c7950 00000000 023cef00 00000108
023cebb0: 00000000 00000000 00000003 023c7950 05c80384 <023a1584> 0573c004 0573c004
023cebd0: 00000000 00000000 023cef00 05c807b4 05c809dc <023a34c2> 023c7950 00000000
023cebf0: 00000000 <023a3a88> 05c807b4 05c809dc 023c7950 <023a3922> 023c7950 05c80334
023cec10: 023cef00 00000104 00000000 00000000 00000003 05c80334 023cef00 00000108
023cec30: 023ceefc <023a3ffe> 023c7950 05c80334 023cef00 00000104 00000000 00000000
023cec50: 023c5058 00000002 <023a3a5e> 023c7928 0573c004 023cef00 05c80334 023a4db4
023cec70: 00000000 <023a3abe> 023c7928 0573c004 023cef00 05c801bc 05c80334 00000000
023cec90:<023a3b5a> 023c7928 <023a38fa> 023c7928 0573c004 023cef00 0000000a 023a4db4
023cecb0: 00000000 00000003 00000000 00000000 <023a409c> 00000001 00000000 00000000
023cecd0:<023a475a> 023c798c 023c7948 05c801bc 05c80334 00000000 00000000 00000000
023cecf0: 0573c004 023cee18 023cecf4 023c7958 023cef00 0573c004 00000001 023ceefc
023ced10: 023cece0 023cecf4 00000000 00000001 40000000 00000003 00000000 023a4db4
023ced30: 05c801bc 02003025 00000000 00000000 00000000 00000000 00000000 00000000
023ced50: 023cefd1 00000000 00000000 00000000 00000000 00000000 00000000 00000000
023ced70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
023ced90:<023a46b2> 00000000 00000000 00000000 00000000 00000000 00000034 023cede8
023cedb0:<023916d8> 023cef20 0000001e 00000000 023c6964 023cede8 <02391618> 00000000
023cedd0: 00000000 00000000 00000000 00000000 <023a1846> 05c801bc 023cee1c <02391768>
023cedf0: 0573d7e0 0573c004 023cef00 05c801bc 023a4db4 00000000 00000003 00000003
023cee10: 023cefd1 023c7938 <023a4d96> 0573d7e0 0573c004 0000002f 023bc343 023c6734
023cee30: 023ceeb8 <0239906a> 023c78ec 023ceefc 0000002f 023bc411 000000fd 00000003
023cee50: 023c7794 023b95d0 00000003 <02399088> 023ceefc 023cef30 023ceefc 00000000
023cee70: 023c7794 023b95d0 023cef2b 023c7794 <0238ace0><023991ec> 023c7a1c 023ceefc
023cee90: 00000000 023b9620 023b9620 023ceeb8 <02392f94> 023b9620 023c6a44 00000000
023ceeb0: 00000000 00000000 00000000 00000000 023b9620 00000000 00000000 00000000
023ceed0: 00000000 00000000 00000000 02399184 00000000 00000000 023b95d0 023b95e2
023ceef0: 00000000 00000000 00000003 023cef2b 023cef33 023cef40 00000000 <023cef4a>
023cef10:<023cef58> 023cefa6 <023cefba> 023cefc5 023c6988 00000000 2f000000 2f6e6962
023cef30: 2e006873 746f682f 67756c70 0068732e 69736373 736f685f 43410074 4e4f4954
023cef50: 6d65723d 0065766f 50564544 3d485441 7665642f 73656369 616c702f 726f6674
023cef70: 38722f6d 35363661 685f3739 752f6463 2f316273 2f322d31 3a322d31 2f302e31
023cef90: 74736f68 63732f30 685f6973 2f74736f 74736f68 55530030 53595342 3d4d4554
023cefb0: 69736373 736f685f 45530074 4d554e51 3438323d 4d4f4800 002f3d45 48544150
023cefd0: 62732f3d 2f3a6e69 3a6e6962 7273752f 6962732f 752f3a6e 622f7273 2e006e69
023ceff0: 746f682f 67756c70 0068732e 00000000 28ae0d1f
Return addresses in stack:
address : <0x023a0986> [ hotplug.sh + 0x20986 ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x023a374e> [ hotplug.sh + 0x2374e ]
address : <0x023a378c> [ hotplug.sh + 0x2378c ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x023a3922> [ hotplug.sh + 0x23922 ]
frame 1 : <0x023a1046> [ hotplug.sh + 0x21046 ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x023a1046> [ hotplug.sh + 0x21046 ]
address : <0x023a106a> [ hotplug.sh + 0x2106a ]
address : <0x023a1584> [ hotplug.sh + 0x21584 ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x023a374e> [ hotplug.sh + 0x2374e ]
address : <0x023a378c> [ hotplug.sh + 0x2378c ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x023a3922> [ hotplug.sh + 0x23922 ]
address : <0x023a19fc> [ hotplug.sh + 0x219fc ]
address : <0x023a18bc> [ hotplug.sh + 0x218bc ]
address : <0x023a3d38> [ hotplug.sh + 0x23d38 ]
address : <0x023a1046> [ hotplug.sh + 0x21046 ]
address : <0x023a106a> [ hotplug.sh + 0x2106a ]
address : <0x023a1584> [ hotplug.sh + 0x21584 ]
address : <0x023a374e> [ hotplug.sh + 0x2374e ]
address : <0x023a0cb6> [ hotplug.sh + 0x20cb6 ]
address : <0x023a3d38> [ hotplug.sh + 0x23d38 ]
address : <0x023a1584> [ hotplug.sh + 0x21584 ]
address : <0x023a34c2> [ hotplug.sh + 0x234c2 ]
address : <0x023a3a88> [ hotplug.sh + 0x23a88 ]
address : <0x023a3922> [ hotplug.sh + 0x23922 ]
address : <0x023a3ffe> [ hotplug.sh + 0x23ffe ]
address : <0x023a3a5e> [ hotplug.sh + 0x23a5e ]
address : <0x023a3abe> [ hotplug.sh + 0x23abe ]
address : <0x023a3b5a> [ hotplug.sh + 0x23b5a ]
address : <0x023a38fa> [ hotplug.sh + 0x238fa ]
address : <0x023a409c> [ hotplug.sh + 0x2409c ]
address : <0x023a475a> [ hotplug.sh + 0x2475a ]
address : <0x023a46b2> [ hotplug.sh + 0x246b2 ]
address : <0x023916d8> [ hotplug.sh + 0x116d8 ]
address : <0x02391618> [ hotplug.sh + 0x11618 ]
address : <0x023a1846> [ hotplug.sh + 0x21846 ]
address : <0x02391768> [ hotplug.sh + 0x11768 ]
address : <0x023a4d96> [ hotplug.sh + 0x24d96 ]
address : <0x0239906a> [ hotplug.sh + 0x1906a ]
address : <0x02399088> [ hotplug.sh + 0x19088 ]
address : <0x0238ace0> [ hotplug.sh + 0xace0 ]
address : <0x023991ec> [ hotplug.sh + 0x191ec ]
address : <0x02392f94> [ hotplug.sh + 0x12f94 ]
address : <0x023cef4a> [ hotplug.sh + 0x4ef4a ]
address : <0x023cef58> [ hotplug.sh + 0x4ef58 ]
address : <0x023cefba> [ hotplug.sh + 0x4efba ]
~karthik
QuoteReplyEditDelete
2009-12-24 07:47:53 Re: hot plug crash -no memory
Mike Frysinger (UNITED STATES)
Message: 83916
not enough memory is available
QuoteReplyEditDelete
2009-12-24 08:08:54 Re: hot plug crash -no memory
Karthikeyan Jeevanandam (INDIA)
Message: 83918 DMA: 360*4kB 236*8kB 186*16kB 62*32kB 18*64kB 6*128kB 3*256kB 1*512kB
1*1024kB 0*2048kB 1*4096kB 0*8192kB 1*16384kB 0*32768kB = 32992kB
From the above log we could understand that there are "6" blocks
available with 128KB. Then why
"page allocation failure. order:7" should occur.
Please explain us
QuoteReplyEditDelete
2009-12-24 08:27:17 Re: hot plug crash -no memory
Mike Frysinger (UNITED STATES)
Message: 83919
order isnt based on bytes, it's based on pages