]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7145bae44debb700bf50fc08710d09af80a26d8
tree9d620a073b86db04996eeabb38095464cccd0242
parentcc48dbdd67971462febfabb03b07f10e51ebd7c3
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