提交 cc8cd647 编写于 作者: B Ben Skeggs

drm/nvc0/pfifo: semi-handle a couple more irqs

And also, don't disable PFIFO IRQs completely whenever we recieve one,
just when we don't know about it already.
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 c3b90a7d
...@@ -418,6 +418,12 @@ nvc0_fifo_isr(struct drm_device *dev) ...@@ -418,6 +418,12 @@ nvc0_fifo_isr(struct drm_device *dev)
{ {
u32 stat = nv_rd32(dev, 0x002100); u32 stat = nv_rd32(dev, 0x002100);
if (stat & 0x00000100) {
NV_INFO(dev, "PFIFO: unknown status 0x00000100\n");
nv_wr32(dev, 0x002100, 0x00000100);
stat &= ~0x00000100;
}
if (stat & 0x10000000) { if (stat & 0x10000000) {
u32 units = nv_rd32(dev, 0x00259c); u32 units = nv_rd32(dev, 0x00259c);
u32 u = units; u32 u = units;
...@@ -446,10 +452,15 @@ nvc0_fifo_isr(struct drm_device *dev) ...@@ -446,10 +452,15 @@ nvc0_fifo_isr(struct drm_device *dev)
stat &= ~0x20000000; stat &= ~0x20000000;
} }
if (stat & 0x40000000) {
NV_INFO(dev, "PFIFO: unknown status 0x40000000\n");
nv_mask(dev, 0x002a00, 0x00000000, 0x00000000);
stat &= ~0x40000000;
}
if (stat) { if (stat) {
NV_INFO(dev, "PFIFO: unhandled status 0x%08x\n", stat); NV_INFO(dev, "PFIFO: unhandled status 0x%08x\n", stat);
nv_wr32(dev, 0x002100, stat); nv_wr32(dev, 0x002100, stat);
nv_wr32(dev, 0x002140, 0);
} }
nv_wr32(dev, 0x2140, 0);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册