diff options
author | Dave Airlie <airlied@redhat.com> | 2020-10-19 17:13:10 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-10-20 04:54:01 +1000 |
commit | 87ed94238cb57cacb3d2b889f8e37e05a4da9c71 (patch) | |
tree | 6398b6c48488d2c185dd387bef9e6f90e275fb43 /include/drm/ttm | |
parent | cf40c66005920a6d4932a1a259076459464adf32 (diff) | |
download | lwn-87ed94238cb57cacb3d2b889f8e37e05a4da9c71.tar.gz lwn-87ed94238cb57cacb3d2b889f8e37e05a4da9c71.zip |
drm/ttm: refactor out common code to setup a new tt backed resource
This factors out the code to setup non-system tt.
The same code was used twice in the move paths.
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201019071314.1671485-2-airlied@gmail.com
Diffstat (limited to 'include/drm/ttm')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 3dbc11eb6787..1f4d2b1febd0 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -593,6 +593,10 @@ int ttm_bo_move_ttm(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem); +int ttm_bo_move_to_new_tt_mem(struct ttm_buffer_object *bo, + struct ttm_operation_ctx *ctx, + struct ttm_resource *new_mem); + /** * ttm_bo_move_memcpy * |