[PATCH v2] gpudev: use CPU map functionality in comm list

Thomas Monjalon thomas at monjalon.net
Tue Feb 22 19:46:44 CET 2022


22/02/2022 01:22, eagostini at nvidia.com:
> From: Elena Agostini <eagostini at nvidia.com>
> 
> rte_gpu_mem_cpu_map() exposes a GPU memory area to the CPU.
> In gpudev communication list this is useful to store the
> status flag.
> 
> A communication list status flag allocated on GPU memory
> and mapped for CPU visibility can be updated by CPU and polled
> by a GPU workload.
> 
> The polling operation is more frequent than the CPU update operation.
> Having the status flag in GPU memory reduces the GPU workload polling
> latency.
> 
> If CPU mapping feature is not enabled, status flag resides in
> CPU memory registered so it's visible from the GPU.
> 
> To facilitate the interaction with the status flag, this patch
> provides also the set/get functions for it.
> 
> Signed-off-by: Elena Agostini <eagostini at nvidia.com>

[...]
>   * @param ptr
> - *   Pointer to the GPU memory area to be unmapped.
> + *   Pointer to the memory area to be unmapped.

rebase issue: that reverts another commit sent the same day. I will skip

[...]
>  #endif /* RTE_GPUDEV_H */
> +

Will remove lines added at the end of 2 files.

Applied, thanks.




More information about the dev mailing list