]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/svm: new ioctl to migrate process memory to GPU memory
authorJérôme Glisse <jglisse@redhat.com>
Tue, 7 Aug 2018 20:13:16 +0000 (16:13 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 23:00:03 +0000 (09:00 +1000)
commit876bb349c775e81b8bf18e8fce02393f210af294
tree657b1189e1e51a9280d6d66d41b5335a85eb5e80
parenta834b0dc352fa76e84be51a6100d951683a8e123
drm/nouveau/svm: new ioctl to migrate process memory to GPU memory

This add an ioctl to migrate a range of process address space to the
device memory. On platform without cache coherent bus (x86, ARM, ...)
this means that CPU can not access that range directly, instead CPU
will fault which will migrate the memory back to system memory.

This is behind a staging flag so that we can evolve the API.

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_svm.c
drivers/gpu/drm/nouveau/nouveau_svm.h
include/uapi/drm/nouveau_drm.h