drm/ttm: refactor out common code to setup a new tt backed resource
authorDave Airlie <airlied@redhat.com>
Mon, 19 Oct 2020 07:13:10 +0000 (17:13 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Oct 2020 18:54:01 +0000 (04:54 +1000)
commit87ed94238cb57cacb3d2b889f8e37e05a4da9c71
tree6398b6c48488d2c185dd387bef9e6f90e275fb43
parentcf40c66005920a6d4932a1a259076459464adf32
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
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo_driver.h