AnsweredAssumed Answered

Linux kernel hangs after allocating contiguous DMA memory

Question asked by Mihaita Ivascu on Aug 13, 2018
Latest reply on Aug 13, 2018 by igorpadykov

Hello,

 

    I am trying to allocate contiguous DMA memory in device tree as I need to store 5MP camera frames and the dma_alloc_coherent would complain otherwise. Unfortunately after the DMA appol is allocated the kernel hangs

 

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.6.0-xilinx (mivascu@ubuntu) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Mon Aug 13 03:51:10 PDT 2018
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Hurricane Telescope main board (7z035)
[ 0.000000] Ignoring memory range 0x0 - 0x10000000
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Reserved memory: created CMA memory pool at 0x10000000, size 64 MiB
[ 0.000000] Reserved memory: initialized node buffer@0, compatible id shared-dma-pool
[ 0.000000] Memory policy: Data cache writealloc

 

   I would appreciate any suggestion related to what could be the problem or how to debug it

 

Thanks,

      Mihaita

Outcomes