]> git.droids-corp.org - dpdk.git/commit
gpudev: use CPU mapping in communication list
authorElena Agostini <eagostini@nvidia.com>
Tue, 22 Feb 2022 00:22:33 +0000 (00:22 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 19:08:52 +0000 (20:08 +0100)
commit9b8cae4d991ee4fb0faf92d8994879d6776df181
tree99a73a7cace8d65d7248a9ce5f6106a1264c8dc7
parent77f40e04d7c50832c2edf7dba2b923b6058aaf09
gpudev: use CPU mapping in communication list

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@nvidia.com>
app/test-gpudev/main.c
doc/guides/prog_guide/gpudev.rst
lib/gpudev/gpudev.c
lib/gpudev/rte_gpudev.h
lib/gpudev/version.map