drm/ttm: set the tt caching state at creation time
authorChristian König <christian.koenig@amd.com>
Wed, 30 Sep 2020 08:38:48 +0000 (10:38 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 15 Oct 2020 10:50:40 +0000 (12:50 +0200)
commit1b4ea4c5980ff3a64607166298269c30a9671d33
treec96db402414813d2002866a7533024ec512c655b
parent070c7fa58bce986eb7a504390dd429edcb068f44
drm/ttm: set the tt caching state at creation time

All drivers can determine the tt caching state at creation time,
no need to do this on the fly during every validation.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://patchwork.freedesktop.org/patch/394253/
13 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_agp_backend.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_ttm_buffer.c
include/drm/ttm/ttm_caching.h [new file with mode: 0644]
include/drm/ttm/ttm_tt.h