summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/mga_irq.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-03-19 08:36:08 +0000
committerrnoland <rnoland@FreeBSD.org>2009-03-19 08:36:08 +0000
commitd310eb36e24eb1f3b0f9dafa1737acc0730a68fb (patch)
tree772a5cba1bd5927ca7f41c3da21232e64218629e /sys/dev/drm/mga_irq.c
parenteadbcd8e34940289c31fa60ed3214922294094c4 (diff)
downloadFreeBSD-src-d310eb36e24eb1f3b0f9dafa1737acc0730a68fb.zip
FreeBSD-src-d310eb36e24eb1f3b0f9dafa1737acc0730a68fb.tar.gz
Add some debugging so I can see when syscalls are being restarted
consistantly. After a lengthy irc discussion it seems like we shouldn't need to worry about them, but it's nice to know about. MFC after: 3 days
Diffstat (limited to 'sys/dev/drm/mga_irq.c')
-rw-r--r--sys/dev/drm/mga_irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/drm/mga_irq.c b/sys/dev/drm/mga_irq.c
index 005d43d..8e28987 100644
--- a/sys/dev/drm/mga_irq.c
+++ b/sys/dev/drm/mga_irq.c
@@ -139,6 +139,9 @@ int mga_driver_fence_wait(struct drm_device * dev, unsigned int *sequence)
(((cur_fence = atomic_read(&dev_priv->last_fence_retired))
- *sequence) <= (1 << 23)));
+ if (ret == -ERESTART)
+ DRM_DEBUG("restarting syscall\n");
+
*sequence = cur_fence;
return ret;
OpenPOWER on IntegriCloud