diff options
author | Christian König <christian.koenig@amd.com> | 2022-12-13 10:07:36 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-01-25 10:03:36 +0100 |
commit | b49323aa35d502b0d9a7950327f30a1a52eae534 (patch) | |
tree | 7441953fea6e7ba55d6fe287089fbb8bd87527b3 /drivers/gpu/drm/nouveau | |
parent | drm/ttm: stop allocating a dummy resource for pipelined gutting (diff) | |
download | linux-b49323aa35d502b0d9a7950327f30a1a52eae534.tar.xz linux-b49323aa35d502b0d9a7950327f30a1a52eae534.zip |
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
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 288eebc70a67..c2ec91cc845d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1015,9 +1015,6 @@ nouveau_bo_move(struct ttm_buffer_object *bo, bool evict, if (ret) goto out_ntfy; - if (nvbo->bo.pin_count) - NV_WARN(drm, "Moving pinned object %p!\n", nvbo); - if (drm->client.device.info.family < NV_DEVICE_INFO_V0_TESLA) { ret = nouveau_bo_vm_bind(bo, new_reg, &new_tile); if (ret) |