Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp202122imu; Tue, 8 Jan 2019 17:53:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ufbafzRePYCf7nYDoo/q7tdXynKBmWZJGKjfwhqWTWuG+rbVneWvFIXD4vIhKl7KgqqpZ X-Received: by 2002:a62:1f53:: with SMTP id f80mr4073820pff.92.1546998834149; Tue, 08 Jan 2019 17:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546998834; cv=none; d=google.com; s=arc-20160816; b=rEaTa6BDlFdet0K42RlmI/7pjJlYGTJgCS1CYvuDCWaMGu7qX1Mj4zT4O+6hysTmD2 y4x282tE6q1Pofvg66eIJBSpId+++Qdgdvz3H8lm45zbn4v8J33cPIQdOs/ZOHn+S7xV WePgMWAlGo8zXBf51lfLnOwa0Fd8PissPsn8R80ditwP3IBYx1L671qcEgD1OXwxam8w GoQSdqLCMA6D2/bHB3mdwApqiEE3PD8lN+bOFZ0rLXW1ZKN/JPNoUKYtHoM7+S/N32IE 8mq3r0WnYGrQY5iIV8KAfUSxENGLw8Q4zFQlR2uXqc/0sxonWmEa9BmHiD1INN3ocR92 +m3g== 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=3PByvwXSSl99NDSjL968IE85i78+LJK1F4LxXuYxLcA=; b=MZ5ph7RzwsAO4VrRP3/ha0nrWrQ6AebIkryDPHVgv1rr2qwJzzGIQoB7Rqrgbsr/cQ YqCeJNFVYNIPbQaNDq0jAejz8qg8BQ0fdSESyv5ZyGMyugx+N+1wIfJhpNbYVCzfClhW wMVGCdNlDt2le9hYlZ+vmmiqBgQFMond5LNBJWIJuwDar/tM1lMHBbciPWmDs/LxgY1z 9SqHaxXO1QiI9RrE9JzAuM+ZPB2g+zpgvqofzNZ9M0QQp2P5Q20qPjaSKSjrMsYSfP22 rk06EQJqBsyg/Xmmk3ny94DrnsOeQ60H0M1E81nh/Er3zXZ1+UsMl4AC3i3nRv/OCiqS /jvg== 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 i16si64622314pgk.445.2019.01.08.17.53.38; Tue, 08 Jan 2019 17:53:54 -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 S1729333AbfAIBv2 (ORCPT + 99 others); Tue, 8 Jan 2019 20:51:28 -0500 Received: from muru.com ([72.249.23.125]:60924 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728593AbfAIBv1 (ORCPT ); Tue, 8 Jan 2019 20:51:27 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 529638080; Wed, 9 Jan 2019 01:51:33 +0000 (UTC) Date: Tue, 8 Jan 2019 17:51:24 -0800 From: Tony Lindgren To: Vincent Guittot Cc: "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , linux-omap@vger.kernel.org Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers Message-ID: <20190109015124.GO5544@atomide.com> References: <20190107233833.GI5544@atomide.com> <20190108155354.GL5544@atomide.com> <20190108213743.GN5544@atomide.com> <20190109014218.GA8363@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190109014218.GA8363@linaro.org> 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 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 > --- > drivers/base/power/runtime.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c > index 7062469..44c5c76 100644 > --- a/drivers/base/power/runtime.c > +++ b/drivers/base/power/runtime.c > @@ -141,7 +141,7 @@ u64 pm_runtime_autosuspend_expiration(struct device *dev) > > last_busy = READ_ONCE(dev->power.last_busy); > > - expires = last_busy + autosuspend_delay * NSEC_PER_MSEC; > + expires = last_busy + (u64)(autosuspend_delay) * NSEC_PER_MSEC; > if (expires <= now) > expires = 0; /* Already expired. */ > > -- > 2.7.4 > > > > > > Regards, > > > > Tony