From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kenneth Graunke Subject: Re: [PATCH 1/3] drm/i915: Fix MI_DISPLAY_FLIP plane select offset on Ivybridge. Date: Wed, 08 Jun 2011 02:54:36 -0700 Message-ID: <4DEF46DC.9050203@whitecape.org> References: <1307487281-3015-1-git-send-email-kenneth@whitecape.org> <4DEEC869.7020707@whitecape.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from homiemail-a38.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by gabe.freedesktop.org (Postfix) with ESMTP id 011629E9C6 for ; Wed, 8 Jun 2011 02:54:32 -0700 (PDT) In-Reply-To: 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On 06/08/2011 02:36 AM, Chris Wilson wrote: > On Tue, 07 Jun 2011 17:55:05 -0700, Kenneth Graunke wrote: >> On 06/07/2011 04:14 PM, Keith Packard wrote: >>> What's this last DWORD supposed to be for? The IVB spec says length >>> should be '1' and there should be only 3 DWORDS in this command. >> >> Good question. My reading of the docs say that it should be 3 DWORDs on >> SNB as well; this code was directly lifted from "case 6" above (save the >> first line). > > In my ancient copy of the specs, MI_DISPLAY_FLIP is 4 dwords, with this > last dword for programming the panel-fitter and pipesrc. And it also > says that command is applicable to IVB, but as I said it is an ancient > copy. > -Chris That's correct. SNB /does/ include a 4th DWord as you describe---newer specs got mangled and lost that info, somehow. Argh. IVB does only use three DWords, so the last OUT_RING should be nixed. Removing that does change the behavior, but doesn't yet make it work. Thanks! --Kenneth