From: Daniel Vetter Subject: Re: [PATCH 2/3] drm/i915: run the full gem hw init after a gpu reset Date: Wed, 3 Jul 2013 11:22:28 +0200 Message-ID: <20130703092228.GU18285@phenom.ffwll.local> References: <1372838878-11153-1-git-send-email-daniel.vetter@ffwll.ch> <1372838878-11153-2-git-send-email-daniel.vetter@ffwll.ch> <20130703084332.GJ4573@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 F0978E5ED8 for ; Wed, 3 Jul 2013 02:22:29 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id c50so3279116eek.25 for ; Wed, 03 Jul 2013 02:22:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130703084332.GJ4573@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 09:43:32AM +0100, Chris Wilson wrote: > On Wed, Jul 03, 2013 at 10:07:57AM +0200, Daniel Vetter wrote: > > Otherwise we can't resurrect the bsd ring on gm45 completely. I've > > discovered this trick because module reload recovered the bsd ring, > > making it clear that it's not an issue with the hw or our reset code. > > > > While touching the code update the comment to be a bit clearer about > > what we actually want to reinitialize and which pieces we better leave > > untouched. > > > > Note: In my opinion this is not a stable candidate - historically such > > seemingly correct looking changes in the reset code have lead to big > > heaps of scary hilarity. > > At the expense of leaking all allocated state from earlier. The magic > ingredient here I guess is the resetting of the HWS. Meh, I've tried to forget how broken our init sequence is. I still think sharing the code is probably the right thing instead of adding a bunch of magic calls. I'll have a look how we could fix this best. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch