Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1287639imm; Fri, 28 Sep 2018 15:42:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61bvfDFXnwQFSjJ9dNXeK7MyHHZbgNoSjoS7I92OEAv1925xWMyiGAnY7gFrutoEr4rfhOG X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr586426plo.263.1538174557095; Fri, 28 Sep 2018 15:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538174557; cv=none; d=google.com; s=arc-20160816; b=Pg/Y4SL/manYerp+PJtCjq0F1g9PcOFj6t1UQunRn0kmNNskyrFPJdFcRe3DP04qIc ASGVpt5Uq2oDjCL74JZH6+FvdxDkDWBRGepgzoFVg/1v0n0e9V5lLXZCNW+166/RGj4E dcmt2+uaaf6IkSoLkOhECsVVaNSGY0TBT8ZKp+QvctRhcGXYME4llzYnzFtPQ8VmT5vO qpalb21QCmHDhKvzDbVMoRTLqGctVAaV2JZpY7XwAUYTZhhIWhJn4d+91iMiL0x3folv lJ7IlHE1q+Hn+rn4qoOPmJd/17r1EiMWUdxnMnrOJOeEtVXZ/OFEKRc2YEXTF8OUuwmS ysNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=sYDwMJtleRIaB4Y7RQNuPRSHElQNbA5x2Y3GRQNL0sc=; b=SWTgXoyQERq/TFSM2OVyl6J7sn6QcrOMys05Idnkul+v+RCFkSP6S0b+S2KJEKPwKY G2iE45IV0O9eZOnqPa0SbDfS4lJJWlyoV44Ef2Yuaep0wBSlW94Cqs+U7imGkUPecTgy aSJxlLnofnULhnJ8B63eQSlh8vpSVTd3AxJdcU3/yKiQV9x6lyF1xbmjISrMAS2m39jQ CqaAcM6fhwzOEqMI3B81/z2UaMsKhOehxOcQvySrrw9ixHyycce5lRsgNYeYVeGQMinZ mJOmFXDAE8Ci5W92eKVBn5uxOD5vAzw9RT2xCcV4QJim90ReT1SSRezCx/UaSK1VqAgt 3Vhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aPoCKFLR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15-v6si5869533pgn.389.2018.09.28.15.42.23; Fri, 28 Sep 2018 15:42:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aPoCKFLR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727347AbeI2FGx (ORCPT + 99 others); Sat, 29 Sep 2018 01:06:53 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46528 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbeI2FGx (ORCPT ); Sat, 29 Sep 2018 01:06:53 -0400 Received: by mail-pf1-f195.google.com with SMTP id d8-v6so5198478pfo.13 for ; Fri, 28 Sep 2018 15:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=sYDwMJtleRIaB4Y7RQNuPRSHElQNbA5x2Y3GRQNL0sc=; b=aPoCKFLR95QpIAHeZ4lMykf1JhaFYmZWYubo6g15vLnhPxjCan9x1vca+uHRFpYS/e FJzZBLIPF6pLXbItldGTLwew6OaioZ7EykTx25ZR1rRndaI2Mmgodw5zvXHlmpwI9CVe ltvUdu0X1ZiUVb/el4LWzkzGN8Du2uKwlw49m7FbOkEW4IvmFlbMAuixZJJEzNgCoQqU x1FH/BEsvg5NfWaaBbzuBnRjbhld9bYNO6CEgPXpbjWz2wAGpCxtHubpy3+eR9hROfNY /oRDc5w+LUFUo8s5mWwaOAUFe73WgyEm86K2BN2aNdsFPlUqQudX6rhZKBDK5WzLd3A+ pljw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition:user-agent; bh=sYDwMJtleRIaB4Y7RQNuPRSHElQNbA5x2Y3GRQNL0sc=; b=KO6qMJ/KWF+nLoZC7tjqnUaBknyKIfTQR2ZaLYaVIhy4ofje6broHZ0MAp6EY0DdwG +pFtE4S4Uhj6OvamEJs6wxGMiOBWxlibeIzAP8ugbceZHdDUcMo9nTONHdM/q+5tsLWF OYvl1X2RCvheoG5HutwWjSbucpYNX4vbmCfZytE1GIsDsPuu7SW2DH3L4oU6HR5hKmme ExvmET869OX2Lsxnzo8utpyXcCOhcSBkwMnXofGFwX++k1YC9TF8f2c6VpWQVbqaGtHx au0fLlBloKI0jw3w3rhZqPL7muroE0c+7DeZQUwwbhkk5Oc9ipWLIwSZ/ObSuc1FhLSJ iMJQ== X-Gm-Message-State: ABuFfogDgbYUlaVx6witN4BWRpGDo11f3jfy/DlUwyJ8Sr4czR8A/RSm U1NdWFgeFRylSpnWdYErd7c= X-Received: by 2002:a63:3285:: with SMTP id y127-v6mr615355pgy.104.1538174458978; Fri, 28 Sep 2018 15:40:58 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id z6-v6sm8424016pgr.41.2018.09.28.15.40.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 15:40:57 -0700 (PDT) Date: Fri, 28 Sep 2018 15:40:56 -0700 From: Guenter Roeck To: Phil Edworthy , Greg KH Cc: linux-kernel@vger.kernel.org, Phil Edworthy , Andy Shevchenko , Tony Lindgren Subject: Re: [PATCH] serial: 8250_dw: Fix runtime PM handling Message-ID: <20180928224056.GA10486@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 10, 2018 at 03:13:56PM +0100, Phil Edworthy wrote: > When using kgdb, you get an abort when accessing the UART registers. > This is because the driver has already entered runtime PM and so turned > off the bus clock needed to access the registers. > > To fix this, set the capability indicating Runtime PM is active while idle. > With this patch applied, I get the already reported traceback [1]. Obviously neither the promised revert [2] nor the presumed fix [3] made it into the mainline Kernel. Greg, can you please revert this patch ? If people don't care enough to fix the problem, we should at least not have to suffer the consequences. Thanks, Guenter > Signed-off-by: Phil Edworthy > Signed-off-by: Greg Kroah-Hartman > --- > drivers/tty/serial/8250/8250_dw.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c > index 0529b5cc094b..aff04f1de3a5 100644 > --- a/drivers/tty/serial/8250/8250_dw.c > +++ b/drivers/tty/serial/8250/8250_dw.c > @@ -576,6 +576,10 @@ static int dw8250_probe(struct platform_device *pdev) > if (!data->skip_autocfg) > dw8250_setup_port(p); > > +#ifdef CONFIG_PM > + uart.capabilities |= UART_CAP_RPM; > +#endif > + > /* If we have a valid fifosize, try hooking up DMA */ > if (p->fifosize) { > data->dma.rxconf.src_maxburst = p->fifosize / 4; > -- > 2.7.4 --- [1] https://www.spinics.net/lists/linux-serial/msg30379.html [2] https://www.spinics.net/lists/linux-serial/msg30380.html [3] https://www.spinics.net/lists/linux-serial/msg30757.html