diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dma.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c b/drivers/gpu/drm/nouveau/nouveau_dma.c index 679b03c28df1..c8482a108a78 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dma.c +++ b/drivers/gpu/drm/nouveau/nouveau_dma.c | |||
@@ -179,7 +179,7 @@ READ_GET(struct nouveau_channel *chan, uint32_t *prev_get, uint32_t *timeout) | |||
179 | 179 | ||
180 | void | 180 | void |
181 | nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo, | 181 | nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo, |
182 | int delta, int dwords) | 182 | int delta, int length) |
183 | { | 183 | { |
184 | struct nouveau_bo *pb = chan->pushbuf_bo; | 184 | struct nouveau_bo *pb = chan->pushbuf_bo; |
185 | uint64_t offset = bo->bo.offset + delta; | 185 | uint64_t offset = bo->bo.offset + delta; |
@@ -187,7 +187,7 @@ nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo, | |||
187 | 187 | ||
188 | BUG_ON(chan->dma.ib_free < 1); | 188 | BUG_ON(chan->dma.ib_free < 1); |
189 | nouveau_bo_wr32(pb, ip++, lower_32_bits(offset)); | 189 | nouveau_bo_wr32(pb, ip++, lower_32_bits(offset)); |
190 | nouveau_bo_wr32(pb, ip++, upper_32_bits(offset) | dwords << 10); | 190 | nouveau_bo_wr32(pb, ip++, upper_32_bits(offset) | length << 8); |
191 | 191 | ||
192 | chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; | 192 | chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; |
193 | nvchan_wr32(chan, 0x8c, chan->dma.ib_put); | 193 | nvchan_wr32(chan, 0x8c, chan->dma.ib_put); |