From: Daniel Vetter Subject: Re: [PATCH] drm/i915: reinit status page registers after gpu reset Date: Wed, 3 Jul 2013 16:33:05 +0200 Message-ID: <20130703143305.GW18285@phenom.ffwll.local> References: <20130703084332.GJ4573@cantiga.alporthouse.com> <1372849014-4196-1-git-send-email-daniel.vetter@ffwll.ch> <20130703111344.GM4573@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C8D0E5D04 for ; Wed, 3 Jul 2013 07:33:07 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id c50so124441eek.39 for ; Wed, 03 Jul 2013 07:33:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130703111344.GM4573@cantiga.alporthouse.com> 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 , Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 03, 2013 at 12:13:44PM +0100, Chris Wilson wrote: > On Wed, Jul 03, 2013 at 12:56:54PM +0200, Daniel Vetter wrote: > > This fixes gpu reset on my gm45 - without this patch the bsd thing is > > forever stuck since the seqno updates never reach the status page. > > > > Tbh I have no idea how this ever worked without rewriting the hws > > registers after a gpu reset. > > > > To satisfy my OCD also give the functions a bit more consistent names: > > - Use status_page everywhere, also for the physical addressed one. > > - Use init for the allocation part and setup for the register setup > > part consistently. > > > > Long term I'd really like to share the hw init parts completely > > between gpu reset, resume and driver load, i.e. to call > > i915_gem_init_hw instead of the individual pieces we might need. > > > > v2: Add the missing paragraph to the commit message about what bug > > exactly this patch here fixes. > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65495 > > Cc: Chris Wilson > > Signed-off-by: Daniel Vetter > > Lots of low hanging fruit here for designating the phases of > initialisation and what is required for reinitialisation, definitely > requires a good renaming session and cleanup. > > Well, I was hoping that this would also help bug 64725, but alas upon > resume we do the full init, rather than the shortcut for reset. > > Reviewed-by: Chris Wilson Picked up for -fixes, thanks for the review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch