55 switch (nv_engidx(object->
engine)) {
65 nv_engctx(ectx)->addr = nv_gpuobj(base)->addr >> 12;
66 nv_wo32(base->
eng, addr + 0x00, 0x00190000);
71 nv_wo32(base->
eng, addr + 0x10, 0x00000000);
72 nv_wo32(base->
eng, addr + 0x14, 0x00000000);
88 switch (nv_engidx(object->
engine)) {
98 nv_wo32(base->
eng, addr + 0x00, 0x00000000);
99 nv_wo32(base->
eng, addr + 0x04, 0x00000000);
100 nv_wo32(base->
eng, addr + 0x08, 0x00000000);
101 nv_wo32(base->
eng, addr + 0x0c, 0x00000000);
102 nv_wo32(base->
eng, addr + 0x10, 0x00000000);
103 nv_wo32(base->
eng, addr + 0x14, 0x00000000);
106 save = nv_mask(priv, 0x002520, 0x0000003f, 1 << engn);
107 nv_wr32(priv, 0x0032fc, nv_gpuobj(base)->addr >> 12);
108 done =
nv_wait_ne(priv, 0x0032fc, 0xffffffff, 0xffffffff);
109 nv_wr32(priv, 0x002520, save);
111 nv_error(priv,
"channel %d unload timeout\n", chan->
base.chid);
126 context = nv_gpuobj(
object)->node->offset >> 4;
128 context = 0x00000004;
130 switch (nv_engidx(object->
engine)) {
161 if (size <
sizeof(*args))
177 *pobject = nv_object(chan);
185 nv_parent(chan)->context_attach = nv84_fifo_context_attach;
186 nv_parent(chan)->context_detach = nv84_fifo_context_detach;
187 nv_parent(chan)->object_attach = nv84_fifo_object_attach;
194 nv_wo32(base->
ramfc, 0x3c, 0x003f6078);
195 nv_wo32(base->
ramfc, 0x44, 0x01003fff);
196 nv_wo32(base->
ramfc, 0x48, chan->
base.pushgpu->node->offset >> 4);
197 nv_wo32(base->
ramfc, 0x4c, 0xffffffff);
198 nv_wo32(base->
ramfc, 0x60, 0x7fffffff);
199 nv_wo32(base->
ramfc, 0x78, 0x00000000);
200 nv_wo32(base->
ramfc, 0x7c, 0x30000001);
201 nv_wo32(base->
ramfc, 0x80, ((chan->
ramht->bits - 9) << 27) |
203 (chan->
ramht->base.node->offset >> 4));
204 nv_wo32(base->
ramfc, 0x88, base->
cache->addr >> 10);
205 nv_wo32(base->
ramfc, 0x98, nv_gpuobj(base)->addr >> 12);
223 if (size <
sizeof(*args))
239 *pobject = nv_object(chan);
247 nv_parent(chan)->context_attach = nv84_fifo_context_attach;
248 nv_parent(chan)->context_detach = nv84_fifo_context_detach;
249 nv_parent(chan)->object_attach = nv84_fifo_object_attach;
253 ilength = log2i(args->
ilength / 8);
255 nv_wo32(base->
ramfc, 0x3c, 0x403f6078);
256 nv_wo32(base->
ramfc, 0x44, 0x01003fff);
257 nv_wo32(base->
ramfc, 0x48, chan->
base.pushgpu->node->offset >> 4);
260 nv_wo32(base->
ramfc, 0x60, 0x7fffffff);
261 nv_wo32(base->
ramfc, 0x78, 0x00000000);
262 nv_wo32(base->
ramfc, 0x7c, 0x30000001);
263 nv_wo32(base->
ramfc, 0x80, ((chan->
ramht->bits - 9) << 27) |
265 (chan->
ramht->base.node->offset >> 4));
266 nv_wo32(base->
ramfc, 0x88, base->
cache->addr >> 10);
267 nv_wo32(base->
ramfc, 0x98, nv_gpuobj(base)->addr >> 12);
286 nv_wr32(priv, 0x002600 + (chid * 4), 0x80000000 | ramfc->
addr >> 8);
292 nv84_fifo_ofuncs_dma = {
293 .ctor = nv84_fifo_chan_ctor_dma,
295 .init = nv84_fifo_chan_init,
302 nv84_fifo_ofuncs_ind = {
303 .ctor = nv84_fifo_chan_ctor_ind,
305 .init = nv84_fifo_chan_init,
312 nv84_fifo_sclass[] = {
333 *pobject = nv_object(base);
368 .ctor = nv84_fifo_context_ctor,
390 *pobject = nv_object(priv);
404 nv_subdev(priv)->unit = 0x00000100;
406 nv_engine(priv)->cclass = &nv84_fifo_cclass;
407 nv_engine(priv)->sclass = nv84_fifo_sclass;
415 .ctor = nv84_fifo_ctor,