diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-10-31 18:56:19 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-11-02 04:32:23 +0100 |
commit | bd275f1d1a982db62edcd22f3aebf6253583ea37 (patch) | |
tree | 5f3b36fa3ea96145c4fa6ac1c903f498291788d5 /drivers/gpu/drm/nouveau/nouveau_mem.h | |
parent | drm/nouveau/ltc/gf100-: allocate tagram with nvkm_ram_get() (diff) | |
download | linux-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.h | 7 |
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, |