From: Chris Wilson Subject: Re: [PATCH] drm/i915: init hardware to a known state on resume v3 Date: Wed, 24 Apr 2013 10:22:20 +0100 Message-ID: <20130424092220.GA11689@cantiga.alporthouse.com> References: <1366757201-5838-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id D753BE5CFA for ; Wed, 24 Apr 2013 02:22:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1366757201-5838-1-git-send-email-jbarnes@virtuousgeek.org> 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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 23, 2013 at 03:46:41PM -0700, Jesse Barnes wrote: > From: Zou Nanhai > > Needed on SNB to avoid some RC6 related hangs. IIRC, the wa was not for a hang, but for render corruption. > v2: remove unneeded defines (Ken) > v3: update to agp-less driver (Jesse) > fixup for new GEM APIs (Jesse) > make debugfs use new locking (Jesse) > > Signed-off-by: Zou Nanhai > Signed-off-by: Jesse Barnes Hmm, why do you want to emit gen6 state on gen7+? Please tidy up the state emission, it is very very ugly, contains lots of redundancy and some interesting choice of hard coded magic. The emit_wa() flush/idle sequence doesn't do what you want, whereas emit_rect() does. -Chris -- Chris Wilson, Intel Open Source Technology Centre