diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 20:46:39 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2022-11-09 10:44:27 +1000 |
commit | 6c9705f68465661eede90ce435eda7fd49f70d79 (patch) | |
tree | 7f3e3f8d3f76e7ba4cf2edda5d997734225dc97f /drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c | |
parent | 8c880fd4c155d9b1b3e294169d7dc3f3a1e04bd3 (diff) | |
download | lwn-6c9705f68465661eede90ce435eda7fd49f70d79.tar.gz lwn-6c9705f68465661eede90ce435eda7fd49f70d79.zip |
drm/nouveau/fifo: expose channel killed in host channel event class
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c index ec790af9b24f..a5d7c7d0ff7f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c @@ -26,7 +26,6 @@ #include <core/client.h> #include <core/gpuobj.h> -#include <core/notify.h> #include <subdev/mc.h> #include <nvif/event.h> @@ -122,26 +121,11 @@ nvkm_fifo_chan_chid(struct nvkm_fifo *fifo, int chid, unsigned long *rflags) void nvkm_fifo_kevent(struct nvkm_fifo *fifo, int chid) { - nvkm_event_send(&fifo->kevent, 1, chid, NULL, 0); -} - -static int -nvkm_fifo_kevent_ctor(struct nvkm_object *object, void *data, u32 size, - struct nvkm_notify *notify) -{ - struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); - if (size == 0) { - notify->size = 0; - notify->types = 1; - notify->index = chan->chid; - return 0; - } - return -ENOSYS; + nvkm_event_send(&fifo->kevent, NVKM_FIFO_EVENT_KILLED, chid, NULL, 0); } static const struct nvkm_event_func nvkm_fifo_kevent_func = { - .ctor = nvkm_fifo_kevent_ctor, }; static void |