summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_bo.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2023-01-25 19:14:37 +0300
committerChristian König <christian.koenig@amd.com>2023-01-25 19:27:51 +0300
commit2847a67d3aa518a29e8a8db01bbec630d3bd5011 (patch)
treee1c86de6ccd2059700240dc1443d0e3fce3d20dc /drivers/gpu/drm/nouveau/nouveau_bo.c
parentfc64adc56b8302ed21189607dd4b4f4719f2c78f (diff)
downloadlinux-2847a67d3aa518a29e8a8db01bbec630d3bd5011.tar.xz
drm/ttm: revert "prevent moving of pinned BOs"
This reverts commit b49323aa35d502b0d9a7950327f30a1a52eae534. This still seems to break i915. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Matthew Auld <matthew.william.auld@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230125155023.105584-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index c2ec91cc845d..288eebc70a67 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -1015,6 +1015,9 @@ 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)