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.

[OMAPL137] Memory_contigAlloc failure

I'm trying to debug some of my code. I have dsplink built with debug. I think I have cmem built with debug (although I don't see all the messages that I'm expecting, so that may not work the way I think it does.) CE_DEBUG=2.

As you can see in the output below, I see failures in cmemk. I'd like to figure out what causes those. (0x7cee7 is indeed in the cmem areas of memory, although I'm not sure how cmem works, so I'm not sure how they got there or what that means). Here's the concern. The cmem call is failing to get the physical address, but I get no indication that the call failed. That is, I still get a 0x40023000 (instead of a NULL) returned from Memory_contigAlloc. If the call failed, shouldn't I get an indication back? What if this happens in my application. Is there some way for me to tell that the allocation failed?

Also, if anyone has seen 7cee7 before, please let me know what the context was/is. Thanks.

@3,332,472us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Allocate for Status
@3,336,849us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_alloc(340) = 0x40022000.
@3,337,259us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_getPhys(0x40022000) = 0xc3dfd000.
@3,337,485us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Memory_contigAlloc returned 0x40022000 for staticPtr_Status
@3,337,670us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Allocate for DynParams
@3,345,838us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_alloc(2592) = 0x40023000.
@3,346,243us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_getPhys(0x40023000CMEMK Error: get_phys: Unable to find phys addr for 0x0007cee7
) = 0xc3dfc000. CMEMK Error: get_phys: get_user_pages() failed: -14

@3,346,470us: [CMEMK Error: GETPHYS: Failed to convert virtual 0x7cee7 to physical.
+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Memory_contigAlloc returned 0x40023000 for staticPtr_DynParams
@3,677,419us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Allocate for VersionBuf
@3,685,447us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_alloc(128) = 0x411d9000.
@3,685,891us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_getPhys(0x411d9000) = 0xc3dfe000.
@3,686,121us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Memory_contigAlloc returned 0x411d9000 for staticPtr_VersionBuf
@3,686,306us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop-> VersionBufPtr = 0x411d9000, StatusPtr = 0x40022000, DynParamsPtr = 0x40023000
@3,687,605us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_alloc(42208) = 0x411da000.
@3,687,997us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_getPhys(0x411da000) = 0xc3d7c000.
@3,688,217us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Memory_contigAlloc returned 0x411da000 for results
@3,688,453uCMEMK Error: get_phys: Unable to find phys addr for 0x0007cee7
s: [+1 T:0x4001cCMEMK Error: get_phys: get_user_pages() failed: -14
f50] mycompany.z2_aCMEMK Error: GETPHYS: Failed to convert virtual 0x7cee7 to physical.
pps.vqm_results - Allocating forCMEMK Error: get_phys: Unable to find phys addr for 0x0007cee7
 program storageCMEMK Error: get_phys: get_user_pages() failed: -14
: size = 800
@3CMEMK Error: GETPHYS: Failed to convert virtual 0x7cee7 to physical.
,693,584us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_alloc(800) = 0x411fa000.
@3,694,037us: [+4 T:0x4001cf50] OM - Memory_contigAlloc> CMEM_getPhys(0x411fa000) = 0xc3dff000.
@3,694,280us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Memory_contigAlloc returned 0x411fa000 for program
@3,694,473us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - processLoop->Call SetVQM_SPTP_Params
@3,694,628us: [+0 T:0x4001cf50] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_control> Enter (handle=0x4f818, id=1, dynParams=0x40023000 (size=0xa20), status=0x40022000 (size=0x154)
@3,694,826us: [+5 T:0x4001cf50] CV - VISA_allocMsg> Allocating message for messageId=0x0002cf10
CMEM Error: getPhys: Failed to get physical address of 0x7cee7