]> git.droids-corp.org - dpdk.git/commit
gpudev: fix page alignment in communication list
authorElena Agostini <eagostini@nvidia.com>
Tue, 8 Mar 2022 23:59:47 +0000 (23:59 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 23:14:55 +0000 (00:14 +0100)
commit1fd3de64ff47f8865f9cbd13bb8f20611beb3cfa
treefcbdb91c2412acde2997a369fa3d66e2f908a3a4
parentd78d21b983f215d1425422f955cbd934e48360d3
gpudev: fix page alignment in communication list

Memory allocated for CPU mapping the status flag
in the communication list should be aligned to the
GPU page size, which can be different of CPU page alignment.

The GPU page size is added to the GPU info,
and is used when creating a communication list.

Fixes: 9b8cae4d991e ("gpudev: use CPU mapping in communication list")
Signed-off-by: Elena Agostini <eagostini@nvidia.com>
drivers/gpu/cuda/cuda.c
lib/gpudev/gpudev.c
lib/gpudev/rte_gpudev.h