summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-09-17 05:20:48 +0200
committerDave Airlie <airlied@redhat.com>2020-09-17 22:14:41 +0200
commit7626168fd132009c79a0457bccc58014abc738f5 (patch)
tree963660ce229de967db864207c79d913b139f9cde /include/drm
parentdrm/ttm: protect against reentrant bind in the drivers (diff)
downloadlinux-7626168fd132009c79a0457bccc58014abc738f5.tar.xz
linux-7626168fd132009c79a0457bccc58014abc738f5.zip
drm/ttm: flip tt destroy ordering.
Call the driver first and have it call the common code cleanup. This is useful later to fix unbind. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200917043040.146575-3-airlied@gmail.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_tt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
index 4e906e32d08c..75208c0a0cac 100644
--- a/include/drm/ttm/ttm_tt.h
+++ b/include/drm/ttm/ttm_tt.h
@@ -156,6 +156,13 @@ void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma);
void ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
/**
+ * ttm_tt_destroy_common:
+ *
+ * Called from driver to destroy common path.
+ */
+void ttm_tt_destroy_common(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
+
+/**
* ttm_tt_swapin:
*
* @ttm: The struct ttm_tt.