/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | gk104.c | 40 gk104_fifo_engine_status(struct gk104_fifo *fifo, int engn, in gk104_fifo_engine_status() argument 43 struct nvkm_engine *engine = fifo->engine[engn].engine; in gk104_fifo_engine_status() 46 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x08)); in gk104_fifo_engine_status() 78 engn, status->busy, status->faulted, in gk104_fifo_engine_status() 91 if (oclass->engn == &fifo->func->chan) { in gk104_fifo_class_new() 92 const struct gk104_fifo_chan_user *user = oclass->engn; in gk104_fifo_class_new() 95 if (oclass->engn == &fifo->func->user) { in gk104_fifo_class_new() 96 const struct gk104_fifo_user_user *user = oclass->engn; in gk104_fifo_class_new() 112 oclass->engn = &fifo->func->user; in gk104_fifo_class_get() 118 oclass->engn = &fifo->func->chan; in gk104_fifo_class_get() [all …]
|
D | tu102.c | 126 int engn, runl; in tu102_fifo_recover_work() local 137 for (todo = engm; engn = __ffs(todo), todo; todo &= ~BIT(engn)) { in tu102_fifo_recover_work() 138 if ((engine = fifo->engine[engn].engine)) { in tu102_fifo_recover_work() 150 static void tu102_fifo_recover_engn(struct gk104_fifo *fifo, int engn); 207 unsigned long engn, engm = fifo->runlist[runl].engm; in tu102_fifo_recover_chan() local 229 for_each_set_bit(engn, &engm, fifo->engine_nr) { in tu102_fifo_recover_chan() 232 gk104_fifo_engine_status(fifo, engn, &status); in tu102_fifo_recover_chan() 235 tu102_fifo_recover_engn(fifo, engn); in tu102_fifo_recover_chan() 240 tu102_fifo_recover_engn(struct gk104_fifo *fifo, int engn) in tu102_fifo_recover_engn() argument 244 const u32 runl = fifo->engine[engn].runl; in tu102_fifo_recover_engn() [all …]
|
D | chan.c | 43 return &chan->engn[engi]; in nvkm_fifo_chan_engn() 54 struct nvkm_fifo_engn *engn = nvkm_fifo_chan_engn(chan, engine); in nvkm_fifo_chan_child_fini() local 58 if (--engn->usecount) in nvkm_fifo_chan_child_fini() 70 if (engn->object) { in nvkm_fifo_chan_child_fini() 71 ret = nvkm_object_fini(engn->object, suspend); in nvkm_fifo_chan_child_fini() 87 struct nvkm_fifo_engn *engn = nvkm_fifo_chan_engn(chan, engine); in nvkm_fifo_chan_child_init() local 91 if (engn->usecount++) in nvkm_fifo_chan_child_init() 94 if (engn->object) { in nvkm_fifo_chan_child_init() 95 ret = nvkm_object_init(engn->object); in nvkm_fifo_chan_child_init() 120 struct nvkm_fifo_engn *engn = nvkm_fifo_chan_engn(chan, engine); in nvkm_fifo_chan_child_del() local [all …]
|
D | gpfifogf100.c | 73 return &chan->engn[engi]; in gf100_fifo_gpfifo_engine() 119 struct gf100_fifo_engn *engn = gf100_fifo_gpfifo_engine(chan, engine); in gf100_fifo_gpfifo_engine_init() local 124 nvkm_wo32(inst, offset + 0x00, lower_32_bits(engn->vma->addr) | 4); in gf100_fifo_gpfifo_engine_init() 125 nvkm_wo32(inst, offset + 0x04, upper_32_bits(engn->vma->addr)); in gf100_fifo_gpfifo_engine_init() 137 struct gf100_fifo_engn *engn = gf100_fifo_gpfifo_engine(chan, engine); in gf100_fifo_gpfifo_engine_dtor() local 138 nvkm_vmm_put(chan->base.vmm, &engn->vma); in gf100_fifo_gpfifo_engine_dtor() 139 nvkm_gpuobj_del(&engn->inst); in gf100_fifo_gpfifo_engine_dtor() 148 struct gf100_fifo_engn *engn = gf100_fifo_gpfifo_engine(chan, engine); in gf100_fifo_gpfifo_engine_ctor() local 154 ret = nvkm_object_bind(object, NULL, 0, &engn->inst); in gf100_fifo_gpfifo_engine_ctor() 158 ret = nvkm_vmm_get(chan->base.vmm, 12, engn->inst->size, &engn->vma); in gf100_fifo_gpfifo_engine_ctor() [all …]
|
D | gpfifogk104.c | 103 return &chan->engn[engi]; in gk104_fifo_gpfifo_engine() 139 struct gk104_fifo_engn *engn = gk104_fifo_gpfifo_engine(chan, engine); in gk104_fifo_gpfifo_engine_init() local 144 u32 datalo = lower_32_bits(engn->vma->addr) | 0x00000004; in gk104_fifo_gpfifo_engine_init() 145 u32 datahi = upper_32_bits(engn->vma->addr); in gk104_fifo_gpfifo_engine_init() 164 struct gk104_fifo_engn *engn = gk104_fifo_gpfifo_engine(chan, engine); in gk104_fifo_gpfifo_engine_dtor() local 165 nvkm_vmm_put(chan->base.vmm, &engn->vma); in gk104_fifo_gpfifo_engine_dtor() 166 nvkm_gpuobj_del(&engn->inst); in gk104_fifo_gpfifo_engine_dtor() 175 struct gk104_fifo_engn *engn = gk104_fifo_gpfifo_engine(chan, engine); in gk104_fifo_gpfifo_engine_ctor() local 184 ret = nvkm_object_bind(object, NULL, 0, &engn->inst); in gk104_fifo_gpfifo_engine_ctor() 191 ret = nvkm_vmm_get(chan->base.vmm, 12, engn->inst->size, &engn->vma); in gk104_fifo_gpfifo_engine_ctor() [all …]
|
D | chang84.c | 77 u32 engn, save; in g84_fifo_chan_engine_fini() local 85 engn = fifo->base.func->engine_id(&fifo->base, engine) - 1; in g84_fifo_chan_engine_fini() 86 save = nvkm_mask(device, 0x002520, 0x0000003f, 1 << engn); in g84_fifo_chan_engine_fini() 117 struct nvkm_gpuobj *engn = *nv50_fifo_chan_engine(chan, engine); in g84_fifo_chan_engine_init() local 124 limit = engn->addr + engn->size - 1; in g84_fifo_chan_engine_init() 125 start = engn->addr; in g84_fifo_chan_engine_init()
|
D | gf100.c | 153 u32 engm, engn, todo; in gf100_fifo_recover_work() local 162 for (todo = engm; engn = __ffs(todo), todo; todo &= ~BIT_ULL(engn)) { in gf100_fifo_recover_work() 163 if ((engine = gf100_fifo_id_engine(&fifo->base, engn))) { in gf100_fifo_recover_work() 323 u32 engn; in gf100_fifo_intr_sched_ctxsw() local 326 for (engn = 0; engn < 6; engn++) { in gf100_fifo_intr_sched_ctxsw() 327 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x04)); in gf100_fifo_intr_sched_ctxsw() 338 engine = gf100_fifo_id_engine(&fifo->base, engn); in gf100_fifo_intr_sched_ctxsw() 462 gf100_fifo_intr_engine_unit(struct gf100_fifo *fifo, int engn) in gf100_fifo_intr_engine_unit() argument 466 u32 intr = nvkm_rd32(device, 0x0025a8 + (engn * 0x04)); in gf100_fifo_intr_engine_unit() 470 nvkm_wr32(device, 0x0025a8 + (engn * 0x04), intr); in gf100_fifo_intr_engine_unit() [all …]
|
D | channv50.c | 50 return &chan->engn[engi]; in nv50_fifo_chan_engine() 115 struct nvkm_gpuobj *engn = *nv50_fifo_chan_engine(chan, engine); in nv50_fifo_chan_engine_init() local 122 limit = engn->addr + engn->size - 1; in nv50_fifo_chan_engine_init() 123 start = engn->addr; in nv50_fifo_chan_engine_init()
|
D | gpfifogv100.c | 101 struct gk104_fifo_engn *engn = gk104_fifo_gpfifo_engine(chan, engine); in gv100_fifo_gpfifo_engine_init() local 105 const u64 bar2 = nvkm_memory_bar2(engn->inst->memory); in gv100_fifo_gpfifo_engine_init() 116 nvkm_wo32(inst, 0x210, lower_32_bits(engn->vma->addr) | 0x00000004); in gv100_fifo_gpfifo_engine_init() 117 nvkm_wo32(inst, 0x214, upper_32_bits(engn->vma->addr)); in gv100_fifo_gpfifo_engine_init()
|
D | changf100.h | 25 } engn[NVKM_FIFO_ENGN_NR]; member
|
D | channv04.h | 16 struct nvkm_gpuobj *engn[NVKM_FIFO_ENGN_NR]; member
|
D | channv50.h | 37 struct nvkm_gpuobj *engn[NVKM_FIFO_ENGN_NR]; member
|
D | changk104.h | 21 } engn[NVKM_FIFO_ENGN_NR]; member
|
D | base.c | 213 const struct nvkm_fifo_chan_oclass *sclass = oclass->engn; in nvkm_fifo_class_new() 241 oclass->engn = sclass; in nvkm_fifo_class_get()
|
D | gk104.h | 108 void gk104_fifo_engine_status(struct gk104_fifo *fifo, int engn,
|
D | dmanv40.c | 63 return &chan->engn[engi]; in nv40_fifo_dma_engn()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | base.c | 54 const struct nvkm_sw_chan_sclass *sclass = oclass->engn; in nvkm_sw_oclass_new() 66 oclass->engn = &sw->func->sclass[index]; in nvkm_sw_oclass_get()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | oclass.h | 22 const void *engn; member
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | base.c | 74 sclass->engn = oclass; in nvkm_dma_oclass_base_get()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
D | fifo.h | 32 struct nvkm_fifo_engn engn[NVKM_FIFO_ENGN_NR]; member
|