summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-11-05 02:20:35 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-11-05 02:20:35 +1100
commit173a5be28f4ed59e27d7a719f62bc275959b5b70 (patch)
tree6f0732e540f1027762fb352590c50817f455fc83 /shared-core
parent9a999e57af4a3f5a863c21154dd3b9618888c1f7 (diff)
nouveau: hook up an inital fence irq handler
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_irq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared-core/nouveau_irq.c b/shared-core/nouveau_irq.c
index ac507299..ad9a6fcf 100644
--- a/shared-core/nouveau_irq.c
+++ b/shared-core/nouveau_irq.c
@@ -301,6 +301,13 @@ nouveau_pgraph_intr_notify(struct drm_device *dev, uint32_t nsource)
int handled = 0;
DRM_DEBUG("PGRAPH notify interrupt\n");
+
+ if (nsource & NV03_PGRAPH_NSOURCE_NOTIFICATION && dev_priv->ttm) {
+ int channel;
+ if (!nouveau_graph_trapped_channel(dev, &channel))
+ nouveau_fence_handler(dev, channel);
+ }
+
if (dev_priv->card_type == NV_04 &&
(nsource & NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD)) {
uint32_t class, mthd;