drm/nouveau/sw: rename from software (no binary change)
authorBen Skeggs <bskeggs@redhat.com>
Wed, 14 Jan 2015 02:34:00 +0000 (12:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:17:47 +0000 (12:17 +1000)
Shorter device name, make consistent with our engine enums.

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>
32 files changed:
drivers/gpu/drm/nouveau/include/nvif/device.h
drivers/gpu/drm/nouveau/include/nvkm/engine/software.h [deleted file]
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_reg.h
drivers/gpu/drm/nouveau/nvkm/engine/Kbuild
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/disp/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm204.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv94.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nva0.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nva3.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nve0.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nvf0.c
drivers/gpu/drm/nouveau/nvkm/engine/software/Kbuild [deleted file]
drivers/gpu/drm/nouveau/nvkm/engine/software/nv50.h [deleted file]
drivers/gpu/drm/nouveau/nvkm/engine/sw/Kbuild [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c [moved from drivers/gpu/drm/nouveau/nvkm/engine/software/nv04.c with 66% similarity]
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c [moved from drivers/gpu/drm/nouveau/nvkm/engine/software/nv10.c with 66% similarity]
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c [moved from drivers/gpu/drm/nouveau/nvkm/engine/software/nv50.c with 66% similarity]
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/engine/sw/nvc0.c [moved from drivers/gpu/drm/nouveau/nvkm/engine/software/nvc0.c with 66% similarity]

index 7f1770b..90e2d97 100644 (file)
@@ -53,7 +53,7 @@ void nvif_device_ref(struct nvif_device *, struct nvif_device **);
 #include <engine/device.h>
 #include <engine/fifo.h>
 #include <engine/gr.h>
-#include <engine/software.h>
+#include <engine/sw.h>
 
 #define nvkm_fifo(a) nouveau_fifo(nvkm_device(a))
 #define nvkm_fifo_chan(a) ((struct nouveau_fifo_chan *)nvkm_object(a))
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/software.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/software.h
deleted file mode 100644 (file)
index 23a462b..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef __NOUVEAU_SOFTWARE_H__
-#define __NOUVEAU_SOFTWARE_H__
-
-#include <core/engine.h>
-#include <core/engctx.h>
-
-struct nouveau_software_chan {
-       struct nouveau_engctx base;
-
-       int (*flip)(void *);
-       void *flip_data;
-};
-
-#define nouveau_software_context_create(p,e,c,d)                               \
-       nouveau_engctx_create((p), (e), (c), (p), 0, 0, 0, (d))
-#define nouveau_software_context_destroy(d)                                    \
-       nouveau_engctx_destroy(&(d)->base)
-#define nouveau_software_context_init(d)                                       \
-       nouveau_engctx_init(&(d)->base)
-#define nouveau_software_context_fini(d,s)                                     \
-       nouveau_engctx_fini(&(d)->base, (s))
-
-#define _nouveau_software_context_dtor _nouveau_engctx_dtor
-#define _nouveau_software_context_init _nouveau_engctx_init
-#define _nouveau_software_context_fini _nouveau_engctx_fini
-
-struct nouveau_software {
-       struct nouveau_engine base;
-};
-
-#define nouveau_software_create(p,e,c,d)                                       \
-       nouveau_engine_create((p), (e), (c), true, "SW", "software", (d))
-#define nouveau_software_destroy(d)                                            \
-       nouveau_engine_destroy(&(d)->base)
-#define nouveau_software_init(d)                                               \
-       nouveau_engine_init(&(d)->base)
-#define nouveau_software_fini(d,s)                                             \
-       nouveau_engine_fini(&(d)->base, (s))
-
-#define _nouveau_software_dtor _nouveau_engine_dtor
-#define _nouveau_software_init _nouveau_engine_init
-#define _nouveau_software_fini _nouveau_engine_fini
-
-extern struct nouveau_oclass *nv04_software_oclass;
-extern struct nouveau_oclass *nv10_software_oclass;
-extern struct nouveau_oclass *nv50_software_oclass;
-extern struct nouveau_oclass *nvc0_software_oclass;
-
-void nv04_software_intr(struct nouveau_subdev *);
-
-#endif
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h
new file mode 100644 (file)
index 0000000..4c61a39
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef __NOUVEAU_SW_H__
+#define __NOUVEAU_SW_H__
+
+#include <core/engine.h>
+#include <core/engctx.h>
+
+struct nouveau_sw_chan {
+       struct nouveau_engctx base;
+
+       int (*flip)(void *);
+       void *flip_data;
+};
+
+#define nouveau_sw_context_create(p,e,c,d)                               \
+       nouveau_engctx_create((p), (e), (c), (p), 0, 0, 0, (d))
+#define nouveau_sw_context_destroy(d)                                    \
+       nouveau_engctx_destroy(&(d)->base)
+#define nouveau_sw_context_init(d)                                       \
+       nouveau_engctx_init(&(d)->base)
+#define nouveau_sw_context_fini(d,s)                                     \
+       nouveau_engctx_fini(&(d)->base, (s))
+
+#define _nouveau_sw_context_dtor _nouveau_engctx_dtor
+#define _nouveau_sw_context_init _nouveau_engctx_init
+#define _nouveau_sw_context_fini _nouveau_engctx_fini
+
+struct nouveau_sw {
+       struct nouveau_engine base;
+};
+
+#define nouveau_sw_create(p,e,c,d)                                       \
+       nouveau_engine_create((p), (e), (c), true, "SW", "software", (d))
+#define nouveau_sw_destroy(d)                                            \
+       nouveau_engine_destroy(&(d)->base)
+#define nouveau_sw_init(d)                                               \
+       nouveau_engine_init(&(d)->base)
+#define nouveau_sw_fini(d,s)                                             \
+       nouveau_engine_fini(&(d)->base, (s))
+
+#define _nouveau_sw_dtor _nouveau_engine_dtor
+#define _nouveau_sw_init _nouveau_engine_init
+#define _nouveau_sw_fini _nouveau_engine_fini
+
+extern struct nouveau_oclass *nv04_sw_oclass;
+extern struct nouveau_oclass *nv10_sw_oclass;
+extern struct nouveau_oclass *nv50_sw_oclass;
+extern struct nouveau_oclass *nvc0_sw_oclass;
+
+void nv04_sw_intr(struct nouveau_subdev *);
+
+#endif
index 8030253..58b8b64 100644 (file)
@@ -282,7 +282,7 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
        struct nvif_device *device = chan->device;
        struct nouveau_cli *cli = (void *)nvif_client(&device->base);
        struct nouveau_mmu *mmu = nvkm_mmu(device);
-       struct nouveau_software_chan *swch;
+       struct nouveau_sw_chan *swch;
        struct nv_dma_v0 args = {};
        int ret, i;
 
index 1118efa..e684040 100644 (file)
@@ -231,7 +231,7 @@ nouveau_accel_init(struct nouveau_drm *drm)
        ret = nvif_object_init(drm->channel->object, NULL, NVDRM_NVSW,
                               nouveau_abi16_swclass(drm), NULL, 0, &drm->nvsw);
        if (ret == 0) {
-               struct nouveau_software_chan *swch;
+               struct nouveau_sw_chan *swch;
                ret = RING_SPACE(drm->channel, 2);
                if (ret == 0) {
                        if (device->info.family < NV_DEVICE_INFO_V0_FERMI) {
Simple merge
diff --cc drivers/gpu/drm/nouveau/nvkm/engine/software/Kbuild
Simple merge
diff --cc drivers/gpu/drm/nouveau/nvkm/engine/software/nv50.h
Simple merge