summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_mem.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-10-31 18:56:19 +0100
committerBen Skeggs <bskeggs@redhat.com>2017-11-02 04:32:23 +0100
commitbd275f1d1a982db62edcd22f3aebf6253583ea37 (patch)
tree5f3b36fa3ea96145c4fa6ac1c903f498291788d5 /drivers/gpu/drm/nouveau/nouveau_mem.h
parentdrm/nouveau/ltc/gf100-: allocate tagram with nvkm_ram_get() (diff)
downloadlinux-bd275f1d1a982db62edcd22f3aebf6253583ea37.tar.xz
linux-bd275f1d1a982db62edcd22f3aebf6253583ea37.zip
drm/nouveau: wrap nvkm_mem objects in nvkm_memory interfaces
This is a transition step, to enable finer-grained commits while transitioning to new MMU interfaces. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.h b/drivers/gpu/drm/nouveau/nouveau_mem.h
index d00b4f669c4b..20930ebc5e21 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mem.h
+++ b/drivers/gpu/drm/nouveau/nouveau_mem.h
@@ -23,6 +23,13 @@ struct nouveau_mem {
struct nvkm_mem __mem;
struct nvkm_mem *_mem;
struct nvkm_vma bar_vma;
+
+ struct nvkm_memory memory;
+};
+
+enum nvif_vmm_get {
+ PTES,
+ LAZY,
};
int nouveau_mem_new(struct nouveau_cli *, u8 kind, u8 comp,