diff options
author | Christian König <christian.koenig@amd.com> | 2020-09-30 12:17:44 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-10-15 13:51:13 +0300 |
commit | 1cf65c45183a6c8b4703675d40e709f7ffed935c (patch) | |
tree | d7ccbadbc5ec0a9b5954d02f209e165a7235692b /drivers/gpu/drm/drm_gem_vram_helper.c | |
parent | 1b4ea4c5980ff3a64607166298269c30a9671d33 (diff) | |
download | linux-1cf65c45183a6c8b4703675d40e709f7ffed935c.tar.xz |
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/
Diffstat (limited to 'drivers/gpu/drm/drm_gem_vram_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_gem_vram_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index ad58d0af5141..b9e7ce1adf25 100644 --- a/drivers/gpu/drm/drm_gem_vram_helper.c +++ b/drivers/gpu/drm/drm_gem_vram_helper.c @@ -981,6 +981,7 @@ static int bo_driver_io_mem_reserve(struct ttm_bo_device *bdev, case TTM_PL_VRAM: mem->bus.offset = (mem->start << PAGE_SHIFT) + vmm->vram_base; mem->bus.is_iomem = true; + mem->bus.caching = ttm_write_combined; break; default: return -EINVAL; |