From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 45/53] drm/i915/bdw: Do not call intel_runtime_pm_get() in an interrupt Date: Sat, 26 Jul 2014 11:27:38 +0100 Message-ID: <20140726102738.GA21056@nuc-i3427.alporthouse.com> References: <1402673891-14618-1-git-send-email-oscar.mateo@intel.com> <1402673891-14618-46-git-send-email-oscar.mateo@intel.com> <20140618205413.GH5821@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id CB0676E0E3 for ; Sat, 26 Jul 2014 03:27:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140618205413.GH5821@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 18, 2014 at 10:54:13PM +0200, Daniel Vetter wrote: > On Fri, Jun 13, 2014 at 04:38:03PM +0100, oscar.mateo@intel.com wrote: > > From: Oscar Mateo > > > > Or with a spinlock grabbed, because it might sleep, which is not > > a nice thing to do. Instead, do the runtime_pm get/put together > > with the create/destroy request, and handle the forcewake get/put > > directly. > > > > Signed-off-by: Oscar Mateo > > Looks like a fixup that should be squashed into relevant earlier patches. The whole gen6_gt_force_wake_get() calling intel_runtime_pm_get() is broken due to this - we must be able to read registers in atomic context! Please revert c8c8fb33b37766acf6474784b0d5245dab9a1690 -Chris -- Chris Wilson, Intel Open Source Technology Centre