Date: Sat, 21 Mar 2009 23:14:37 -0500 From: Robert Noland <rnoland@FreeBSD.org> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: freebsd-current@FreeBSD.org Subject: Re: drm on i965GM is very sluggish Message-ID: <1237695277.1756.32.camel@balrog.2hip.net> In-Reply-To: <20090322035719.GA49263@troutmask.apl.washington.edu> References: <20090322021852.GA48543@troutmask.apl.washington.edu> <1237688696.1756.3.camel@balrog.2hip.net> <20090322022846.GA48644@troutmask.apl.washington.edu> <1237689169.1756.5.camel@balrog.2hip.net> <20090322024755.GA48794@troutmask.apl.washington.edu> <1237691360.1756.13.camel@balrog.2hip.net> <20090322032707.GA49072@troutmask.apl.washington.edu> <1237693139.1756.22.camel@balrog.2hip.net> <20090322035719.GA49263@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-8Qzh9ffMx2/zfkJcVYiZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2009-03-21 at 20:57 -0700, Steve Kargl wrote: > On Sat, Mar 21, 2009 at 10:38:59PM -0500, Robert Noland wrote: > > On Sat, 2009-03-21 at 20:27 -0700, Steve Kargl wrote: > > > On Sat, Mar 21, 2009 at 10:09:20PM -0500, Robert Noland wrote: > > > > On Sat, 2009-03-21 at 19:47 -0700, Steve Kargl wrote: > > > > >=20 > > > > > I also just noticed that dmesg had > > > > >=20 > > > > > drm0: <Intel i965GM> on vgapci0 > > > > > info: [drm] MSI enabled 1 message(s) > > > > >=20 > > > > > Is it possible to disable MSI and still run drm? > > > >=20 > > > > Yes, There is a tuneable hw.drm.msi > > > >=20 > > > > I did do all of the msi development on a 965gm. Unfortunately, I n= o > > > > longer have access to that hardware. > > > >=20 > > > > Do you have witness enabled? > > > >=20 > > >=20 > > > Yes. And invariants. > >=20 > > Ok, and it isn't screaming that I did something bad? Mostly this is > > just a sync to what Intel is shipping... I did replace my irq handler > > with anholt's, but they were pretty close. > >=20 >=20 > Neither witness nor invariant appear unhappy. The only think I see > in /var/log/messages is=20 >=20 > Mar 21 19:30:33 REMOVE kernel: error: [drm:pid22190:i915_get_vblank_count= er] *ERROR* trying to get vblank count for disabled pipe 0 I thought that I fixed this... I guess not. On the 965gm's LVDS is on pipe 1, so if your using a laptop with only the built in display, pipe 1 is active and pipe 0 is not. Something is being brain damaged and asking for vblank on both pipes or the wrong pipe. Are you seeing it only on vt switch, or in the logs while things are running? It should be harmless, at one point I had converted it to a debug message, but it slipped back in as an error. > IIRC, you said this can be ignored. >=20 > I'll try disabling MSI later tonight. There is a hardware errata on the 965gm regarding msi. Intel had huge trouble when they tried enabling it, but I could never produce the issue. They disabled msi for a while, but were still having problems. Then Eric reworked the irq handler much like mine and they re-enabled it. I ran that way on my 965 for quite a while before I pushed that code into the tree. It looks like what is happening is that user interrupts which Intel uses as markers in the command stream, are getting lost. Then it stuck waiting on things to catch up. I'm betting that if you enable drm debugging you will see several ioctl interrupted or restarting ioctl messages. I'm really frustrated with interrupts on Intel... You would think they could get this right. robert. --=20 Robert Noland <rnoland@FreeBSD.org> FreeBSD --=-8Qzh9ffMx2/zfkJcVYiZ 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) iEYEABECAAYFAknFuy0ACgkQM4TrQ4qfROM+AgCeN1tc/r73jMGGwowtwmUs02Tq WjwAnidL1avsgTGaYAERslIoLH+1EHER =4r7W -----END PGP SIGNATURE----- --=-8Qzh9ffMx2/zfkJcVYiZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1237695277.1756.32.camel>