summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs2017-10-31 18:56:19 +0100
committerBen Skeggs2017-11-02 04:32:32 +0100
commit01670a79d5fa2f6659d18af6d52cca6c44f73646 (patch)
treed6cc232a30747183758ab9dc35a474bba1a9dd95 /drivers/gpu/drm/nouveau/nouveau_drv.h
parentdrm/nouveau: remove trivial cases of nvxx_device() usage (diff)
downloadkernel-qcow2-linux-01670a79d5fa2f6659d18af6d52cca6c44f73646.tar.gz
kernel-qcow2-linux-01670a79d5fa2f6659d18af6d52cca6c44f73646.tar.xz
kernel-qcow2-linux-01670a79d5fa2f6659d18af6d52cca6c44f73646.zip
drm/nouveau: allocate mmu object for every client
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index ba8a9ab20562..ac5c66e60b2a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -42,6 +42,7 @@
#include <nvif/client.h>
#include <nvif/device.h>
#include <nvif/ioctl.h>
+#include <nvif/mmu.h>
#include <drm/drmP.h>
@@ -91,6 +92,7 @@ struct nouveau_cli {
struct mutex mutex;
struct nvif_device device;
+ struct nvif_mmu mmu;
struct nouveau_vmm vmm;
struct nvkm_vm *vm;