[PATCH 1/2] drm/ttm: Implement vm_operations_struct.access v2

Michel Dänzer michel at daenzer.net
Tue Jul 18 14:21:37 UTC 2017


On 17/07/17 11:57 PM, Felix Kuehling wrote:
> 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 at amd.com>

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer


More information about the amd-gfx mailing list