]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: remove TTM_MEMTYPE_FLAG_CMA
authorChristian König <christian.koenig@amd.com>
Wed, 15 Jul 2020 12:52:05 +0000 (14:52 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 21 Jul 2020 14:21:43 +0000 (16:21 +0200)
commitfd6d6caefb31bf4c03786c6bf5e4ada24fa9833f
tree5a9ade07bf0fc7342a4751bd248e75e04981ebca
parentdc32f7f8d3404f467391a05b31389c46f48dd78c
drm/ttm: remove TTM_MEMTYPE_FLAG_CMA

The original intention was to avoid CPU page table unmaps
when BOs move between the GTT and SYSTEM domain.

The problem is that this never correctly handled changes
in the caching attributes or backing pages.

Just drop this for now and simply unmap the CPU page
tables in all cases.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/378240/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_bo_driver.h