drm/nv50: Improve PGRAPH interrupt handling.
authorMarcin Kościelnicki <koriakin@0x04.net>
Mon, 1 Mar 2010 00:18:39 +0000 (00:18 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Mar 2010 06:07:02 +0000 (16:07 +1000)
commit304424e17dd904cef048ef8966d9f54618a915cc
tree43bc2c01d700eb8225380eaa0ba2cab637d6c3c1
parent3bf777bf0ab112527cea103c3681934a9f41c03d
drm/nv50: Improve PGRAPH interrupt handling.

This makes nouveau recognise and report more kinds of PGRAPH errors, as
well as prevent GPU lockups resulting from some of them.

Lots of guesswork was involved and some part of this is probably
incorrect. Some potential-lockuop situations are handled by just
resetting a whole PGRAPH subunit, which doesn't sound like a "proper"
solution, but seems to work just fine... for now.

Signed-off-by: Marcin Kościelnicki <koriakin@0x04.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_irq.c
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv50_fb.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/nv50_graph.c
drivers/gpu/drm/nouveau/nv50_grctx.c