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)
commit32d1f6985ceb6b9099bc9e02dc04e58660f28c16
tree8cca94e37cdc45db8e6ec0fe7261ba8901e911fb
parent4fe51e9e7902b5724b618dadd9527b1bbf2b55cc
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