Bootmem failed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm having trouble with alloc_bootmem_pages() and a 2.6.18 kernel (oh, yes, 
it's veeery old, I'm stuck with it because of some hw specific 
drivers/patches).
I'm trying anyway to get an answer of my problem.

What I need to do is allocate 10MB with alloc_bootmem() functions, doing 
something really simple:

pointer = alloc_bootmem_pages( TENMEGABYTES );

and below there's the output.
any ideas? Someone knows if 2.6.18 had issues with alloc_bootmem? 
Should the size value be page aligned?

Thanks in advance.

[    0.830000] Unable to handle kernel NULL pointer dereference at virtual 
address 00000000
[    0.840000] pgd = c0004000
[    0.850000] [00000000] *pgd=00000000
[    0.850000] Internal error: Oops: 5 [#1]
[    0.850000] Modules linked in:
[    0.850000] CPU: 0
[    0.850000] PC is at _find_first_zero_bit_le+0xc/0x2c
[    0.850000] LR is at __alloc_bootmem_core+0x144/0x364
[    0.850000] pc : [<c011daf8>]    lr : [<c001d2e8>]    Not tainted
[    0.850000] sp : c03cbec8  ip : 00000000  fp : c03cbf0c
[    0.850000] r10: 00979008  r9 : 00005000  r8 : 00000000
[    0.850000] r7 : 00001000  r6 : 00000001  r5 : c02e27bc  r4 : 00085000
[    0.850000] r3 : 00000000  r2 : 00000000  r1 : 00005000  r0 : 00000000
[    0.850000] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
[    0.850000] Control: 5317F
[    0.850000] Table: 80004000  DAC: 00000017
[    0.850000] Process swapper (pid: 1, stack limit = 0xc03ca258)
[    0.850000] Stack: (0xc03cbec8 to 0xc03cc000)
[    0.850000] bec0:                   c00a4164 ffffffff 00000000 fffff000 
0000097a 00000000 
[    0.850000] bee0: c027b204 c02e27bc bfffffff 00001000 00979008 00000000 
00000000 c026d15c 
[    0.850000] bf00: c03cbf3c c03cbf10 c001d604 c001d1b4 00000000 c03cbf20 
00979008 c02f9cd4 
[    0.850000] bf20: 00000000 c02f9cd4 0000c000 ffffffff c03cbf54 c03cbf40 
c001d660 c001d5d8 
[    0.850000] bf40: c002300c c049f600 c03cbf9c c03cbf58 c0023038 c001d658 
c049f600 000000fe 
[    0.850000] bf60: 40547900 c03cbf70 c0034d58 c00348f4 c03cbf8c 00000000 
c0029a14 c03ca000 
[    0.850000] bf80: 00000000 c03cbfa0 00000000 c0029b80 c03cbff4 c03cbfa0 
c002c0c4 c0022f34 
[    0.850000] bfa0: 00000000 c03cbfb0 c002cee8 c002f20c 00000000 00000000 
c002c028 c0043c58 
[    0.850000] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 
[    0.850000] bfe0: 00000000 00000000 00000000 c03cbff8 c0043c58 c002c038 
74736974 00736369 
[    0.850000] Backtrace: 
[    0.850000] [<c001d1a4>] (__alloc_bootmem_core+0x0/0x364) from 
[<c001d604>] (__alloc_bootmem_nopanic+0x3c/0x80)
[    0.850000] [<c001d5c8>] (__alloc_bootmem_nopanic+0x0/0x80) from 
[<c001d660>] (__alloc_bootmem+0x18/0x3c)
[    0.850000] [<c001d648>] (__alloc_bootmem+0x0/0x3c) from [<c0023038>] 
(acquisition_init+0x114/0x2c4)
[    0.850000]  r4 = C049F600 
[    0.850000] [<c0022f24>] (mymodule_init+0x0/0x2c4) from [<c002c0c4>] 
(init+0x9c/0x2d8)
[    0.850000] [<c002c028>] (init+0x0/0x2d8) from [<c0043c58>] 
(do_exit+0x0/0x940)
[    0.850000] Code: e49df008 e3310000 0a000006 e3a02000 (e7d031a2) 
[    0.850000]  <0>Kernel panic - not syncing: Attempted to kill init!
[    0.870000] [<c00318fc>] (dump_stack+0x0/0x24) from [<c00407e0>] 
(panic+0x54/0x124)
[    0.880000] [<c004078c>] (panic+0x0/0x124) from [<c0043ce0>] 
(do_exit+0x88/0x940)
[    0.890000]  r3 = C03C8BE0  r2 = C03CA000  r1 = 60000013  r0 = C0225890
[    0.890000] [<c0043c58>] (do_exit+0x0/0x940) from [<c00316f0>] 
(die+0x348/0x3b4)
[    0.900000] [<c00313a8>] (die+0x0/0x3b4) from [<c0033a20>] 
(__do_kernel_fault+0x6c/0x7c)
[    0.910000] [<c00339b4>] (__do_kernel_fault+0x0/0x7c) from [<c0033c9c>] 
(do_page_fault+0x26c/0x294)
[    0.920000]  r7 = C03C8BE0  r6 = 00000005  r5 = C0268304  r4 = FFFFFFFF
[    0.920000] [<c0033a30>] (do_page_fault+0x0/0x294) from [<c0033d60>] 
(do_translation_fault+0x18/0xa8)
[    0.930000] [<c0033d48>] (do_translation_fault+0x0/0xa8) from 
[<c0033e48>] (do_DataAbort+0x3c/0xa0)
[    0.940000]  r5 = C0268304  r4 = FFFFFFFF 
[    0.950000] [<c0033e0c>] (do_DataAbort+0x0/0xa0) from [<c002c9ec>] 
(__dabt_svc+0x4c/0x60)
[    0.950000]  r8 = 00000000  r7 = 00001000  r6 = 00000001  r5 = C03CBEB4
[    0.960000]  r4 = FFFFFFFF 
[    0.960000] [<c001d1a4>] (__alloc_bootmem_core+0x0/0x364) from 
[<c001d604>] (__alloc_bootmem_nopanic+0x3c/0x80)
[    0.970000] [<c001d5c8>] (__alloc_bootmem_nopanic+0x0/0x80) from 
[<c001d660>] (__alloc_bootmem+0x18/0x3c)
[    0.980000] [<c001d648>] (__alloc_bootmem+0x0/0x3c) from [<c0023038>] 
(acquisition_init+0x114/0x2c4)
[    0.990000]  r4 = C049F600 
[    1.000000] [<c0022f24>] (mymodule_init+0x0/0x2c4) from [<c002c0c4>] 
(init+0x9c/0x2d8)
[    1.000000] [<c002c028>] (init+0x0/0x2d8) from [<c0043c58>] 
(do_exit+0x0/0x940)
[    1.010000] ---------------------------
[    1.020000] | preempt count: 00000001 ]
[    1.020000] | 1-level deep critical section nesting:
[    1.020000] ----------------------------------------
[    1.030000] .. [<c00407a8>] .... panic+0x1c/0x124
[    1.030000] .....[<c0043ce0>] ..   ( <= do_exit+0x88/0x940)


-- 
Andrea Gasparini 
---- ImaVis S.r.l. ----
web: www.imavis.com
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux