aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_fifo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_fifo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fifo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_fifo.c b/drivers/gpu/drm/nouveau/nv50_fifo.c
index 1da65bd60c10..815960fe4f43 100644
--- a/drivers/gpu/drm/nouveau/nv50_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv50_fifo.c
@@ -44,7 +44,8 @@ nv50_fifo_playlist_update(struct drm_device *dev)
44 44
45 /* We never schedule channel 0 or 127 */ 45 /* We never schedule channel 0 or 127 */
46 for (i = 1, nr = 0; i < 127; i++) { 46 for (i = 1, nr = 0; i < 127; i++) {
47 if (dev_priv->fifos[i] && dev_priv->fifos[i]->ramfc) { 47 if (dev_priv->channels.ptr[i] &&
48 dev_priv->channels.ptr[i]->ramfc) {
48 nv_wo32(cur, (nr * 4), i); 49 nv_wo32(cur, (nr * 4), i);
49 nr++; 50 nr++;
50 } 51 }
@@ -60,7 +61,7 @@ static void
60nv50_fifo_channel_enable(struct drm_device *dev, int channel) 61nv50_fifo_channel_enable(struct drm_device *dev, int channel)
61{ 62{
62 struct drm_nouveau_private *dev_priv = dev->dev_private; 63 struct drm_nouveau_private *dev_priv = dev->dev_private;
63 struct nouveau_channel *chan = dev_priv->fifos[channel]; 64 struct nouveau_channel *chan = dev_priv->channels.ptr[channel];
64 uint32_t inst; 65 uint32_t inst;
65 66
66 NV_DEBUG(dev, "ch%d\n", channel); 67 NV_DEBUG(dev, "ch%d\n", channel);
@@ -118,7 +119,7 @@ nv50_fifo_init_context_table(struct drm_device *dev)
118 NV_DEBUG(dev, "\n"); 119 NV_DEBUG(dev, "\n");
119 120
120 for (i = 0; i < NV50_PFIFO_CTX_TABLE__SIZE; i++) { 121 for (i = 0; i < NV50_PFIFO_CTX_TABLE__SIZE; i++) {
121 if (dev_priv->fifos[i]) 122 if (dev_priv->channels.ptr[i])
122 nv50_fifo_channel_enable(dev, i); 123 nv50_fifo_channel_enable(dev, i);
123 else 124 else
124 nv50_fifo_channel_disable(dev, i); 125 nv50_fifo_channel_disable(dev, i);
@@ -392,7 +393,7 @@ nv50_fifo_unload_context(struct drm_device *dev)
392 if (chid < 1 || chid >= dev_priv->engine.fifo.channels - 1) 393 if (chid < 1 || chid >= dev_priv->engine.fifo.channels - 1)
393 return 0; 394 return 0;
394 395
395 chan = dev_priv->fifos[chid]; 396 chan = dev_priv->channels.ptr[chid];
396 if (!chan) { 397 if (!chan) {
397 NV_ERROR(dev, "Inactive channel on PFIFO: %d\n", chid); 398 NV_ERROR(dev, "Inactive channel on PFIFO: %d\n", chid);
398 return -EINVAL; 399 return -EINVAL;