drm/ttm: drop unbind callback.
authorDave Airlie <airlied@redhat.com>
Tue, 20 Oct 2020 01:03:16 +0000 (11:03 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Oct 2020 03:43:54 +0000 (13:43 +1000)
The drivers now control this, so drop unbinding.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201020010319.1692445-5-airlied@gmail.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_bo_driver.h

index 56f16bdba936704b852e6db38098746f4fd39d3b..d7a2f912055ddc81daf4a22392783eb926e16844 100644 (file)
@@ -1722,7 +1722,6 @@ static struct ttm_bo_driver amdgpu_bo_driver = {
        .ttm_tt_populate = &amdgpu_ttm_tt_populate,
        .ttm_tt_unpopulate = &amdgpu_ttm_tt_unpopulate,
        .ttm_tt_bind = &amdgpu_ttm_backend_bind,
-       .ttm_tt_unbind = &amdgpu_ttm_backend_unbind,
        .ttm_tt_destroy = &amdgpu_ttm_backend_destroy,
        .eviction_valuable = amdgpu_ttm_bo_eviction_valuable,
        .evict_flags = &amdgpu_evict_flags,
index 1ccd9ea6da95cf9d0833cb73f15f71050064f7e3..43e6e089319e0727c6ab38049f7cdc30ca7e1a77 100644 (file)
@@ -1394,7 +1394,6 @@ struct ttm_bo_driver nouveau_bo_driver = {
        .ttm_tt_populate = &nouveau_ttm_tt_populate,
        .ttm_tt_unpopulate = &nouveau_ttm_tt_unpopulate,
        .ttm_tt_bind = &nouveau_ttm_tt_bind,
-       .ttm_tt_unbind = &nouveau_ttm_tt_unbind,
        .ttm_tt_destroy = &nouveau_ttm_tt_destroy,
        .eviction_valuable = ttm_bo_eviction_valuable,
        .evict_flags = nouveau_bo_evict_flags,
index e3ed20215f1808c75f76caae19513722074874d0..95c4f2c7ab79afcaa020992af5a052db0dc20e80 100644 (file)
@@ -113,12 +113,6 @@ static int qxl_ttm_backend_bind(struct ttm_bo_device *bdev,
        return -1;
 }
 
-static void qxl_ttm_backend_unbind(struct ttm_bo_device *bdev,
-                                  struct ttm_tt *ttm)
-{
-       /* Not implemented */
-}
-
 static void qxl_ttm_backend_destroy(struct ttm_bo_device *bdev,
                                    struct ttm_tt *ttm)
 {
@@ -180,7 +174,6 @@ static struct ttm_bo_driver qxl_bo_driver = {
        .ttm_tt_create = &qxl_ttm_tt_create,
        .ttm_tt_bind = &qxl_ttm_backend_bind,
        .ttm_tt_destroy = &qxl_ttm_backend_destroy,
-       .ttm_tt_unbind = &qxl_ttm_backend_unbind,
        .eviction_valuable = ttm_bo_eviction_valuable,
        .evict_flags = &qxl_evict_flags,
        .move = &qxl_bo_move,
index 42c85afe79555be9c0d69d0ee41ffc6c2ecc88e3..914b2ca8693632120744dfb7e89d31803c69d913 100644 (file)
@@ -817,7 +817,6 @@ static struct ttm_bo_driver radeon_bo_driver = {
        .ttm_tt_populate = &radeon_ttm_tt_populate,
        .ttm_tt_unpopulate = &radeon_ttm_tt_unpopulate,
        .ttm_tt_bind = &radeon_ttm_tt_bind,
-       .ttm_tt_unbind = &radeon_ttm_tt_unbind,
        .ttm_tt_destroy = &radeon_ttm_tt_destroy,
        .eviction_valuable = ttm_bo_eviction_valuable,
        .evict_flags = &radeon_evict_flags,
index cbc74a320db28eae3abd2f5b292fb6a1b81c7f00..593e55879019be3967dc562e612619cf62f919eb 100644 (file)
@@ -1496,8 +1496,3 @@ int ttm_bo_tt_bind(struct ttm_buffer_object *bo, struct ttm_resource *mem)
 {
        return bo->bdev->driver->ttm_tt_bind(bo->bdev, bo->ttm, mem);
 }
-
-void ttm_bo_tt_unbind(struct ttm_buffer_object *bo)
-{
-       bo->bdev->driver->ttm_tt_unbind(bo->bdev, bo->ttm);
-}
index 1d220a9794e63ed1b753edd8c0516ec9b6d320f2..6e07ea982961e63f34a4528fed0cc8bd6fd5ade8 100644 (file)
@@ -760,7 +760,6 @@ struct ttm_bo_driver vmw_bo_driver = {
        .ttm_tt_populate = &vmw_ttm_populate,
        .ttm_tt_unpopulate = &vmw_ttm_unpopulate,
        .ttm_tt_bind = &vmw_ttm_bind,
-       .ttm_tt_unbind = &vmw_ttm_unbind,
        .ttm_tt_destroy = &vmw_ttm_destroy,
        .eviction_valuable = ttm_bo_eviction_valuable,
        .evict_flags = vmw_evict_flags,
index 81a1618b9535053a53fecd1779328707dea9a61c..fbbcf10670c1acee24b9e784908b2aa999f35f91 100644 (file)
@@ -104,17 +104,6 @@ struct ttm_bo_driver {
         */
        int (*ttm_tt_bind)(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *bo_mem);
 
-       /**
-        * ttm_tt_unbind
-        *
-        * @bdev: Pointer to a ttm device
-        * @ttm: Pointer to a struct ttm_tt.
-        *
-        * Unbind previously bound backend pages. This function should be
-        * able to handle differences between aperture and system page sizes.
-        */
-       void (*ttm_tt_unbind)(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
-
        /**
         * ttm_tt_destroy
         *
@@ -647,13 +636,6 @@ pgprot_t ttm_io_prot(struct ttm_buffer_object *bo, struct ttm_resource *res,
  */
 int ttm_bo_tt_bind(struct ttm_buffer_object *bo, struct ttm_resource *mem);
 
-/**
- * ttm_bo_tt_bind
- *
- * Unbind the object tt from a memory resource.
- */
-void ttm_bo_tt_unbind(struct ttm_buffer_object *bo);
-
 /**
  * ttm_bo_tt_destroy.
  */