]> 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)
commitee58d46cff12126a94ee34016ae023618a9c7fcb
tree5a9ade07bf0fc7342a4751bd248e75e04981ebca
parent6928debe5059b258247a727cd8e2331846d6e9b6
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