Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423412AbbEOXbJ (ORCPT ); Fri, 15 May 2015 19:31:09 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:49055 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422967AbbEOXbE (ORCPT ); Fri, 15 May 2015 19:31:04 -0400 Date: Sat, 16 May 2015 00:30:41 +0100 From: Russell King - ARM Linux To: Tomeu Vizoso Cc: Lorenzo Pieralisi , "Rafael J. Wysocki" , "linux-tegra@vger.kernel.org" , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Stephen Warren , Thierry Reding , Alexandre Courbot , Bartlomiej Zolnierkiewicz , Kyungmin Park , Daniel Lezcano , Kukjin Kim , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ARM: tegra: cpuidle: implement cpuidle_state.enter_freeze() Message-ID: <20150515233041.GN2067@n2100.arm.linux.org.uk> References: <1428490480-10144-1-git-send-email-tomeu.vizoso@collabora.com> <20150408115546.GA24271@red-moon> <552643E1.3060200@collabora.com> <285738930.THBQOWvsah@vostro.rjw.lan> <20150410100844.GC23730@red-moon> <20150417140819.GB2347@red-moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 28 On Fri, May 15, 2015 at 11:03:35AM +0200, Tomeu Vizoso wrote: > I have been looking and asking around, and seems like we should > actually leave FIQs enabled when the tick is frozen and only disable > them within enter_freeze. > > My understanding is that FIQ handlers are extremely limited in what > they can do, with the main use being NMI-like functionality. There are > a handful of other FIQ handlers in mainline, but they don't call into > any other kernel code and limit themselves to doing some basic I/O. > > The only reason why they should be disabled in enter_freeze is that > the context of the CPU that is going to a lower power state could > become corrupted if a FIQ gets fired during a save or restore > operation. Right, that makes total sense. (And yes, FIQ handlers are very limited in what they're allowed to do, since they can't take any locks without the potential for deadlock.) -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/