From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Invariably invalidate before ctx switch Date: Thu, 3 Apr 2014 17:28:54 +0200 Message-ID: <20140403152854.GK7225@phenom.ffwll.local> References: <1396503023-3114-1-git-send-email-benjamin.widawsky@intel.com> <20140403070535.GJ5602@nuc-i3427.alporthouse.com> <20140403102138.GT21652@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by gabe.freedesktop.org (Postfix) with ESMTP id EA6626E3DA for ; Thu, 3 Apr 2014 08:28:58 -0700 (PDT) Received: by mail-we0-f181.google.com with SMTP id q58so1978433wes.26 for ; Thu, 03 Apr 2014 08:28:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140403102138.GT21652@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Intel GFX , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Thu, Apr 03, 2014 at 01:21:38PM +0300, Ville Syrj=E4l=E4 wrote: > On Thu, Apr 03, 2014 at 08:05:35AM +0100, Chris Wilson wrote: > > On Wed, Apr 02, 2014 at 10:30:23PM -0700, Ben Widawsky wrote: > > > We have been setting the bit which was originally BIOS dependent sinc= e: > > > commit f05bb0c7b624252a5e768287e340e8e45df96e42 > > > Author: Chris Wilson > > > Date: Sun Jan 20 16:33:32 2013 +0000 > > > = > > > drm/i915: GFX_MODE Flush TLB Invalidate Mode must be '1' for scan= line waits > > > = > > > Therefore, we do not need to try to figure it out dynamically and we = can > > > just always invalidate the TLBs. > > > = > > > It's a partial revert of: > > > commit 12b0286f49947a6cdc9285032d918466a8c3f5f9 > > > Author: Ben Widawsky > > > Date: Mon Jun 4 14:42:50 2012 -0700 > > > = > > > drm/i915: possibly invalidate TLB before context switch > > > = > > > The original commit attempted to only invalidate when necessary > > > (very much a relic from the old days). Now, we can just always invali= date. > > > = > > > I guess the old TODO still exists. Since we seem to have abandoned ILK > > > contexts however, there isn't much point in even remembering. > > > = > > > Cc: Chris Wilson > > > Signed-off-by: Ben Widawsky > > = > > Seems reasonable, except in most cases (execbuffer) there will be > > a following cache-invalidate as part of the move-to-gpu. > = > Except we still move_to_gpu() before the context switch. My fbc related > patch to change that order never got merged. Hm, pointer to that thing? I guess we need to sign up someone to dig out all your fbc patches and get them in line in prep for bdw. At least another opportunity to beat all that into better shape ... -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch