From: Eric Anholt Subject: Re: [PATCH 2/3] drm/i915: Force sync command ordering (Gen6+) Date: Thu, 08 Dec 2011 18:35:24 -0800 Message-ID: <87y5umxyj7.fsf@eliezer.anholt.net> References: <1319337685-26195-1-git-send-email-ben@bwidawsk.net> <1319337685-26195-2-git-send-email-ben@bwidawsk.net> <87fwgwfcvy.fsf@eliezer.anholt.net> <20111207103841.7627b5fe@jbarnes-desktop> <20111207115805.13f5cfde@jbarnes-desktop> <87ty5cf6hc.fsf@eliezer.anholt.net> <20111207130329.1f5fb6c1@jbarnes-desktop> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0008528981==" Return-path: In-Reply-To: <20111207130329.1f5fb6c1@jbarnes-desktop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: Ben Widawsky , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0008528981== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 7 Dec 2011 13:03:29 -0800, Jesse Barnes = wrote: > On Wed, 07 Dec 2011 12:54:07 -0800 > Eric Anholt wrote: >=20 > > On Wed, 7 Dec 2011 11:58:05 -0800, Jesse Barnes wrote: > > > On Wed, 7 Dec 2011 10:38:41 -0800 > > > Jesse Barnes wrote: > > >=20 > > > > On Wed, 07 Dec 2011 10:35:45 -0800 > > > > Eric Anholt wrote: > > > >=20 > > > > > On Sat, 22 Oct 2011 19:41:24 -0700, Ben Widawsky wrote: > > > > > > The docs say this is required for Gen7, and since the bit was a= dded for > > > > > > Gen6, we are also setting it there pit pf paranoia. Particularl= y as > > > > > > Chris points out, if PIPE_CONTROL counts as a 3d state packet. > > > > > >=20 > > > > > > This was found through doc inspection by Ken and applies to Gen= 6+; > > > > > >=20 > > > > > > Cc: Keith Packard > > > > > > Reported-by: Kenneth Graunke > > > > > > Signed-off-by: Ben Widawsky > > > > > > Reviewed-by: Chris Wilson > > > > > > Reviewed-by: Daniel Vetter > > > > >=20 > > > > > Reviewed-by: Eric Anholt > > > > >=20 > > > > > however, it doesn't appear to help Ivybridge IRQ troubles. > > > >=20 > > > > You could try something like the below to force the use of PIPE_NOT= IFY > > > > instead. Only lightly tested on IVB when we had lots of other bugs= , so > > > > I'm not sure if it works at all. > > >=20 > > > Though if it's the blit ring hanging, you'd have to try using a > > > flush_dw notify (if such a thing exists) instead... > >=20 > > Yeah, MI_FLUSH_DW as opposed to MI_STORE_DW + MI_USER_INTERRUPT. >=20 > Looks like there is a notify option, bit 8 of MI_FLUSH_DW. It's a long > shot, but does anyone want to give it a try? Since MI_FLUSH_DW exists on gen6, and keithp says we still have outstanding issues with missed blit IRQs there, I started trying it today. Two kernel branches posted at git://people.freedesktop.org/~anholt/linux/ flush-dw-notify: This is the initial attempt I did with MI_FLUSH_DW with internal notify. Quickly produced missed blit IRQs. I thought this was because the notify was in parallel with the post-sync op, not synced to be after. So I reverted part of the patch and produced... flush-dw: This branch still uses MI_USER_INTERRUPT, with a commit message explaining my theory as to why it works while the previous attempt didn't. But if my theory is correct, then the head commit of that (removing the HWSTAM update of HWS at interrupt time) should be safe, while that commit pretty quickly produced missed interrupts. So, while I've got code at flush-dw~1 that appears to work equivalently to master, my mental model of how the hardware works is clearly still not correct. On gen7, flush-dw~1 still misses IRQs. flush-dw-notify still misses irqs as well, but it may make them less frequent. It would take more testing to quantify. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7hc+wACgkQHUdvYGzw6vdNwACeJy7Rd5na4jsok4J7R8VTDt4o POMAn1tVp9r1ZYAU8LfgQvZ2v5Ri7JT3 =mAo1 -----END PGP SIGNATURE----- --=-=-=-- --===============0008528981== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0008528981==--