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.

ezsdk dm814x share memory leak issue

Hello TI, 

I change memory map and it is working correct according to e2e post : https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/487685

Now If I reset application on camera connect and disconnect then I see memory leak in share region 2. I see this issue only if audio enable.

I verified this with sys_top utility as following.

Only Video and after camera disconnect and connect:

Firmware Version: UNKNOWN/INTERNAL VERSION
0 Heap:Size 1572864 Used 170768 MaxU 477264 Free 1402096 LarF 1402096
1 Heap:Size 25165824 Used 0 MaxU 5297040 Free 25165824 LarF 25165824
Num SR :4
SRIn 0 :PhyA 0x9f700000 Virt 0x0 Size 0x200000
SRHeap:Size 2095488 Used 28160 MaxU 29312 Free 2067328 LarF 2067328
SRIn 1 :PhyA 0x9a100000 Virt 0x0 Size 0x100000
SRHeap:Size 1048448 Used 0 MaxU 0 Free 1048448 LarF 1048448
SRIn 2 :PhyA 0x9fd00000 Virt 0x0 Size 0x1fc00000
SRHeap:Size 532676480 Used 0 MaxU 102292224 Free 532676480 LarF 532676480

MC.HDVPSS:

Firmware Version: UNKNOWN/INTERNAL VERSION
0 Heap:Size 2097152 Used 166672 MaxU 816120 Free 1930480 LarF 1930480
1 Heap:Size 28311552 Used 0 MaxU 211968 Free 28311552 LarF 28311552
Num SR :4
SRIn 0 :PhyA 0x9f700000 Virt 0x0 Size 0x200000
SRHeap:Size 2095488 Used 28160 MaxU 29312 Free 2067328 LarF 2067328
SRIn 1 :PhyA 0x9a100000 Virt 0x0 Size 0x100000
SRHeap:Size 1048448 Used 0 MaxU 0 Free 1048448 LarF 1048448
SRIn 2 :PhyA 0x9fd00000 Virt 0x0 Size 0x1fc00000
SRHeap:Size 532676480 Used 0 MaxU 102292224 Free 532676480 LarF 532676480

(Video + Audio) and after camera disconnect and connect:

Firmware Version: UNKNOWN/INTERNAL VERSION
0 Heap:Size 1572864 Used 170768 MaxU 477264 Free 1402096 LarF 1402096
1 Heap:Size 25165824 Used 0 MaxU 5297040 Free 25165824 LarF 25165824
Num SR :4
SRIn 0 :PhyA 0x9f700000 Virt 0x0 Size 0x200000
SRHeap:Size 2095488 Used 28160 MaxU 28160 Free 2067328 LarF 2067328
SRIn 1 :PhyA 0x9a100000 Virt 0x0 Size 0x100000
SRHeap:Size 1048448 Used 0 MaxU 0 Free 1048448 LarF 1048448
SRIn 2 :PhyA 0x9fd00000 Virt 0x0 Size 0x1fc00000
SRHeap:Size 532676480 Used 102292224 MaxU 102292224 Free 430384256 LarF 430384256

MC.HDVPSS:

Firmware Version: UNKNOWN/INTERNAL VERSION
0 Heap:Size 2097152 Used 166672 MaxU 816136 Free 1930480 LarF 1930480
1 Heap:Size 28311552 Used 0 MaxU 211968 Free 28311552 LarF 28311552
Num SR :4
SRIn 0 :PhyA 0x9f700000 Virt 0x0 Size 0x200000
SRHeap:Size 2095488 Used 28160 MaxU 29312 Free 2067328 LarF 2067328
SRIn 1 :PhyA 0x9a100000 Virt 0x0 Size 0x100000
SRHeap:Size 1048448 Used 0 MaxU 0 Free 1048448 LarF 1048448
SRIn 2 :PhyA 0x9fd00000 Virt 0x0 Size 0x1fc00000
SRHeap:Size 532676480 Used 102292224 MaxU 102292224 Free 430384256 LarF 430384256

From Above print we can see that if Audio enable then DSP shared memory does not getting freed. Please advice us to resolve this issue.

Thanks,

Jignesh Patel