Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1030233imu; Wed, 9 Jan 2019 10:18:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN7irUPZGj5TAKFjutr4Bl9lhEAam0bXi2ogPnKxhR+0ACYctzf1px8ybblff/7j+6V5iC2j X-Received: by 2002:a62:5716:: with SMTP id l22mr7238918pfb.16.1547057934231; Wed, 09 Jan 2019 10:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547057934; cv=none; d=google.com; s=arc-20160816; b=erNtNWQ84eaZ6sbKfnIjpDzgJt5YNVgzgQx9J84DXVYk+eq9yeBIKAsqNn/gQgGgMg fPa7bxQJfeDe86a0hJvfbinr2QjrZ/4rNLygrENyrFnt4zTzhziTorBVgbUt/K/cR/Sl TZpCvE1J7exqS7U6sC3pojhTje+khclgHlENO8ni6MXb/W+ZV0e7QzeYwGa3cl2Tkfbp AM7IBiDXnZuXA8slhL/iFTEzBjiVH5ULR8xpBeNpsFEZYoldnwhwthLk4Xut2AosdXmq I//tlUNPnOI6dLRDUpusq1DKqfEQ3eGwj8Asgn0t7Da6RZjJXuBkrV4VUhu4pfCkl+8g lqjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fdCynCQXJR51Uq88sO1InC8ROmQ7T31Q2pMI8I3KRIY=; b=BRXiqleVjkx5O5rXXaMD2vofgPcdcp84ET2k1T8Fhdo/Udx2/p1qztiCPWw4QFDSrs LxVHYIn6TFccoWZkWEYr3vs0+DNJEXcNRjxQLV9YqbdKbvwqaPnSzJmD4Un0TFnG0p// WMEHU/ClaGF4VjpqzcHxuQXifccrNtWDJLQvIHXvhCgSciI6+xBCbFgOUQk9u/ZGreDm hK3wFNJn+s8+brUGEf53LBY3xeEwO7qOdi6p0LZj/ljMP7//dbCw6g9wmXE6lbk41kFy pPLixmKtOKLjdGFjVnYAV7/O2CurUYoTc3X0XrnVokylywT3Mwx11OiiC/D0oiLN/TJ1 JF5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFqBCiAD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o27si13366170pgl.53.2019.01.09.10.18.38; Wed, 09 Jan 2019 10:18: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; dkim=pass header.i=@linaro.org header.s=google header.b=BFqBCiAD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726412AbfAIQsf (ORCPT + 99 others); Wed, 9 Jan 2019 11:48:35 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:34952 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfAIQsf (ORCPT ); Wed, 9 Jan 2019 11:48:35 -0500 Received: by mail-io1-f67.google.com with SMTP id f4so6553475ion.2 for ; Wed, 09 Jan 2019 08:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fdCynCQXJR51Uq88sO1InC8ROmQ7T31Q2pMI8I3KRIY=; b=BFqBCiADprgxye+2BS0wxgDl9lErgr8cSN6izzYo8ORz7+eTVv76AIP+9ORHl9CJco 2wvdQX/qWVKUwMfr5hC0oyLaXyyQQQ/P/nufVdFam6MOx9ZyMX2kHfX8g93gQ5bmdJy6 xyrmWN4DLI7ohts8fK85H6eCs7gjl4dz6ydx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fdCynCQXJR51Uq88sO1InC8ROmQ7T31Q2pMI8I3KRIY=; b=g4Z/4ZbPiar5Fc208Sf5I0waXhMfsa0zf9/TU0E4Tux5egFIO0sZfPn1bGSBXHhNp+ T4dUzoWQgB7SAwxpvYXyuGCGD/Oc3/NP1STvuLNbRhVHfIcldz2RUMpVAAQgcObfu6fS GfyMkDWQu8NMbIuGvWldIn0Et+0q+aQDP3ypFz90OYnfAEpa+yg44JZDnHzby9TUvsJa fkQmFfbsHnLUmVv1eoBoWWBVF66kIyUT1vnTppmsvo+V4PRkZBn5LkbMbqmIwOsqllkH eu86t3tuny29CidDY867G/gzsTYmZVi0G2CUNN6471gaAlZbqBwhBctMweCjr8FtoKd9 /GKw== X-Gm-Message-State: AJcUukeP7TkxnWF8931rSajsziDX5bryFTn25AE/DDqHz0mfwTUPCkBz a0KGkTtndS4rhtRkK2BnhrwZDrta9DzsaK8jz7F6rA== X-Received: by 2002:a6b:c8c9:: with SMTP id y192mr4084607iof.183.1547052514283; Wed, 09 Jan 2019 08:48:34 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <20190109162846.GP5544@atomide.com> From: Vincent Guittot Date: Wed, 9 Jan 2019 17:48:23 +0100 Message-ID: Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers To: Tony Lindgren Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , Linux OMAP Mailing List , Ladislav Michl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 =C3=A0 13:37:43 (-0800), Tony Lindgren a =C3= =A9crit : > > > > > Lowering the autosuspend_delay_ms to 2100 ms makes things work ag= ain. > > > > > Anything higher than 2200 ms seems to somehow time out immediatel= y > > > > > 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 > > Regards, > > Tony