]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau/fifo: rip out cevent, never used
authorBen Skeggs <bskeggs@redhat.com>
Wed, 1 Jun 2022 10:46:03 +0000 (20:46 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Jul 2022 03:56:36 +0000 (13:56 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/priv.h

index 64ee82c7c1be5936de87c8ab155b47920fbe91ff..4d1a3bd558fd9ee11563ef93b7e9fad0ba31c47f 100644 (file)
@@ -44,7 +44,6 @@ struct nvkm_fifo {
        struct mutex mutex;
 
        struct nvkm_event uevent; /* async user trigger */
-       struct nvkm_event cevent; /* channel creation event */
        struct nvkm_event kevent; /* channel killed */
 };
 
index 2ed4ff05d2075e51f5d8b797f6d4926881e976a6..58b8df75fc402bb768a4ec0eaf8efa5a6b62e9ae 100644 (file)
@@ -144,30 +144,6 @@ nvkm_fifo_kevent_func = {
        .ctor = nvkm_fifo_kevent_ctor,
 };
 
-static int
-nvkm_fifo_cevent_ctor(struct nvkm_object *object, void *data, u32 size,
-                     struct nvkm_notify *notify)
-{
-       if (size == 0) {
-               notify->size  = 0;
-               notify->types = 1;
-               notify->index = 0;
-               return 0;
-       }
-       return -ENOSYS;
-}
-
-static const struct nvkm_event_func
-nvkm_fifo_cevent_func = {
-       .ctor = nvkm_fifo_cevent_ctor,
-};
-
-void
-nvkm_fifo_cevent(struct nvkm_fifo *fifo)
-{
-       nvkm_event_send(&fifo->cevent, 1, 0, NULL, 0);
-}
-
 static void
 nvkm_fifo_uevent_fini(struct nvkm_event *event, int type, int index)
 {
@@ -332,7 +308,6 @@ nvkm_fifo_dtor(struct nvkm_engine *engine)
        if (fifo->func->dtor)
                data = fifo->func->dtor(fifo);
        nvkm_event_fini(&fifo->kevent);
-       nvkm_event_fini(&fifo->cevent);
        nvkm_event_fini(&fifo->uevent);
        mutex_destroy(&fifo->mutex);
        return data;
@@ -378,9 +353,5 @@ nvkm_fifo_ctor(const struct nvkm_fifo_func *func, struct nvkm_device *device,
                        return ret;
        }
 
-       ret = nvkm_event_init(&nvkm_fifo_cevent_func, 1, 1, &fifo->cevent);
-       if (ret)
-               return ret;
-
        return nvkm_event_init(&nvkm_fifo_kevent_func, 1, nr, &fifo->kevent);
 }
index 8d957643940ae93a5e710b7beb0e0e7488bd5e28..4ddaa91ad409bf6f33455ffe2d088f5040d14b16 100644 (file)
@@ -424,7 +424,5 @@ nvkm_fifo_chan_ctor(const struct nvkm_fifo_chan_func *func,
        chan->addr = device->func->resource_addr(device, bar) +
                     base + user * chan->chid;
        chan->size = user;
-
-       nvkm_fifo_cevent(fifo);
        return 0;
 }
index 899272801a8bfd088a2c9347ff5bcbe17a295424..79cec57647f02c14bed8e39d1eb92795036a3c0c 100644 (file)
@@ -7,7 +7,6 @@
 int nvkm_fifo_ctor(const struct nvkm_fifo_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
                   int nr, struct nvkm_fifo *);
 void nvkm_fifo_uevent(struct nvkm_fifo *);
-void nvkm_fifo_cevent(struct nvkm_fifo *);
 void nvkm_fifo_kevent(struct nvkm_fifo *, int chid);
 void nvkm_fifo_recover_chan(struct nvkm_fifo *, int chid);