From: Chris Wilson Subject: Re: [PATCH 1/2] drm/i915: clean up media reset on gm45 Date: Tue, 9 Jul 2013 14:56:01 +0100 Message-ID: <20130709135601.GF8571@cantiga.alporthouse.com> References: <20130703084052.GI4573@cantiga.alporthouse.com> <1373373867-28080-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (unknown [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id 3047FE5C67 for ; Tue, 9 Jul 2013 06:56:06 -0700 (PDT) Received: from fireflyinternet.com (unverified [87.106.93.118]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 129483687-1500050 for ; Tue, 09 Jul 2013 14:56:03 +0100 Content-Disposition: inline In-Reply-To: <1373373867-28080-1-git-send-email-daniel.vetter@ffwll.ch> 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: Daniel Vetter Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org 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? Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre