OSDN Git Service

drm/ttm: use an operation ctx for ttm_mem_global_alloc_page
authorRoger He <Hongbo.He@amd.com>
Fri, 8 Dec 2017 07:21:18 +0000 (15:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Dec 2017 16:38:55 +0000 (11:38 -0500)
commit9de2fb99ebe059f7777b4c0463eca2946f2bda4d
tree9d620a073b86db04996eeabb38095464cccd0242
parent279c01f6ef626d59b93383d183fb69173d3f7ac7
drm/ttm: use an operation ctx for ttm_mem_global_alloc_page

forward the operation context to ttm_mem_global_alloc_page as well,
and the ultimate goal is swapout enablement for reserved BOs.

Here reserved BOs refer to all the BOs which share same reservation object

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_memory.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
include/drm/ttm/ttm_memory.h