diff options
author | Dave Airlie <airlied@redhat.com> | 2020-09-15 04:34:51 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-09-16 02:35:30 +0300 |
commit | 9e9a153bdf2555a931fd37678a8e44d170a5d943 (patch) | |
tree | 1da6cf699fc948cec069a258edaa55020489e4bb /drivers/gpu/drm/radeon/radeon_mn.c | |
parent | 2040ec970e94dde0b94e200ae9bb8f21a61c928f (diff) | |
download | linux-9e9a153bdf2555a931fd37678a8e44d170a5d943.tar.xz |
drm/ttm: move ttm binding/unbinding out of ttm_tt paths.
Move these up to the bo level, moving ttm_tt to just being
backing store. Next step is to move the bound flag out.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200915024007.67163-6-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mn.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mn.c b/drivers/gpu/drm/radeon/radeon_mn.c index b6293fb91030..eb46d2220236 100644 --- a/drivers/gpu/drm/radeon/radeon_mn.c +++ b/drivers/gpu/drm/radeon/radeon_mn.c @@ -53,7 +53,7 @@ static bool radeon_mn_invalidate(struct mmu_interval_notifier *mn, struct ttm_operation_ctx ctx = { false, false }; long r; - if (!bo->tbo.ttm || !ttm_tt_is_bound(bo->tbo.ttm)) + if (!bo->tbo.ttm || !ttm_bo_tt_is_bound(&bo->tbo)) return true; if (!mmu_notifier_range_blockable(range)) |