From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 4/4] drm/i915: set pm._irqs_disabled at IRQ init time Date: Mon, 14 Jul 2014 19:26:33 +0200 Message-ID: <20140714172633.GH15237@phenom.ffwll.local> References: <1403281762-1927-1-git-send-email-jbarnes@virtuousgeek.org> <1403281762-1927-4-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 0EE736E2FC for ; Mon, 14 Jul 2014 10:26:22 -0700 (PDT) Received: by mail-wg0-f50.google.com with SMTP id n12so4379085wgh.21 for ; Mon, 14 Jul 2014 10:26:21 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Paulo Zanoni Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Mon, Jul 14, 2014 at 12:23:11PM -0300, Paulo Zanoni wrote: > 2014-06-20 13:29 GMT-03:00 Jesse Barnes : > > Before we've installed the handler, we can set this and avoid confusing > > init code that then thinks IRQs are enabled and spews complaints > > everywhere. > > But then at some point the DRM layer will call our IRQ init callbacks, > which will initalize the interrupts but leave irqs_disabled as true, > which will also confuse some code somewhere at some point. And it will > only be set to false after we {runtime,}-suspend/resume. The drm irq stuff is _strictly_ a helper library, at least for modesetting drivers. Which means it will never call our callbacks on its own. > This is why I had kept the runtime PM code only used by the runtime PM > stuff. Recently we tried to reuse the runtime PM interrupt code at > other contexts, got regressions and now we're fixing the regressions > using duct tape... Maybe the best approach would be to revert some > patches... Those patches where for soix, so feature work. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch