]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Implement vm_operations_struct.access v2
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 13 Jul 2017 21:01:16 +0000 (17:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:29:02 +0000 (16:29 -0400)
commitee167968b82313681f69a13b18fa48ba88acfac6
treef6489bee599e129a002ce4f1e1505703edd06d01
parent70cf192a50692c03cdcb7542aa9b294a61c6ab92
drm/ttm: Implement vm_operations_struct.access v2

Allows gdb to access contents of user mode mapped BOs. System memory
is handled by TTM using kmap. Other memory pools require a new driver
callback in ttm_bo_driver.

v2:
* kmap only one page at a time
* swap in BO if needed
* make driver callback more generic to handle private memory pools
* document callback return value
* WARN_ON -> WARN_ON_ONCE

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo_driver.h