From: Daniel Vetter Subject: Re: [PATCH 1/2] drm/i915: clean up media reset on gm45 Date: Tue, 9 Jul 2013 16:53:15 +0200 Message-ID: <20130709145315.GW18285@phenom.ffwll.local> References: <20130703084052.GI4573@cantiga.alporthouse.com> <1373373867-28080-1-git-send-email-daniel.vetter@ffwll.ch> <20130709135601.GF8571@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 19719E5CD0 for ; Tue, 9 Jul 2013 07:53:14 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d49so3658469eek.37 for ; Tue, 09 Jul 2013 07:53:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130709135601.GF8571@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 Tue, Jul 09, 2013 at 02:56:01PM +0100, Chris Wilson wrote: > On Tue, Jul 09, 2013 at 02:44:26PM +0200, Daniel Vetter wrote: > > Originally I've thought that this fixes up the reset issues on my > > gm45, but that was just a red herring due to b0rked testing. > > > > Still I much prefer writing the right values (all other fields are > > reserved) instead of potentially dragging gunk around. Hence also > > clear the register to 0 after a reset. > > > > Note that Cspec is a bit confused and doesn't explicitly say that all > > the other bits in this register are "reserved, mbz" like usually. > > Instead they're marked as "r/o, default value = 0" which semantically > > amounts to the same thing. > > > > v2: Stop claiming this fixes anything and return 0 if successful > > instead of stack garbage. > > > > v3: Pimp the commit message to explain exactly why I think the docs > > allow us to ditch the rmw cycle, spurred by a discussion with Chris. > > > > Cc: Chris Wilson > > Signed-off-by: Daniel Vetter > Bugzilla? I've dropped the bugzilla ref since at most this is Inspired-by: which is a bit a useless tag. The bug itself was the lack of hw status page reinit, which is clearly a completely different issue. > Reviewed-by: Chris Wilson Queued for -next, thanks for the review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch