DOCA DPA Completion Event Synchronization Problems

Hello, I am running into an issue with DOCA DPA with the doca_dpa_dev_sync_event_update_add() function.

I have run create_doca_dpa_completion_sync_event() on the host, received the completion event handle, passed it to a thread on DPA, but when I run doca_dpa_dev_sync_event_update_add() on the handle I keep getting this error:

[4160887] process_call 601 - Fatal error (0x2) on RPC polling
[00:07:28:077570][2773807008][DOCA][ERR][dpa_launcher.cpp:842] Flexio RPC failed
[00:07:28:077591][2773807008][DOCA][ERR][dpa_kernel_launch_sample.c:404][kernel_launch] Failed to trigger threads via RPC: DOCA Driver call failure
[00:07:30:081979][2773807008][DOCA][ERR][dpa_kernel_launch_main.c:96][main] kernel_launch() encountered an error: DOCA Driver call failure
[4160887] heap_destroy 377 - Failed to destroy heap, not all device heap memory was freed
[4160887] flexio_process_destroy 1303 - Failed to release prm heap memory
[4160887] flexio_process_destroy 1310 - Failed to destroy process PRM object (err = 22)
[00:07:30:093116][2773807008][DOCA][ERR][dpa_runtime.cpp:564] Flexio process destroy failed
[00:07:30:252746][2773807008][DOCA][INF][dpa_kernel_launch_main.c:114][main] Sample finished with errors

It runs fine if I were to substitute doca_dpa_dev_sync_event_update_add() with doca_dpa_dev_sync_event_update_set() instead, but I need the add function for thread barrier synchronization. I haven’t found any resources online. Does anyone know why this is happening specifically for this add function?

Thank you

Hi denischen242,

Thank you for posting your query on NVIDIA Community.

Please note that based on the complexity of issue described, a valid support entitlement will be required to debug this issue. However, I would like to share that there have been fixes/improvements in latest DOCA drivers related to this area and would like to recommend upgrading to the latest version of DOCA 3.2.1 and validate the behavior.

If there an active entitlement/support contract in place, please do not hesitate to open a support ticket by logging into the ESP Portal and submitting a new case.

For contracts, please reach out to Networking-Contracts@nvidia.com

Thanks,
NVEX Networking Technical Support.