#ifndef __GK104_FIFO_H__ #define __GK104_FIFO_H__ #define gk104_fifo(p) container_of((p), struct gk104_fifo, base) #include "priv.h" #include <core/enum.h> #include <subdev/mmu.h> struct gk104_fifo_chan; struct gk104_fifo { const struct gk104_fifo_func *func; struct nvkm_fifo base; struct { struct work_struct work; u32 engm; u32 runm; } recover; int pbdma_nr; struct { struct nvkm_engine *engine; int runl; int pbid; } engine[16]; int engine_nr; struct { struct nvkm_memory *mem[2]; int next; wait_queue_head_t wait; struct list_head chan; u32 engm; } runlist[16]; int runlist_nr; struct { struct nvkm_memory *mem; struct nvkm_vma bar; } user; }; struct gk104_fifo_func { struct { const struct nvkm_enum *engine; const struct nvkm_enum *reason; const struct nvkm_enum *hubclient; const struct nvkm_enum *gpcclient; } fault; const struct nvkm_fifo_chan_oclass *chan[]; }; int gk104_fifo_new_(const struct gk104_fifo_func *, struct nvkm_device *, int index, int nr, struct nvkm_fifo **); void gk104_fifo_runlist_insert(struct gk104_fifo *, struct gk104_fifo_chan *); void gk104_fifo_runlist_remove(struct gk104_fifo *, struct gk104_fifo_chan *); void gk104_fifo_runlist_commit(struct gk104_fifo *, int runl);
static inline u64 gk104_fifo_engine_subdev(int engine) { switch (engine) { case 0: return (1ULL << NVKM_ENGINE_GR) | (1ULL << NVKM_ENGINE_SW) | (1ULL << NVKM_ENGINE_CE2); case 1: return (1ULL << NVKM_ENGINE_MSPDEC); case 2: return (1ULL << NVKM_ENGINE_MSPPP); case 3: return (1ULL << NVKM_ENGINE_MSVLD); case 4: return (1ULL << NVKM_ENGINE_CE0); case 5: return (1ULL << NVKM_ENGINE_CE1); case 6: return (1ULL << NVKM_ENGINE_MSENC); default: WARN_ON(1); return 0; } }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ben Skeggs | 107 | 100.00% | 2 | 100.00% |
Total | 107 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ben Skeggs | 366 | 98.92% | 14 | 93.33% |
Alexandre Courbot | 4 | 1.08% | 1 | 6.67% |
Total | 370 | 100.00% | 15 | 100.00% |