OSDN Git Service

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)
commitf5a9a9383f279de9da63296cb623a6418a66196b
tree5a9ade07bf0fc7342a4751bd248e75e04981ebca
parentc1c440d41aff2fa22027ed51afcc4c69709515eb
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