Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754360AbcJDVOy (ORCPT ); Tue, 4 Oct 2016 17:14:54 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37323 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754060AbcJDVOw (ORCPT ); Tue, 4 Oct 2016 17:14:52 -0400 Date: Tue, 4 Oct 2016 14:14:51 -0700 From: "Paul E. McKenney" To: Rich Felker Cc: Daniel Lezcano , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, Rob Herring , Mark Rutland , Thomas Gleixner Subject: Re: [PATCH v7 2/2] clocksource: add J-Core timer/clocksource driver Reply-To: paulmck@linux.vnet.ibm.com References: <22c1ee0f908fe3bf8b70f5e87d659ceb29af1434.1474693319.git.dalias@libc.org> <20160926210716.GA12855@brightrain.aerifal.cx> <4b02ba7d-4a31-297a-bbbd-be26da615e7b@linaro.org> <20161003221039.GR19318@brightrain.aerifal.cx> <20161004070623.GM14933@linux.vnet.ibm.com> <20161004205837.GC19318@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161004205837.GC19318@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16100421-0008-0000-0000-000005BC36A9 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005853; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000186; SDB=6.00764323; UDB=6.00365019; IPR=6.00540106; BA=6.00004783; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012872; XFM=3.00000011; UTC=2016-10-04 21:14:49 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16100421-0009-0000-0000-00003BDC50E1 Message-Id: <20161004211451.GZ14933@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-04_08:,, 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-1609300000 definitions=main-1610040363 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1801 Lines: 38 On Tue, Oct 04, 2016 at 04:58:37PM -0400, Rich Felker wrote: > On Tue, Oct 04, 2016 at 12:06:23AM -0700, Paul E. McKenney wrote: > > On Mon, Oct 03, 2016 at 06:10:39PM -0400, Rich Felker wrote: > > > On Mon, Sep 26, 2016 at 11:27:14PM +0200, Daniel Lezcano wrote: > > > > On 26/09/2016 23:07, Rich Felker wrote: > > > > > Ping. Is there anything that still needs to be changed for this driver > > > > > to be acceptable? > > > > > > > > It is on my radar. I'm reviewing it. > > > > > > > > Can you elaborate the workaround mentioned in the changelog. I have been > > > > digging into the lkml@ thread but it is not clear if the issue is > > > > related to the time framework, the driver itself or whatever else. Can > > > > you clarify that ? > > > > > > Do you have comments on any remaining issues other than this > > > workaround? If not I don't mind removing the workaround and trying to > > > solve the issue separately later. Let me know and either way I'll > > > submit a v8. > > > > One question of interest to me is whether this patchset prevents the > > RCU CPU stall warnings that you are seeing. > > With the 5ms minimum delta, I didn't observe any rcu_sched stall > warnings. At 2.5ms I thought it was gone but eventually saw one. With > the previous mindelta = 1, i.e. 1 hardware bus period, I get the > stalls regularly. Sounds to me like your low-level clock drivers or your clock hardware is having trouble dealing with short timeouts. I suggest writing a focused test. It is of course quite possible that the failure could occur for any time period, but simply becomes less probable with longer time periods. Or perhaps better, do the tracing that Thomas Gleixner suggested. Or both, in order to get the most information in the shortest period of time. Thanx, Paul