This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5726: Checking CMEM pool used by DSP

Part Number: AM5726

Tool/software: Linux

Hello, 

We are using AM5726 and application which is using the DSP.

For that we are loading cmem.ko in which we made a pool.

Our application is going to stop after specific iteration(like 50 times).

We need to check CMEM after each and every iteration. 

Is their any specific way to check free/used cmem after every iteration?

Please do the needful.

Regards,

Ronak

  • Hi, Ronak,

    Sorry I was out of office last Friday. The only cmem info we have is /proc/cmem which shows the busy and free buffers in the pools. You can take a look at the function of cmem_seq_show() in cmem driver.


    root@am57xx-evm:/proc# cat cmem

    Block 0: Pool 0: 1 bufs size 0xc000000 (0xc000000 requested)

    Pool 0 busy bufs:

    Pool 0 free bufs:
    id 0: phys addr 0xa0000000
    root@am57xx-evm:/proc#