drm/nouveau/mmu: rename from vmmgr (no binary change)
authorBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jan 2015 23:57:36 +0000 (09:57 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:17:43 +0000 (12:17 +1000)
Switch to NVIDIA's name for the device.

The namespace of NVKM is being changed to nvkm_ instead of nouveau_,
which will be used for the DRM part of the driver.  This is being
done in order to make it very clear as to what part of the driver a
given symbol belongs to, and as a minor step towards splitting the
DRM driver out to be able to stand on its own (for virt).

Because there's already a large amount of churn here anyway, this is
as good a time as any to also switch to NVIDIA's device and chipset
naming to ease collaboration with them.

A comparison of objdump disassemblies proves no code changes.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
43 files changed:
drivers/gpu/drm/nouveau/include/nvif/device.h
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
drivers/gpu/drm/nouveau/include/nvkm/core/engctx.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h [moved from drivers/gpu/drm/nouveau/include/nvkm/subdev/vm.h with 73% similarity]
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_display.h
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/nouveau/nvkm/core/engctx.c
drivers/gpu/drm/nouveau/nvkm/core/gpuobj.c
drivers/gpu/drm/nouveau/nvkm/engine/copy/nva3.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv10.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv20.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv30.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv40.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nvc0.c
drivers/gpu/drm/nouveau/nvkm/engine/device/nve0.c
drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nvc0.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/nvkm/engine/graph/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/graph/nvc0.h
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv84.c
drivers/gpu/drm/nouveau/nvkm/subdev/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nvc0.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/Kbuild [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/base.c with 73% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv04.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv04.c with 86% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv04.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv41.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv41.c with 86% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv44.c with 89% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv50.c with 88% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nvc0.c [moved from drivers/gpu/drm/nouveau/nvkm/subdev/vm/nvc0.c with 91% similarity]
drivers/gpu/drm/nouveau/nvkm/subdev/vm/Kbuild [deleted file]
drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv04.h [deleted file]

index e73a16d..93acd51 100644 (file)
@@ -29,7 +29,7 @@ void nvif_device_ref(struct nvif_device *, struct nvif_device **);
 /*XXX*/
 #include <subdev/bios.h>
 #include <subdev/fb.h>
-#include <subdev/vm.h>
+#include <subdev/mmu.h>
 #include <subdev/bar.h>
 #include <subdev/gpio.h>
 #include <subdev/clk.h>
@@ -40,7 +40,7 @@ void nvif_device_ref(struct nvif_device *, struct nvif_device **);
 #define nvkm_device(a) nv_device(nvkm_object((a)))
 #define nvkm_bios(a) nouveau_bios(nvkm_device(a))
 #define nvkm_fb(a) nouveau_fb(nvkm_device(a))
-#define nvkm_vmmgr(a) nouveau_vmmgr(nvkm_device(a))
+#define nvkm_mmu(a) nouveau_mmu(nvkm_device(a))
 #define nvkm_bar(a) nouveau_bar(nvkm_device(a))
 #define nvkm_gpio(a) nouveau_gpio(nvkm_device(a))
 #define nvkm_clk(a) nouveau_clk(nvkm_device(a))
index a2828ac..82625c5 100644 (file)
@@ -33,7 +33,7 @@ enum nv_subdev_type {
        NVDEV_SUBDEV_FB,
        NVDEV_SUBDEV_LTC,
        NVDEV_SUBDEV_INSTMEM,
-       NVDEV_SUBDEV_VM,
+       NVDEV_SUBDEV_MMU,
        NVDEV_SUBDEV_BAR,
        NVDEV_SUBDEV_PMU,
        NVDEV_SUBDEV_VOLT,
index dbc6a3e..9d696e4 100644 (file)
@@ -4,7 +4,7 @@
 #include <core/object.h>
 #include <core/gpuobj.h>
 
-#include <subdev/vm.h>
+#include <subdev/mmu.h>
 
 #define NV_ENGCTX_(eng,var) (NV_ENGCTX_CLASS | ((var) << 8) | (eng))
 #define NV_ENGCTX(name,var)  NV_ENGCTX_(NVDEV_ENGINE_##name, (var))
index 889603f..0277585 100644 (file)
@@ -5,7 +5,7 @@
 #include <core/device.h>
 #include <core/mm.h>
 
-#include <subdev/vm.h>
+#include <subdev/mmu.h>
 
 /* memory type/access flags, do not match hardware values */
 #define NV_MEM_ACCESS_RO  1
@@ -22,8 +22,8 @@
  * Authors: Ben Skeggs
  */
 
-#ifndef __NOUVEAU_VM_H__
-#define __NOUVEAU_VM_H__
+#ifndef __NOUVEAU_MMU_H__
+#define __NOUVEAU_MMU_H__
 
 #include <core/object.h>
 #include <core/subdev.h>
@@ -53,7 +53,7 @@ struct nouveau_vma {
 };
 
 struct nouveau_vm {
-       struct nouveau_vmmgr *vmm;
+       struct nouveau_mmu *mmu;
        struct nouveau_mm mm;
        struct kref refcount;
 
@@ -65,7 +65,7 @@ struct nouveau_vm {
        u32 lpde;
 };
 
-struct nouveau_vmmgr {
+struct nouveau_mmu {
        struct nouveau_subdev base;
 
        u64 limit;
@@ -74,7 +74,7 @@ struct nouveau_vmmgr {
        u8  spg_shift;
        u8  lpg_shift;
 
-       int  (*create)(struct nouveau_vmmgr *, u64 offset, u64 length,
+       int  (*create)(struct nouveau_mmu *, u64 offset, u64 length,
                       u64 mm_offset, struct nouveau_vm **);
 
        void (*map_pgt)(struct nouveau_gpuobj *pgd, u32 pde,
@@ -88,37 +88,37 @@ struct nouveau_vmmgr {
        void (*flush)(struct nouveau_vm *);
 };
 
-static inline struct nouveau_vmmgr *
-nouveau_vmmgr(void *obj)
+static inline struct nouveau_mmu *
+nouveau_mmu(void *obj)
 {
-       return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_VM);
+       return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_MMU);
 }
 
-#define nouveau_vmmgr_create(p,e,o,i,f,d)                                      \
+#define nouveau_mmu_create(p,e,o,i,f,d)                                      \
        nouveau_subdev_create((p), (e), (o), 0, (i), (f), (d))
-#define nouveau_vmmgr_destroy(p)                                               \
+#define nouveau_mmu_destroy(p)                                               \
        nouveau_subdev_destroy(&(p)->base)
-#define nouveau_vmmgr_init(p)                                                  \
+#define nouveau_mmu_init(p)                                                  \
        nouveau_subdev_init(&(p)->base)
-#define nouveau_vmmgr_fini(p,s)                                                \
+#define nouveau_mmu_fini(p,s)                                                \
        nouveau_subdev_fini(&(p)->base, (s))
 
-#define _nouveau_vmmgr_dtor _nouveau_subdev_dtor
-#define _nouveau_vmmgr_init _nouveau_subdev_init
-#define _nouveau_vmmgr_fini _nouveau_subdev_fini
+#define _nouveau_mmu_dtor _nouveau_subdev_dtor
+#define _nouveau_mmu_init _nouveau_subdev_init
+#define _nouveau_mmu_fini _nouveau_subdev_fini
 
-extern struct nouveau_oclass nv04_vmmgr_oclass;
-extern struct nouveau_oclass nv41_vmmgr_oclass;
-extern struct nouveau_oclass nv44_vmmgr_oclass;
-extern struct nouveau_oclass nv50_vmmgr_oclass;
-extern struct nouveau_oclass nvc0_vmmgr_oclass;
+extern struct nouveau_oclass nv04_mmu_oclass;
+extern struct nouveau_oclass nv41_mmu_oclass;
+extern struct nouveau_oclass nv44_mmu_oclass;
+extern struct nouveau_oclass nv50_mmu_oclass;
+extern struct nouveau_oclass nvc0_mmu_oclass;
 
-int  nv04_vm_create(struct nouveau_vmmgr *, u64, u64, u64,
+int  nv04_vm_create(struct nouveau_mmu *, u64, u64, u64,
                    struct nouveau_vm **);
-void nv04_vmmgr_dtor(struct nouveau_object *);
+void nv04_mmu_dtor(struct nouveau_object *);
 
 /* nouveau_vm.c */
-int  nouveau_vm_create(struct nouveau_vmmgr *, u64 offset, u64 length,
+int  nouveau_vm_create(struct nouveau_mmu *, u64 offset, u64 length,
                       u64 mm_offset, u32 block, struct nouveau_vm **);
 int  nouveau_vm_new(struct nouveau_device *, u64 offset, u64 length,
                    u64 mm_offset, struct nouveau_vm **);
Simple merge
Simple merge
diff --cc drivers/gpu/drm/nouveau/nvkm/subdev/vm/Kbuild
Simple merge
diff --cc drivers/gpu/drm/nouveau/nvkm/subdev/vm/nv04.h
Simple merge