drm/amdgpu: add AMDGPU_VM_NOALLOC v2
authorChristian König <christian.koenig@amd.com>
Fri, 6 May 2022 11:11:41 +0000 (13:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:34 +0000 (14:56 -0400)
commitb6c65a2c92aa880e8050a91ca83288b85fc32575
tree825ada904296ea17d02880044c79cef7b0aa3cd8
parentfab2cc8335839867a3db38f195441b9c7c6460f6
drm/amdgpu: add AMDGPU_VM_NOALLOC v2

Add the AMDGPU_VM_NOALLOC flag to let userspace control MALL allocation.

v2: also add the flag to the allowed flags.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
include/uapi/drm/amdgpu_drm.h