|
@@ -209,8 +209,8 @@ nouveau_fifo_irq_handler(struct drm_device *dev)
|
|
|
}
|
|
|
|
|
|
if (status & NV_PFIFO_INTR_DMA_PUSHER) {
|
|
|
- u32 get = nv_rd32(dev, 0x003244);
|
|
|
- u32 put = nv_rd32(dev, 0x003240);
|
|
|
+ u32 dma_get = nv_rd32(dev, 0x003244);
|
|
|
+ u32 dma_put = nv_rd32(dev, 0x003240);
|
|
|
u32 push = nv_rd32(dev, 0x003220);
|
|
|
u32 state = nv_rd32(dev, 0x003228);
|
|
|
|
|
@@ -224,13 +224,14 @@ nouveau_fifo_irq_handler(struct drm_device *dev)
|
|
|
NV_INFO(dev, "PFIFO_DMA_PUSHER - Ch %d Get 0x%02x%08x "
|
|
|
"Put 0x%02x%08x IbGet 0x%08x IbPut 0x%08x "
|
|
|
"State 0x%08x Push 0x%08x\n",
|
|
|
- chid, ho_get, get, ho_put, put,
|
|
|
- ib_get, ib_put, state, push);
|
|
|
+ chid, ho_get, dma_get, ho_put,
|
|
|
+ dma_put, ib_get, ib_put, state,
|
|
|
+ push);
|
|
|
|
|
|
/* METHOD_COUNT, in DMA_STATE on earlier chipsets */
|
|
|
nv_wr32(dev, 0x003364, 0x00000000);
|
|
|
- if (get != put || ho_get != ho_put) {
|
|
|
- nv_wr32(dev, 0x003244, put);
|
|
|
+ if (dma_get != dma_put || ho_get != ho_put) {
|
|
|
+ nv_wr32(dev, 0x003244, dma_put);
|
|
|
nv_wr32(dev, 0x003328, ho_put);
|
|
|
} else
|
|
|
if (ib_get != ib_put) {
|
|
@@ -239,10 +240,10 @@ nouveau_fifo_irq_handler(struct drm_device *dev)
|
|
|
} else {
|
|
|
NV_INFO(dev, "PFIFO_DMA_PUSHER - Ch %d Get 0x%08x "
|
|
|
"Put 0x%08x State 0x%08x Push 0x%08x\n",
|
|
|
- chid, get, put, state, push);
|
|
|
+ chid, dma_get, dma_put, state, push);
|
|
|
|
|
|
- if (get != put)
|
|
|
- nv_wr32(dev, 0x003244, put);
|
|
|
+ if (dma_get != dma_put)
|
|
|
+ nv_wr32(dev, 0x003244, dma_put);
|
|
|
}
|
|
|
|
|
|
nv_wr32(dev, 0x003228, 0x00000000);
|