Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am running a test application to test the writes/reads to spi based fram on PowerPC MPC8313E based board. I am writing 128K data and reading it back and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! charlie_arya's Avatar
    Join Date
    Sep 2009
    Posts
    39

    Question vmap allocation for size 8192 failed


    Hi,

    I am running a test application to test the writes/reads to spi based fram on PowerPC MPC8313E based board. I am writing 128K data and reading it back and comparing it. This is done in a while(1) loop. What I observe is that after 650 iterations, the system hangs. When i ran dmesg command i found this:

    vmap allocation for size 8192 failed: use vmalloc=<size> to increase size.
    Unable to handle kernel paging request for data at address 0x00000000
    Faulting instruction address: 0xc027fe4c
    Oops: Kernel access of bad area, sig: 11 [#1]
    PREEMPT PXM468k
    Modules linked in:
    NIP: c027fe4c LR: c027fe40 CTR: c021a1cc
    REGS: cf9d7e60 TRAP: 0300 Not tainted (2.6.29.2pxm468kcore)
    MSR: 00009032 <EE,ME,IR,DR> CR: 24042082 XER: 20000000
    DAR: 00000000, DSISR: 20000000
    TASK = cf84db20[906] 'e0007000.spi' THREAD: cf9d6000
    GPR00: c027fe40 cf9d7f10 cf84db20 00000000 c0659520 cdca9c20 c021ac6c fffffff9
    GPR08: c04839e8 c0480000 00000000 00000002 24042082 100eb240 0ffc7fc0 0fd5bf39
    GPR16: 00000004 00000024 00000000 00000377 00000001 cf9d6034 cf20d764 cf20d720
    GPR24: 00000200 cf9d6000 00000000 cf20d800 00000000 00000001 ccc05e1c ccc05e48
    Call Trace:
    [cf9d7f10] [c027fe40] 0xc027fe40 (unreliable)
    [cf9d7f20] [c0280670] 0xc0280670
    [cf9d7f60] [c0035d18] 0xc0035d18
    [cf9d7f90] [c0036544] 0xc0036544
    [cf9d7fd0] [c003b028] 0xc003b028
    [cf9d7ff0] [c0012110] 0xc0012110
    Instruction dump:
    7c0004ac 914b0020 7c0004ac 900b0020 7d200124 4bd964cd 38800004 38630c08
    4bd94925 3d20c049 90697198 3d20c048 <80030000> 5400003c 9009f374 90030000
    ---[ end trace 26b7d30f34dd75e6 ]---


    What this error means and how to remove this error?

  2. #2
    Just Joined! charlie_arya's Avatar
    Join Date
    Sep 2009
    Posts
    39
    Also, I am not allocating memory at every iteration. I have defined 3 arrays of 128Kb each globally and using same array in a while loop.

    When I see cat /proc/meminfo before and after running the command, I see following difference and can't think why this is there.

    Before

    VmallocTotal: 737256 kB
    VmallocUsed: 66196 kB
    VmallocChunk: 670692 kB


    After

    VmallocTotal: 737256 kB
    VmallocUsed: 401588 kB
    VmallocChunk: 8 kB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •