From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752993AbeEPKIv (ORCPT ); Wed, 16 May 2018 06:08:51 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:38272 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822AbeEPKIt (ORCPT ); Wed, 16 May 2018 06:08:49 -0400 Date: Wed, 16 May 2018 12:08:42 +0200 From: Sebastian Andrzej Siewior To: Andy Shevchenko Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, Arnd Bergmann , Tony Lindgren Subject: Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops Message-ID: <20180516100842.xuma7b3e727w7bpz@linutronix.de> References: <20180515183409.78046-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-15 21:37:18 [+0300], Andy Shevchenko wrote: > On Tue, 2018-05-15 at 21:34 +0300, Andy Shevchenko wrote: > > Kernel console is sensitive to any kind of complex work needed to > > print > > out anything on it. One such case is emergency print during Oops. > > > > This series proposes to disable runtime PM and DMA operations on 8250 > > serial console. > > > > More detailed explanation why is provided in patch 2. > > > > The series has been in our internal trees for years already with no > > problems observed. > > +Cc: Tony. > > You might have some thoughts / test means for this. I haven't look at the patches, just your cover letter. Disabling DMA on kernel-console should be fine. The output is usually short so there shouldn't be much benefit from using it. I remember Tony wanted runtime-pm on the kernel console, too. And he told me explicit how to test it so that it works. Once the UART goes into PM (down), the whole IP block can go into power save mode. The board can be woken up by sending a character via the UART. The first few (incoming / read) characters are lost until the IP block is up again the frequency stable. This is known / expected. In order to achieve the same thing you would have to disable the kernel console on that UART. I leave this to Tony. Sebastian