Re: [PATCH] gpu/cuda: GPU_REGISTERED to distinguish GPU memory CPU mapped

2022-05-24 Thread Thomas Monjalon
29/04/2022 16:14, eagost...@nvidia.com: > From: Elena Agostini > > 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 Applied

[PATCH] gpu/cuda: GPU_REGISTERED to distinguish GPU memory CPU mapped

2022-04-29 Thread eagostini
From: Elena Agostini 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 --- drivers/gpu/cuda/cuda.c | 77

[PATCH] gpu/cuda: GPU_REGISTERED to distinguish GPU memory CPU mapped

2022-04-29 Thread eagostini
From: Elena Agostini 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 --- drivers/gpu/cuda/cuda.c | 78 +---