drm/ttm: prevent moving of pinned BOs
authorChristian König <christian.koenig@amd.com>
Tue, 13 Dec 2022 09:07:36 +0000 (10:07 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 25 Jan 2023 09:03:36 +0000 (10:03 +0100)
commitb49323aa35d502b0d9a7950327f30a1a52eae534
tree7441953fea6e7ba55d6fe287089fbb8bd87527b3
parent4110872b8115aab2adb3a52149c144d8465440de
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20230124125726.13323-4-christian.koenig@amd.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