drm/nvc0/fifo: ignore bits in PFIFO_INTR that aren't set in PFIFO_INTR_EN
authorBen Skeggs <bskeggs@redhat.com>
Wed, 26 Sep 2012 23:13:43 +0000 (09:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 26 Sep 2012 23:13:43 +0000 (09:13 +1000)
commit833dd8224edda0bc1cfa1b0fd5cbe7a36fd59db8
tree6b557861889b009555ba1faf7da22131dd306f57
parent79eee7aa0d4de5a42331c63d3c7c735248b53d0c
drm/nvc0/fifo: ignore bits in PFIFO_INTR that aren't set in PFIFO_INTR_EN

PFIFO_INTR = 0x40000000 appears to be a normal case on nvc0/nve0 PFIFO,
the binary driver appears to completely ignore it in its PFIFO interrupt
handler and even masks off the bit (as we do) in PFIFO_INTR_EN at init
time.

The bits still light up in the hardware sometimes though, so lets just
ignore any bits we haven't explicitely requested.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_fifo.c
drivers/gpu/drm/nouveau/nve0_fifo.c