]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 12 Oct 2018 15:16:39 +0000 (17:16 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Jun 2019 13:19:34 +0000 (15:19 +0200)
commitcfe5d6ce006969d6d36e5de5ec00991b94765bc2
tree8cca94e37cdc45db8e6ec0fe7261ba8901e911fb
parentfffdbaf9b7176c97bb8ef5cccce84e4192fef04b
drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct

Add a pointer to the struct vm_operations_struct in the bo_device, and
assign that pointer to the default value currently used.

The driver can then optionally modify that pointer and the new value
can be used for each new vma created.

Cc: "Christian König" <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo_driver.h