Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp940379imu; Wed, 9 Jan 2019 08:51:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN51JiHYhzisI1heQAhn/s3HQUPYN+6QbYJbrx0q/OFgzcsNkiLI3dIq8FoD9MxGlJd6eW3B X-Received: by 2002:a62:9111:: with SMTP id l17mr6672285pfe.200.1547052709947; Wed, 09 Jan 2019 08:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052709; cv=none; d=google.com; s=arc-20160816; b=eQUQqiZE8JZrvyMPD7wLAfg82oBufAPSsZ2xnD3Ul0YOdco/9Z2QqQu49S1eU3VpaM SglXmxIstPdMScZRAyGQ65kaaTGkP4FjjXNuVEi9IOMl1LqOCBeVK/erGr6AxW1cK+av M+SvLpEayYRMOFw2lpiPvXtz6NGxqy0ipJfBaqyKhlGWgKVmhtqBH1RsO4FfvByKvfxI yUoqzbiLyyLaX9AByTuTU9iCSYpG7LVb1GWd4PLsGKtIh7mS7mwwqd/6C7GjtIBFM3xl tJDYLCyjWDpmA9YRU59A6oBAo71E1fa+OJgOH5brRF4KDYJqUlJ30r1iBzYjscpNJnF5 RW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SM+StqveG2LkA8D03fuLdWY6oS4LbI+gayBZSDtcU7A=; b=WWOKy9gJC8zMMiuqlGVpQDN+dJcmGBXFzA5sExtVBnVRpCrO+82gq+BcA13TUFmfcC /xtNMChKumpKhz7/Ps5ADxVuzqkElUVNtzVFBUMPt4RnaKjk6+XnGospZWllnAqnv1gi rlr/rnS+PXULq1AwHYX7pQ5s2Va4ZMx5nPO3ti7+rUwoIRp/5jKwGCC2Th7ZtSLuj8Jd jIAhmmsw88r3g74KoIGk6pxiRPLnlHckIUlxYkDPduPYAkVo7INnL7QvB0e0hbD7yeY5 SqiGNxMmCOZW1ovIyfSIBLWRjN9TCZ40t4ufsFpG1Hp8h7aF6cHgfAUe4I9d9jSTpw7j Li2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 t19si13591453pgu.5.2019.01.09.08.51.34; Wed, 09 Jan 2019 08:51:49 -0800 (PST) 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; 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 S1726606AbfAIQuI (ORCPT + 99 others); Wed, 9 Jan 2019 11:50:08 -0500 Received: from muru.com ([72.249.23.125]:32784 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbfAIQuI (ORCPT ); Wed, 9 Jan 2019 11:50:08 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 5984F80C5; Wed, 9 Jan 2019 16:50:13 +0000 (UTC) Date: Wed, 9 Jan 2019 08:50:04 -0800 From: Tony Lindgren To: Vincent Guittot Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , Linux OMAP Mailing List , Ladislav Michl Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers Message-ID: <20190109165004.GQ5544@atomide.com> References: <20190107233833.GI5544@atomide.com> <20190108155354.GL5544@atomide.com> <20190108213743.GN5544@atomide.com> <20190109014218.GA8363@linaro.org> <20190109015124.GO5544@atomide.com> <20190109162846.GP5544@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Vincent Guittot [190109 16:48]: > On Wed, 9 Jan 2019 at 17:28, Tony Lindgren wrote: > > > > * Rafael J. Wysocki [190109 09:44]: > > > On Wed, Jan 9, 2019 at 2:51 AM Tony Lindgren wrote: > > > > > > > > * Vincent Guittot [190109 01:42]: > > > > > Le Tuesday 08 Jan 2019 à 13:37:43 (-0800), Tony Lindgren a écrit : > > > > > > Lowering the autosuspend_delay_ms to 2100 ms makes things work again. > > > > > > Anything higher than 2200 ms seems to somehow time out immediately > > > > > > now :) > > > > > > > > > > This is quite close to the max ns of an int on arm 32bits > > > > > > > > > > Could you try the patch below ? > > > > > > > > Yup great thanks, that's it: > > > > > > > > Tested-by: Tony Lindgren > > > > > > Cool. Thanks for getting to the bottom of this! > > > > No problem. > > > > One more thing I noticed: The 25% slack can get noticeable > > for larger values. For things like a 3 second uart console > > timeout slack of 750 ms is quite large variation. > > > > Should we have a limit of max 100 ms for the slack? > > Keep in mind that when jiffies were used, expires was rounded to a > full second when delay was greater than a second. So you could already > have difference of up 990ms on arm before this patch > And i don't take into account the rework of timer infra which add > another level of variation, something like up to 640 ms more when the > timer is greater than 2880 ms for arm IIRC I think it was rounded up earlier. Don't we get rounded down now also? Regards, Tony