summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_vmm.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2018-05-08 12:39:47 +0200
committerBen Skeggs <bskeggs@redhat.com>2018-05-18 07:01:26 +0200
commit0db912af8f5ad4fa4dc08a9c8e411a10953c5403 (patch)
tree10f8e13d89ac5a9de5bd3002d994cb10b2bcf41a /drivers/gpu/drm/nouveau/nouveau_vmm.h
parentdrm/nouveau/gem: lookup VMAs for buffers referenced by pushbuf ioctl (diff)
downloadlinux-0db912af8f5ad4fa4dc08a9c8e411a10953c5403.tar.xz
linux-0db912af8f5ad4fa4dc08a9c8e411a10953c5403.zip
drm/nouveau/gem: attach fences to VMAs to track GPU usage
An upcoming patch will use these to fix issues related to the deferred unmapping of GEM objects. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_vmm.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vmm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vmm.h b/drivers/gpu/drm/nouveau/nouveau_vmm.h
index 5c31f43678d3..7e3b118cf7c4 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vmm.h
+++ b/drivers/gpu/drm/nouveau/nouveau_vmm.h
@@ -11,6 +11,8 @@ struct nouveau_vma {
u64 addr;
struct nouveau_mem *mem;
+
+ struct nouveau_fence *fence;
};
struct nouveau_vma *nouveau_vma_find(struct nouveau_bo *, struct nouveau_vmm *);