From owner-freebsd-x11@FreeBSD.ORG Mon Mar 30 14:53:22 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 625231065688 for ; Mon, 30 Mar 2009 14:53:22 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 349BB8FC0A for ; Mon, 30 Mar 2009 14:53:22 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-157-58-177.bna.bellsouth.net [70.157.58.177]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n2UEq1MZ066495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Mar 2009 10:52:02 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "N.J. Mann" In-Reply-To: <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> <20090330105326.GA920@titania.njm.me.uk> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-RqTwJQ6EvQsKLkM7zfbI" Organization: FreeBSD Date: Mon, 30 Mar 2009 09:52:48 -0500 Message-Id: <1238424768.8491.331.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org 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 14:53:22 -0000 --=-RqTwJQ6EvQsKLkM7zfbI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-03-30 at 11:53 +0100, N.J. Mann wrote: > Hi Robert, >=20 >=20 > [Moved from svn-src-all@ to x11@ to merge threads.] >=20 > 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 > > > >=20 > > > > Log: > > > > Rework the management of vblank interrupts a bit. > > > > =20 > > > > When a vt switch occurs the irq handler is uninstalled. Interrup= ts > > > > and the state tracking of what was enabled/disabled wasn't workin= g > > > > properly. This should resolve the reports of "slow windows" afte= r a > > > > vt switch, among other things. The radeon 2d driver seems to wor= k 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 e= vent). > > > > =20 > > > > With this patch, I am able to run glxgears synced to vblank and > > > > vt switch while it is running without ill effects. > > > > =20 > > > > MFC after: 3 days > > > >=20 > > > > Modified: > > > > head/sys/dev/drm/drm_irq.c > > >=20 > > > Is this a possible cure for the problem I reported here: > > > http://lists.freebsd.org/pipermail/freebsd-x11/2009-February/007670.h= tml > >=20 > > 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. >=20 > Okay I tried out your recent changes this morning. >=20 > 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!) >=20 > Any ideas where to go from here? Which chip do you have? I have a patch now that fixes vblank issues, at least I can't break it. This corruption issue on shutdown still exists, but I've never had a problem vt switching. I'm told that something is still wrong with interrupts on g45 though. robert. >=20 > Cheers, > Nick. --=20 Robert Noland FreeBSD --=-RqTwJQ6EvQsKLkM7zfbI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAknQ3MAACgkQM4TrQ4qfROMn2QCfTXAOgYlQjfojeregohqa5a18 znsAoIdh3nv24gWGvM/Mx9ZY/Cxu19Fg =GnDN -----END PGP SIGNATURE----- --=-RqTwJQ6EvQsKLkM7zfbI--