drm/ttm/tt: add wrappers to set tt state.
authorDave Airlie <airlied@redhat.com>
Tue, 15 Sep 2020 00:21:15 +0000 (10:21 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Sep 2020 23:33:24 +0000 (09:33 +1000)
commit7eec915138279d7a83ff8f219846bf7c8ae637c1
treeed3ff19a6a2f97dc13b16034819d257a84f07e29
parent9c3006a4cc1b165652a07727caf7926054f9aa9f
drm/ttm/tt: add wrappers to set tt state.

This adds 2 getters and 4 setters, however unbound and populated
are currently the same thing, this will change, it also drops
a BUG_ON that seems not that useful.

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-2-airlied@gmail.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_mn.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_tt.h