Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2008 15:01:53 -0400
From:      Robert Noland <rnoland@FreeBSD.org>
To:        "Paul B. Mahol" <onemda@gmail.com>
Cc:        freebsd-x11 <freebsd-x11@freebsd.org>
Subject:   Re: [CFT] intel g33 & g45
Message-ID:  <1222801313.1740.25.camel@wombat.2hip.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <rnoland@freebsd.org> 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: <Intel 82945GM (945GM GMCH) SVGA controller> 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: <Intel i945GM> 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: <VGA-compatible display> port 0xeff8-0xefff mem
0xfea00000-0xfeafffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
agp0: <Intel GM965 SVGA controller> 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: <ACPI video extension> on vgapci0
vgapci1: <VGA-compatible display> mem 0xfeb00000-0xfebfffff at device
2.1 on pci0
acpi_video1: <ACPI video extension> on vgapci1
evaluation of \\_SB_.PCI0.VID2._DOD makes no sense
...
drm0: <Intel i965GM> 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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1222801313.1740.25.camel>