OSDN Git Service

drm/ttm: add caching state to ttm_bus_placement
authorChristian König <christian.koenig@amd.com>
Wed, 30 Sep 2020 09:17:44 +0000 (11:17 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 15 Oct 2020 10:51:13 +0000 (12:51 +0200)
commit1cf65c45183a6c8b4703675d40e709f7ffed935c
treed7ccbadbc5ec0a9b5954d02f209e165a7235692b
parent1b4ea4c5980ff3a64607166298269c30a9671d33
drm/ttm: add caching state to ttm_bus_placement

And implement setting it up correctly in the drivers.

This allows getting rid of the placement flags for this.

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/394254/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_resource.h