Merge drm/drm-next into drm-misc-next
[linux-2.6-microblaze.git] / drivers / gpu / drm / nouveau / nouveau_drv.h
index e73a233..7f7051d 100644 (file)
@@ -93,7 +93,10 @@ struct nouveau_cli {
        struct nvif_mmu mmu;
        struct nouveau_vmm vmm;
        struct nouveau_vmm svm;
-       struct nouveau_uvmm uvmm;
+       struct {
+               struct nouveau_uvmm *ptr;
+               bool disabled;
+       } uvmm;
 
        struct nouveau_sched_entity sched_entity;
 
@@ -121,10 +124,7 @@ struct nouveau_cli_work {
 static inline struct nouveau_uvmm *
 nouveau_cli_uvmm(struct nouveau_cli *cli)
 {
-       if (!cli || !cli->uvmm.vmm.cli)
-               return NULL;
-
-       return &cli->uvmm;
+       return cli ? cli->uvmm.ptr : NULL;
 }
 
 static inline struct nouveau_uvmm *