gpu/cuda: unmap GPU memory while freeing
authorElena Agostini <eagostini@nvidia.com>
Fri, 29 Apr 2022 14:14:23 +0000 (14:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 May 2022 21:09:49 +0000 (23:09 +0200)
commit0354e8e860389cf412dd051626af39b9a01e6c9c
tree63159299179a2fd1fffa7190207cd263614f2a55
parent2f51bc9c27a4f1da674d66499667155663dcc419
gpu/cuda: unmap GPU memory while freeing

Enable GPU_REGISTERED flag in gpu/cuda driver in the memory list.
If a GPU memory address CPU mapped is freed before being
unmapped, CUDA driver unmaps it before freeing the memory.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
drivers/gpu/cuda/cuda.c