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

drm/nve0/fifo: engine intr

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 7a42f492
...@@ -646,6 +646,12 @@ nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit) ...@@ -646,6 +646,12 @@ nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit)
nv_wr32(priv, 0x040108 + (unit * 0x2000), stat); nv_wr32(priv, 0x040108 + (unit * 0x2000), stat);
} }
static void
nve0_fifo_intr_engine(struct nve0_fifo_priv *priv)
{
nouveau_event_trigger(priv->base.uevent, 0);
}
static void static void
nve0_fifo_intr(struct nouveau_subdev *subdev) nve0_fifo_intr(struct nouveau_subdev *subdev)
{ {
...@@ -737,7 +743,7 @@ nve0_fifo_intr(struct nouveau_subdev *subdev) ...@@ -737,7 +743,7 @@ nve0_fifo_intr(struct nouveau_subdev *subdev)
} }
if (stat & 0x80000000) { if (stat & 0x80000000) {
nouveau_event_trigger(priv->base.uevent, 0); nve0_fifo_intr_engine(priv);
nv_wr32(priv, 0x002100, 0x80000000); nv_wr32(priv, 0x002100, 0x80000000);
stat &= ~0x80000000; stat &= ~0x80000000;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册