drm/amdgpu: Make contiguous pinning optional
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 25 Jan 2021 22:34:35 +0000 (17:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jan 2021 22:45:10 +0000 (17:45 -0500)
commiteda1068dc995fbc87eee04496a3414372a8ef63d
treeb46500b50e58e297b6b9d42c7c0683b36c688279
parentdcb820d185f50d34d0b8ca21230d8d57e0aca7cc
drm/amdgpu: Make contiguous pinning optional

Enable pinning of VRAM without forcing it to be contiguous. When memory is
already pinned, make sure it's contiguous if requested.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c