]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb065bc9bab20b131839062962f529c47fb60579c
tree6398b6c48488d2c185dd387bef9e6f90e275fb43
parent924e58d564b3927bf451a294180769c0a0040f95
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