From owner-freebsd-x11@FreeBSD.ORG Sat Oct 4 18:31:38 2008 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 DDD5C1065695 for ; Sat, 4 Oct 2008 18:31:38 +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 B36848FC0A for ; Sat, 4 Oct 2008 18:31:38 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.2.109] (c-71-56-39-94.hsd1.ga.comcast.net [71.56.39.94]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id m94IVDTY056648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Oct 2008 14:31:13 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "Paul B. Mahol" In-Reply-To: <3a142e750810041119wc63cdf7u85149c88c5182696@mail.gmail.com> References: <1223134762.1619.32.camel@wombat.2hip.net> <1223138743.1619.35.camel@wombat.2hip.net> <3a142e750810041119wc63cdf7u85149c88c5182696@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-v/ztb80ezidumJoLFhTu" Organization: FreeBSD Date: Sat, 04 Oct 2008 14:31:06 -0400 Message-Id: <1223145067.1619.46.camel@wombat.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.1 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-x11 Subject: Re: drm MSI support 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: Sat, 04 Oct 2008 18:31:39 -0000 --=-v/ztb80ezidumJoLFhTu Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2008-10-04 at 20:19 +0200, Paul B. Mahol wrote: > On 10/4/08, Robert Noland wrote: > > On Sat, 2008-10-04 at 11:39 -0400, Robert Noland wrote: > >> I would like to get some initial feedback on this patch. It enables M= SI > >> on capable cards. (I'm using it on my i965gm) The guys at Intel have > >> done this in the Linux driver. I have implemented it in our > >> infrastructure code which means that we will enable it on any hardware > >> that reports capable. The Intel guys have explicitly blacklisted a > >> couple of 945 class devices, stating that they report capable but don'= t > >> appear to work. While I would like to get verification that these chi= ps > >> don't work, don't be surprised if it doesn't work if you have chips 27= 72 > >> or 27a2. I have not implemented the blacklist bits yet. > >> > >> The Linux crew has never enabled MSI on radeon hardware, though severa= l > >> devices appear to report capable. When I inquired as to why they hadn= 't > >> done so, they just stated that they hadn't gotten around to it. I'm > >> particularly interested to see how this works on radeons. > >> > >> In order to use this patch, you need to be running CURRENT as I had to > >> make a few other changes to vgapci to get this working. You can see if > >> you hardware is capable by running pciconf -lvc. You will see somethi= ng > >> like this: > > > > CURRENT needs to be at least: > > r183194 | rnoland | 2008-09-19 15:11:35 -0400 (Fri, 19 Sep 2008) | 6 > > lines > > > > pci_setup_intr() will only enable MSI/MSI-X for direct children. Add > > methods > > to vga_pci.c to request on behalf of it's children. This causes vgapci > > to show > > up as the interrupt owner in vmstat -i, rather than the child device. > > > > Approved by: jhb(mentor) > > > > robert. > > > >> vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x01f91028 chip=3D0x2a= 028086 > >> rev=3D0x0c hdr=3D0x00 > >> vendor =3D 'Intel Corporation' > >> device =3D 'Mobile 965 Express Integrated Graphics Controller' > >> class =3D display > >> subclass =3D VGA > >> cap 05[90] =3D MSI supports 1 message > >> cap 01[d0] =3D powerspec 3 supports D0 D3 current D0 > >> > >> When drm loads it will also report that it has enabled MSI. > >> > >> Please send me reports of what chips do/don't work. >=20 > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x30a2103c chip=3D0x27a28= 086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Mobile 945GM/GU Express Integrated Graphics Controlle= r' > class =3D display > subclass =3D VGA > cap 05[90] =3D MSI supports 1 message > cap 01[d0] =3D powerspec 2 supports D0 D3 current D0 >=20 >=20 > drm0: on vgapci0 > info: [drm] MSI enabled 1 message(s) > vgapci0: child drm0 requested pci_enable_busmaster > info: [drm] AGP at 0xe0000000 256MB > info: [drm] Initialized i915 1.6.0 20080730 > drm0: [ITHREAD] > vgapci0: child drm0 requested pci_disable_busmaster > info: [drm] MSI released > drm0: detached >=20 > It decrease framerate of glxgears 10x. > stellarium performance is even worse (worse than using software > rendering when DRI is disabled). I expect that you aren't getting interrupts, vmstat -ia will tell you. Yours is one of the cards that Intel blacklisted though, so it's not entirely unexpected. robert. > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" --=-v/ztb80ezidumJoLFhTu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkjntmoACgkQM4TrQ4qfROM/TwCePXrrdFtdrU1DqujQtIwKjFo6 gfEAnjBnXfqJB1lVzT7R1qpVmpVp1i+I =cYb1 -----END PGP SIGNATURE----- --=-v/ztb80ezidumJoLFhTu--