summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/qxl/qxl_ttm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-10-21 07:40:29 +0300
committerDave Airlie <airlied@redhat.com>2020-10-22 03:11:49 +0300
commit6a6e5988a2657cd0c91f6f1a3e7d194599248b6d (patch)
tree72c3fe530998ab40e2ea678f21f93125a6ced31a /drivers/gpu/drm/qxl/qxl_ttm.c
parent439c3b01b87c39c3b61c841dee23c0337087dfcb (diff)
downloadlinux-6a6e5988a2657cd0c91f6f1a3e7d194599248b6d.tar.xz
drm/ttm: replace last move_notify with delete_mem_notify
The move notify callback is only used in one place, this should be removed in the future, but for now just rename it to the use case which is to notify the driver that the GPU memory is to be deleted. Drivers can be cleaned up after this separately. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201021044031.1752624-2-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_ttm.c')
-rw-r--r--drivers/gpu/drm/qxl/qxl_ttm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index 1cc3c14bc684..b52a4563b47b 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -166,6 +166,11 @@ out:
return ret;
}
+static void qxl_bo_delete_mem_notify(struct ttm_buffer_object *bo)
+{
+ qxl_bo_move_notify(bo, false, NULL);
+}
+
static struct ttm_bo_driver qxl_bo_driver = {
.ttm_tt_create = &qxl_ttm_tt_create,
.ttm_tt_destroy = &qxl_ttm_backend_destroy,
@@ -173,7 +178,7 @@ static struct ttm_bo_driver qxl_bo_driver = {
.evict_flags = &qxl_evict_flags,
.move = &qxl_bo_move,
.io_mem_reserve = &qxl_ttm_io_mem_reserve,
- .move_notify = &qxl_bo_move_notify,
+ .delete_mem_notify = &qxl_bo_delete_mem_notify,
};
static int qxl_ttm_init_mem_type(struct qxl_device *qdev,