Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - resmgr_msgreply errors: (1 Item)
   
resmgr_msgreply errors  
Hi,

We're using resmgr_msgreply for a custom driver running on Arm A53, targeting PS DMA on Zynq.
QNX 7.0.1 on custom bsp from QNX. 

The buffer passed to resmgr_msgreply is pre-allocated via mmap64 to be physically contiguous.  We need this, as the mem 
is used by the DMA.  resmgr_msgreply is called from a separate thread with previously saved receive id in 
resmgr_context_t. 

buffer = mmap64(
      0,                                                                        
      buf_size,                                                            
      PROT_READ | PROT_WRITE,                         
      MAP_PRIVATE | MAP_PHYS | MAP_ANON,   
      NOFD,                                                               
      0);                                                                      

Seeing some odd behavior: 
1. Sometimes EENDIAN errno is set after this call.  
2. Sometimes getting segmentation fault. 
3. Other times it works just fine.  

Any thoughts on what could be causing these non-repeatable issues?
thx,
---