From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat Date: Wed, 27 Aug 2014 12:23:47 +0200 Message-ID: <20140827102347.GO15520@phenom.ffwll.local> References: <1409129017-16857-1-git-send-email-daniel.vetter@ffwll.ch> <20140827085158.GC13629@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by gabe.freedesktop.org (Postfix) with ESMTP id C5B7C6E2BB for ; Wed, 27 Aug 2014 03:23:28 -0700 (PDT) Received: by mail-wg0-f52.google.com with SMTP id a1so15609385wgh.23 for ; Wed, 27 Aug 2014 03:23:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140827085158.GC13629@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Daniel Vetter , Intel Graphics Development , Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Wed, Aug 27, 2014 at 09:51:58AM +0100, Chris Wilson wrote: > On Wed, Aug 27, 2014 at 10:43:37AM +0200, Daniel Vetter wrote: > > Now that vlv has runtime pm we kinda should check for that like on the > > pch split platforms. Looks like this was simply lost in the vlv rpm > > enabling. > > Is there a reason why setting up the pipestat prior to enabling > interrupts is verboten, or is it just not done today? The similar warning on pch platforms was added to catch runtime pm bugs where someone enabled some interrupt source, but didn't hold a runtime pm reference. That's just not going to work. So motivation for this patch is vlv/chv runtime pm really. But I also think that this check provides value for driver load/resume/suspend since if we change interrupt settings after the interrupts have been disabled or before enabling something is at least fishy. At least insofar as that our irq install hooks nowadays overwrite all of them with default values. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch