drm/ttm: prevent moving of pinned BOs
authorChristian König <christian.koenig@amd.com>
Mon, 30 Jan 2023 12:06:36 +0000 (12:06 +0000)
committerChristian König <christian.koenig@amd.com>
Mon, 6 Feb 2023 11:10:17 +0000 (12:10 +0100)
commitf87c1f0b7b79b7a4f165750d1884da1fd29ae93c
treee92d41475e1940331e4c0cba2be1253dd931b88b
parentc7ea16f6a47f9b6eca4e9cdcab8d1f587ea9e484
drm/ttm: prevent moving of pinned BOs

We have checks for this in the individual drivers move callback, but
it's probably better to generally forbid that on a higher level.

Also stops exporting ttm_resource_compat() since that's not necessary
any more after removing the extra checks in vmwgfx.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230130120636.63765-6-matthew.auld@intel.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_resource.c
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c