From: Ben Widawsky Subject: Re: [PATCH 1/6] drm/i915: grab force_wake when restoring LCPLL Date: Mon, 19 Aug 2013 15:53:11 -0700 Message-ID: <20130819225310.GB1059@bwidawsk.net> References: <20130819182541.GC7784@nuc-i3427.alporthouse.com> <1376938873-3692-1-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.bwidawsk.net (bwidawsk.net [166.78.191.112]) by gabe.freedesktop.org (Postfix) with ESMTP id 39E44E61C9 for ; Mon, 19 Aug 2013 15:53:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1376938873-3692-1-git-send-email-przanoni@gmail.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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Art Runyan , Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Mon, Aug 19, 2013 at 04:01:13PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > If LCPLL is disabled, there's a chance we might be in package C8 state > or deeper, and we'll get a hard hang when restoring LCPLL (also, a red > led lights up on my motherboard). So grab the force_wake, which will > get us out of RC6 and, as a consequence, out of PC8+ (since we need > RC6 to get into PC8+). > > v2: Call the correct force_wake interface. > > Signed-off-by: Paulo Zanoni Hi Paulo. As I recall, the steps in the bspec are laid out exactly so we don't have to call forcewake. I think the explanation sounds a little fishy. Specifically, I thought D_COMP COMP_FORCE + waiting for PLL lock was sufficient. If it's not, I worry you're papering over another bug, or incorrect bspec sequence. Not opposed to the patch in the meanwhile, but it just feels a little unsafe to me. -- Ben Widawsky, Intel Open Source Technology Center