From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops Date: Wed, 18 Jul 2018 23:50:33 -0700 Message-ID: <20180719065033.GK99251@atomide.com> References: <20180516100842.xuma7b3e727w7bpz@linutronix.de> <20180516104734.357oevogppu5bsg4@linutronix.de> <20180517134820.GI98604@atomide.com> <20180517194834.GW25808@atomide.com> <20180523180052.GP98604@atomide.com> <9bc02408588716c4ddb5a2ffb7d915019433fedc.camel@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <9bc02408588716c4ddb5a2ffb7d915019433fedc.camel@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Andy Shevchenko Cc: Andy Shevchenko , Sebastian Andrzej Siewior , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linux Kernel Mailing List , Greg Kroah-Hartman , Jiri Slaby , "open list:SERIAL DRIVERS" , Arnd Bergmann List-Id: linux-serial@vger.kernel.org * Andy Shevchenko [180718 14:54]: > On Wed, 2018-05-23 at 11:00 -0700, Tony Lindgren wrote: > > I thought you said earlier the issue was that you wanted to keep > > the console enabled all the time and never idle? > > Yes, for kernel console. > To be clear, if user supplies "console=ttySx" it keeps powered on > always. But if there is no such parameter, we are fine with RPM. I'm fine with that as long as we have a way to detach or disable kernel console from userspace after booting so the console uart can idle. > Letting kernel console do power management on the systems without > irq_safe hack is dangerous in terms of loosing important data (crash, or > some other stuff which needs atomic context: kgdb?). Yes in the long run we should get rid of all pm_runtime_irq_safe() use. It increases the parent dev PM runtime usage count permanently blocking the whole domain from idling. Regards, Tony