Jignesh Desai
10/16/2019 11:46 AM
post120052
|
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,
---
|
|
|