Home
last modified time | relevance | path

Searched refs:runq (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
A Drunq.c26 nvkm_runq_del(struct nvkm_runq *runq) in nvkm_runq_del() argument
28 list_del(&runq->head); in nvkm_runq_del()
29 kfree(runq); in nvkm_runq_del()
35 struct nvkm_runq *runq; in nvkm_runq_new() local
37 if (!(runq = kzalloc(sizeof(*runq), GFP_KERNEL))) in nvkm_runq_new()
40 runq->func = fifo->func->runq; in nvkm_runq_new()
41 runq->fifo = fifo; in nvkm_runq_new()
42 runq->id = pbid; in nvkm_runq_new()
43 list_add_tail(&runq->head, &fifo->runqs); in nvkm_runq_new()
44 return runq; in nvkm_runq_new()
A Dga100.c166 ga100_runq_idle(struct nvkm_runq *runq) in ga100_runq_idle() argument
352 if (runl->runq[0]) { in ga100_runl_intr()
353 if (runl->runq[0]->func->intr(runl->runq[0], runl)) in ga100_runl_intr()
359 if (runl->runq[1]) { in ga100_runl_intr()
360 if (runl->runq[1]->func->intr(runl->runq[1], runl)) in ga100_runl_intr()
385 struct nvkm_runq *runq; in ga100_runl_init() local
404 runq = runl->runq[i]; in ga100_runl_init()
405 runq->func->init(runq); in ga100_runl_init()
447 runl->runq[runl->runq_nr] = in ga100_runl_new()
449 if (!runl->runq[runl->runq_nr]) in ga100_runl_new()
[all …]
A Dgk104.c289 gk104_runq_idle(struct nvkm_runq *runq) in gk104_runq_idle() argument
317 if (runq->func->intr_1_ctxnotvalid && in gk104_runq_intr_1()
318 runq->func->intr_1_ctxnotvalid(runq, chid)) in gk104_runq_intr_1()
325 runq->id, stat, msg, chid, in gk104_runq_intr_1()
373 bool intr1 = gk104_runq_intr_1(runq); in gk104_runq_intr()
383 gf100_runq_init(runq); in gk104_runq_init()
392 return nvkm_rd32(runq->fifo->engine.subdev.device, 0x002390 + (runq->id * 0x04)); in gk104_runq_runm()
761 struct nvkm_runq *runq; in gk104_fifo_runl_ctor() local
771 nvkm_runq_foreach_cond(runq, fifo, gk104_runq_runm(runq) & BIT(runl->id)) { in gk104_fifo_runl_ctor()
775 runl->runq[runl->runq_nr++] = runq; in gk104_fifo_runl_ctor()
[all …]
A Dgk208.c30 gk208_runq_init(struct nvkm_runq *runq) in gk208_runq_init() argument
32 gk104_runq_init(runq); in gk208_runq_init()
34 nvkm_wr32(runq->fifo->engine.subdev.device, 0x04012c + (runq->id * 0x2000), 0x000f4240); in gk208_runq_init()
65 .runq = &gk208_runq,
A Dgf100.c312 struct nvkm_subdev *subdev = &runq->fifo->engine.subdev; in gf100_runq_intr()
314 u32 mask = nvkm_rd32(device, 0x04010c + (runq->id * 0x2000)); in gf100_runq_intr()
318 u32 chid = nvkm_rd32(device, 0x040120 + (runq->id * 0x2000)) & runq->fifo->chid->mask; in gf100_runq_intr()
338 runq->id, show, msg, chid, chan ? chan->inst->addr : 0, in gf100_runq_intr()
348 nvkm_wr32(device, 0x040108 + (runq->id * 0x2000), stat); in gf100_runq_intr()
353 gf100_runq_init(struct nvkm_runq *runq) in gf100_runq_init() argument
736 struct nvkm_runq *runq; in gf100_fifo_intr_pbdma() local
740 nvkm_runq_foreach_cond(runq, fifo, mask & BIT(runq->id)) { in gf100_fifo_intr_pbdma()
741 if (runq->func->intr(runq, NULL)) in gf100_fifo_intr_pbdma()
744 nvkm_wr32(device, 0x0025a0, BIT(runq->id)); in gf100_fifo_intr_pbdma()
[all …]
A Drunq.h24 #define nvkm_runq_foreach(runq,fifo) list_for_each_entry((runq), &(fifo)->runqs, head) argument
25 #define nvkm_runq_foreach_cond(runq,fifo,cond) nvkm_list_foreach(runq, &(fifo)->runqs, head, (cond)) argument
A Dbase.c142 struct nvkm_runq *runq; in nvkm_fifo_init() local
147 nvkm_runq_foreach(runq, fifo) in nvkm_fifo_init()
148 mask |= BIT(runq->id); in nvkm_fifo_init()
152 nvkm_runq_foreach(runq, fifo) in nvkm_fifo_init()
153 runq->func->init(runq); in nvkm_fifo_init()
326 struct nvkm_runq *runq, *rtmp; in nvkm_fifo_dtor() local
334 list_for_each_entry_safe(runq, rtmp, &fifo->runqs, head) in nvkm_fifo_dtor()
335 nvkm_runq_del(runq); in nvkm_fifo_dtor()
A Dgv100.c146 gv100_runq_intr_1_ctxnotvalid(struct nvkm_runq *runq, int chid) in gv100_runq_intr_1_ctxnotvalid() argument
148 struct nvkm_fifo *fifo = runq->fifo; in gv100_runq_intr_1_ctxnotvalid()
153 RUNQ_ERROR(runq, "CTXNOTVALID chid:%d", chid); in gv100_runq_intr_1_ctxnotvalid()
162 nvkm_mask(device, 0x0400ac + (runq->id * 0x2000), 0x00030000, 0x00030000); in gv100_runq_intr_1_ctxnotvalid()
163 nvkm_wr32(device, 0x040148 + (runq->id * 0x2000), 0x80000000); in gv100_runq_intr_1_ctxnotvalid()
188 nvkm_wo32(memory, offset + 0x0, lower_32_bits(user) | chan->runq << 1); in gv100_runl_insert_chan()
480 .runq = &gv100_runq,
A Dchan.c346 nvkm_chan_new_(const struct nvkm_chan_func *func, struct nvkm_runl *runl, int runq, in nvkm_chan_new_() argument
357 if ((runq && runq >= runl->func->runqs) || in nvkm_chan_new_()
365 runl->func->runqs, runq, func->inst->vmm, vmm, in nvkm_chan_new_()
376 chan->runq = runq; in nvkm_chan_new_()
A Drunl.c89 struct nvkm_runq *runq = runl->runq[i]; in nvkm_runl_rc() local
91 if (runq) { in nvkm_runl_rc()
93 if (runq->func->idle(runq)) in nvkm_runl_rc()
A Dgp100.c35 nvkm_wo32(memory, offset + 0, chan->id | chan->runq << 14); in gp100_runl_insert_chan()
127 .runq = &gk208_runq,
A Duchan.c208 int ret, runq = 0; in nvkm_uchan_sclass() local
217 if (chan->runq != runq++) in nvkm_uchan_sclass()
377 ret = nvkm_chan_new_(fifo->func->chan.func, runl, args->v0.runq, cgrp, args->v0.name, in nvkm_uchan_new()
A Dga102.c33 .runq = &ga100_runq,
A Dgk20a.c40 .runq = &gk208_runq,
A Dgm200.c54 .runq = &gk208_runq,
A Dgk110.c120 .runq = &gk104_runq,
A Dchan.h56 int nvkm_chan_new_(const struct nvkm_chan_func *, struct nvkm_runl *, int runq, struct nvkm_cgrp *,
A DKbuild7 nvkm-y += nvkm/engine/fifo/runq.o
A Dgm107.c144 .runq = &gk208_runq,
A Drunl.h67 struct nvkm_runq *runq[2]; member
A Dpriv.h44 const struct nvkm_runq_func *runq; member
A Dtu102.c274 .runq = &gv100_runq,
/linux-6.3-rc2/drivers/gpu/drm/nouveau/include/nvif/
A Dif0020.h10 __u8 runq; member
/linux-6.3-rc2/arch/powerpc/platforms/cell/spufs/
A Dsched.c43 struct list_head runq[MAX_PRIO]; member
491 list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); in __spu_add_to_rq()
514 if (list_empty(&spu_prio->runq[prio])) in __spu_del_from_rq()
827 struct list_head *rq = &spu_prio->runq[best]; in grab_runnable_context()
1090 INIT_LIST_HEAD(&spu_prio->runq[i]); in spu_sched_init()
/linux-6.3-rc2/drivers/gpu/drm/nouveau/include/nvkm/engine/
A Dfifo.h15 int runq; member

Completed in 46 milliseconds

12