Date: Sun, 19 Aug 2007 21:30:07 GMT From: vehemens <vehemens@verizon.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/114688: [drm] RADEON/AIGLX/DRM Problem Message-ID: <200708192130.l7JLU7O2035199@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/114688; it has been noted by GNATS.
From: vehemens <vehemens@verizon.net>
To: bug-followup@freebsd.org
Cc:
Subject: Re: kern/114688: [drm] RADEON/AIGLX/DRM Problem
Date: Sun, 19 Aug 2007 14:24:46 -0700
Tracking priv->refs seems to be a better approach. With this change, I can
restart the xserver and run beryl.
It has been tested using a slightly modified git drm driver. The patch is for
the 7.0 driver code.
--- drm_drv.c.orig 2006-09-07 16:04:47.000000000 -0700
+++ drm_drv.c 2007-08-19 13:43:41.000000000 -0700
@@ -711,6 +711,8 @@
return EINVAL;
}
+// if (--priv->refs == 0) {
+
if (dev->driver.preclose != NULL)
dev->driver.preclose(dev, filp);
@@ -786,7 +788,7 @@
dev->buf_pgid = 0;
#endif /* __NetBSD__ || __OpenBSD__ */
- if (--priv->refs == 0) {
+// if (--priv->refs == 0) {
if (dev->driver.postclose != NULL)
dev->driver.postclose(dev, priv);
TAILQ_REMOVE(&dev->files, priv, link);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708192130.l7JLU7O2035199>
