From owner-freebsd-x11@FreeBSD.ORG Tue Sep 30 19:02:24 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 65C401065689 for ; Tue, 30 Sep 2008 19:02:24 +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 3A3858FC16 for ; Tue, 30 Sep 2008 19:02:24 +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 m8UJ1xCX024937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Sep 2008 15:01:59 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "Paul B. Mahol" In-Reply-To: <3a142e750809301149qdb252c5j743878ccffbc8b7b@mail.gmail.com> References: <1222735160.1683.6.camel@wombat.2hip.net> <3a142e750809300245w8d9e720w5da705ced21aec6a@mail.gmail.com> <1222777194.1683.29.camel@wombat.2hip.net> <1222789921.1740.4.camel@wombat.2hip.net> <3a142e750809301149qdb252c5j743878ccffbc8b7b@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Lp3aSWK8RUQ1bt3QSiOe" Organization: FreeBSD Date: Tue, 30 Sep 2008 15:01:53 -0400 Message-Id: <1222801313.1740.25.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.0 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: [CFT] intel g33 & g45 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: Tue, 30 Sep 2008 19:02:24 -0000 --=-Lp3aSWK8RUQ1bt3QSiOe Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2008-09-30 at 20:49 +0200, Paul B. Mahol wrote: > On 9/30/08, Robert Noland wrote: > > On Tue, 2008-09-30 at 08:19 -0400, Robert Noland wrote: > >> > > This is against -CURRENT, but may apply to STABLE as well. > > > > I have checked and it does apply to RELENG_7 cleanly as well, though th= e > > agp code is located in sys/pci on 7. > > > > patch is http://people.freebsd.org/~rnoland/agp_i810-g33-g45.patch >=20 > That one works fine. (Old one have bogus whitespace diff) >=20 > Old problem is still there (DRI broken on i945GM, unloading agp causes pa= nic). > (I rebuilded both agp and drm modules) Yes, this wasn't expected to fix whatever is going on with 945gm. The issue with uloading agp is that some of the agp resources are being freed by drm, either on it's own or by calling into agp. I haven't figured out which module is actually to blame yet, but I don't think that it is related to the issues that your seeing. > Output is more verbose: >=20 > agp0: on vgapci0 > agp0: detected 7932k stolen memory > agp0: aperture size is 256M > agp0: AGP_I810_PGTBL_CTL: 3ffc0001 > agp0: AGP_I855_GCC1: 0x30 > agp0: AGP_I915_MSAC: 0xd9 This is just because I'm dumping the card registers in the patch, I'll disable that when I commit it. > agp0: Aperture resource size: 268435456 bytes > drm0: on vgapci0 > vgapci0: child drm0 requested pci_enable_busmaster > info: [drm] AGP at 0xe0000000 256MB > info: [drm] Initialized i915 1.6.0 20080312 > drm0: [ITHREAD] >=20 >=20 > I think problem started after vgapci0 and vgapci1 appeared in dmesg outpu= t. drm isn't attaching to vgapci1, except on 852/5 cards which have the same pci id on both heads. > How to make sure that Xorg use vgapci0 and not vgapci1? >=20 > Do you have same card/output like mine? pretty much. vgapci0: port 0xeff8-0xefff mem 0xfea00000-0xfeafffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7676k stolen memory agp0: aperture size is 256M agp0: AGP_I810_PGTBL_CTL: 7ff80001 agp0: AGP_I855_GCC1: 0x30 agp0: AGP_I915_MSAC: 0x00 agp0: Aperture resource size: 268435456 bytes acpi_video0: on vgapci0 vgapci1: mem 0xfeb00000-0xfebfffff at device 2.1 on pci0 acpi_video1: on vgapci1 evaluation of \\_SB_.PCI0.VID2._DOD makes no sense ... 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] robert. --=-Lp3aSWK8RUQ1bt3QSiOe 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) iEYEABECAAYFAkjid6EACgkQM4TrQ4qfROPsigCeOI+jEjMYh+y9oVAUSFPOMsZU hjUAn0Q0xqRkYqLbf08N9Yr/GKUOUBxU =raWd -----END PGP SIGNATURE----- --=-Lp3aSWK8RUQ1bt3QSiOe--