]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fcdcb9102c0021eb00361ce822255495345f7e6
treec96db402414813d2002866a7533024ec512c655b
parente309f7651ec3365c81ffa89be8bdf873e6466f2d
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