Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbdGQMjq (ORCPT ); Mon, 17 Jul 2017 08:39:46 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36336 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbdGQMjo (ORCPT ); Mon, 17 Jul 2017 08:39:44 -0400 Date: Mon, 17 Jul 2017 05:39:38 -0700 From: "Paul E. McKenney" To: Tony Lindgren Cc: Alex Shi , "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux PM , Linux OMAP Mailing List , Catalin Marinas , Will Deacon Subject: Re: Regression with suspicious RCU usage splats with cpu_pm change Reply-To: paulmck@linux.vnet.ibm.com References: <20170713070749.GE16509@atomide.com> <20170713124318.GK2393@linux.vnet.ibm.com> <20170717060806.GC10026@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170717060806.GC10026@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17071712-0044-0000-0000-0000036EEEB3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007377; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00888845; UDB=6.00443923; IPR=6.00669018; BA=6.00005475; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016247; XFM=3.00000015; UTC=2017-07-17 12:39:42 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17071712-0045-0000-0000-0000079CF411 Message-Id: <20170717123938.GP2393@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-17_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707170200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1236 Lines: 31 On Sun, Jul 16, 2017 at 11:08:07PM -0700, Tony Lindgren wrote: > * Alex Shi [170716 16:25]: > > I reused the rcu_irq_enter_irqson() from RCU_NONIDLE to avoid this issue. > > It works fine. > > > > Tony, Could you like to give a tested-by if this patch works for you. > > Yeah that keeps things booting for me with no splats so: > > Tested-by: Tony Lindgren > > In general, it seems we're missing the knowledge in Linux kernel > of when the entire system is idle. Right now it seems that only > cpuidle_coupled knows that? > > We could probably simplify things by adding some PM state for > entire system idle. Then cpuidle code and timer code could use > that to test when it's safe to do whatever the SoC needs to do > to enter deeper power states. > > If we already have something like that, please do let me know :) Well, we used to have CONFIG_NO_HZ_FULL_SYSIDLE, which detected full-system idle lazily so as to avoid scalability bottlenecks. https://lwn.net/Articles/558284/ No one was using it, so I removed it last merge window. The patch that removed it is at sysidle.2017.05.11a, which can probably still be reverted cleanly. Or just use v4.11 or earlier. Thanx, Paul