From owner-freebsd-current@FreeBSD.ORG Mon May 4 19:06:03 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0683210656AD for ; Mon, 4 May 2009 19:06:03 +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 04D048FC12 for ; Mon, 4 May 2009 19:06:00 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.4] (adsl-19-214-20.bna.bellsouth.net [68.19.214.20]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n44J5sIP061649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 May 2009 15:05:55 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Alexey Shuvaev In-Reply-To: <20090504184027.GA19125@wep4035.physik.uni-wuerzburg.de> References: <20090504184027.GA19125@wep4035.physik.uni-wuerzburg.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-jCo6m8UbreVdcbyNQWVK" Organization: FreeBSD Date: Mon, 04 May 2009 14:05:41 -0500 Message-Id: <1241463941.1788.31.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,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-current@freebsd.org Subject: Re: intel graphics loosing msi interrupt on subsequent starts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 19:06:04 -0000 --=-jCo6m8UbreVdcbyNQWVK Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-05-04 at 20:40 +0200, Alexey Shuvaev wrote: > Hello all! >=20 > Sorry if it is already reported... >=20 > I have recently upgaded X server from 1.4 to 1.6 > (ports from ~23.01.2009 -> 03.05.2009). > On the first start everything works ok (including [glx]gears). > On the second and subsequent starts everything looks working but jerky, > I need to move mouse around to get some windows redrawn, > [glx]gears print warning message about not getting vblank interrupts > and outputs something about 1-2 frames per 5 seconds. >=20 > The inspectation with vmstat -i has shown that the card generates > interrupts only during the first start of X server. >=20 > If I set hw.pci.enable_msi=3D"0" everything is working fine (start X serv= er > multiple times, switch consoles, [glx]gears, number of irq16-s > is increasing, ...). irq16 is likely shared, so this may or may not be true... At least in some cases, I was seeing the interrupt handler processing events when some other device on the shared interrupt fired. Interrupts on Intel have been a real pain. There is a drm specific tuneable for disabling msi hw.drm.msi=3D0. I have a patch which I'm currently using on my g45 that overhauls the way that we handle interrupts. =20 http://people.freebsd.org/~rnoland/drm-intel-050209.patch Reports have been mixed with this, but it is working for me... robert. > I can't be sure it is only due to X upgrade, > I have upgraded the base system also (~2 weeks old CURRENT -> 03.05.2009)= . >=20 > Some quick to gather system details: >=20 > ~> uname -a > FreeBSD wep4035 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun May 3 03:04:41 C= EST 2009 root@wep4035:/usr/obj/usr/src/sys/GENERIC amd64=20 > (4 GB of RAM, Core2Duo, if it matters) I'm running the same. > >From pciconf -lv: > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x82761043 chip=3D0x29c28= 086 rev=3D0x02 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '(Bearlake) Integrated Graphics Controller' > class =3D display > subclass =3D VGA >=20 > >From dmesg with hw.pci.enable_msi=3D"0": > vgapci0: port 0xbc00-0xbc07 mem 0xfe980000-0xfe9= fffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at device 2.0 on p= ci0 > agp0: on vgapci0 > agp0: detected 7164k stolen memory > agp0: aperture size is 256M > drm0: on vgapci0 > vgapci0: child drm0 requested pci_enable_busmaster > info: [drm] AGP at 0xd0000000 256MB > info: [drm] Initialized i915 1.6.0 20080730 >=20 > >From dmesg with default settings: > vgapci0: port 0xbc00-0xbc07 mem 0xfe980000-0xfe9= fffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at device 2.0 on p= ci0 > agp0: on vgapci0 > agp0: detected 7164k stolen memory > agp0: aperture size is 256M > drm0: on vgapci0 > info: [drm] MSI enabled 1 message(s) > vgapci0: child drm0 requested pci_enable_busmaster > info: [drm] AGP at 0xd0000000 256MB > info: [drm] Initialized i915 1.6.0 20080730 >=20 > Thanks, > Alexey. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " --=20 Robert Noland FreeBSD --=-jCo6m8UbreVdcbyNQWVK 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) iEYEABECAAYFAkn/PIUACgkQM4TrQ4qfROP7lACfXLxo05FsTz+NBpRIor3a5U2c SbEAoINxH3sYIzAUg9YdbHsnP/kZKMH4 =axQf -----END PGP SIGNATURE----- --=-jCo6m8UbreVdcbyNQWVK--