From owner-freebsd-x11@FreeBSD.ORG Mon Mar 30 10:53:29 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 609AD106567B for ; Mon, 30 Mar 2009 10:53:29 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id C2DFA8FC21 for ; Mon, 30 Mar 2009 10:53:28 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: (qmail 9285 invoked from network); 30 Mar 2009 10:53:27 -0000 Received: from unknown (HELO titania.njm.me.uk) (86.138.89.22) by smtp004.apm-internet.net with SMTP; 30 Mar 2009 10:53:27 -0000 Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.3/8.14.3) with ESMTP id n2UArQO3001672; Mon, 30 Mar 2009 11:53:26 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.3/8.14.3/Submit) id n2UArQs0001671; Mon, 30 Mar 2009 11:53:26 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Mon, 30 Mar 2009 11:53:26 +0100 From: "N.J. Mann" To: freebsd-x11@freebsd.org, Robert Noland Message-ID: <20090330105326.GA920@titania.njm.me.uk> References: <200903250150.n2P1ou4g062376@svn.freebsd.org> <20090325092904.GA2801@titania.njm.me.uk> <1237999344.1828.6.camel@balrog.2hip.net> <20090227141146.GA88783@titania.njm.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090227141146.GA88783@titania.njm.me.uk> X-Operating-System: FreeBSD 7.2-PRERELEASE User-Agent: mutt-NJM (2009-02-20) Cc: Subject: Re: Xorg 7.4 crashes on exit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 10:53:30 -0000 Hi Robert, [Moved from svn-src-all@ to x11@ to merge threads.] In message <1237999344.1828.6.camel@balrog.2hip.net>, Robert Noland (rnoland@FreeBSD.org) wrote: > On Wed, 2009-03-25 at 09:29 +0000, N.J. Mann wrote: > > In message <200903250150.n2P1ou4g062376@svn.freebsd.org>, > > Robert Noland (rnoland@FreeBSD.org) wrote: > > > Author: rnoland > > > Date: Wed Mar 25 01:50:56 2009 > > > New Revision: 190401 > > > URL: http://svn.freebsd.org/changeset/base/190401 > > > > > > Log: > > > Rework the management of vblank interrupts a bit. > > > > > > When a vt switch occurs the irq handler is uninstalled. Interrupts > > > and the state tracking of what was enabled/disabled wasn't working > > > properly. This should resolve the reports of "slow windows" after a > > > vt switch, among other things. The radeon 2d driver seems to work a > > > bit more correctly than the Intel driver. With the Intel driver, > > > vblank interrupts will be enabled at system startup and will only > > > be disabled after an additional modeset (vt switch, dpms, randr event). > > > > > > With this patch, I am able to run glxgears synced to vblank and > > > vt switch while it is running without ill effects. > > > > > > MFC after: 3 days > > > > > > Modified: > > > head/sys/dev/drm/drm_irq.c > > > > Is this a possible cure for the problem I reported here: > > http://lists.freebsd.org/pipermail/freebsd-x11/2009-February/007670.html > > It could be... interrupts were not working correcty, especially on > Intel. There is likely still an issue with restarting X that I need to > look into, but I've not seen a problem vt switching or shutting down. Okay I tried out your recent changes this morning. First I did a svn update to r190540 to bring my sources up to date and then I built a new 7-Stable world and kernel and installed them. Sadly, I still got the video mode corruption on exiting X or switching from X to a VT. I then merged all the changes from head/sys/dev/drm to stable/7/sys/dev/drm and tried again. Unfortunately, I got the same results. (Xorg.log and dmesg.boot available if required.) The changes I merged were: 190020, 190021, 190022, 190023, 190123, 190124, 190125, 190163, 190164, 190166, 190170, 190282, 190399, 190400, 19401 and 190433. Some of these were probably not relevant, but I did everything to make it easier for me. (I am very much still testing the water with svn and this was the first time I tried doing a merge!) Any ideas where to go from here? Cheers, Nick. --