diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 20:47:27 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2022-11-09 10:44:47 +1000 |
commit | d67f3b96462922713e77cddb9d6f4965606918fc (patch) | |
tree | 261d6b4783267fc49eae4cb02b6057e4c6a36885 /drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h | |
parent | 2fc71a0566f63ac3cd43d7cf2d5efbbab6293c5f (diff) |
drm/nouveau/fifo: tidy up non-stall intr handling
- removes a layer of indirection in the intr handling
- prevents non-stall ctrl racing with unknown intrs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h index 446d058f558a..d3412c916290 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h @@ -44,13 +44,16 @@ struct nvkm_fifo { struct list_head runqs; struct list_head runls; + struct { +#define NVKM_FIFO_NONSTALL_EVENT BIT(0) + struct nvkm_event event; + } nonstall; + int nr; struct list_head chan; spinlock_t lock; struct mutex mutex; -#define NVKM_FIFO_EVENT_NON_STALL_INTR BIT(0) - struct nvkm_event uevent; /* async user trigger */ #define NVKM_FIFO_EVENT_KILLED BIT(0) struct nvkm_event kevent; /* channel killed */ }; |