Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp933572imu; Wed, 9 Jan 2019 08:44:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Xie5delAnVmkLI9sz72gj38Go7A6Gj8gCHYVW44iRuIC6vi112OS1UWwfv2JulceTgqyW X-Received: by 2002:a65:610d:: with SMTP id z13mr6104378pgu.427.1547052274878; Wed, 09 Jan 2019 08:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052274; cv=none; d=google.com; s=arc-20160816; b=Jzhuw4h6UTedKuzTNl8pjld8tYiZGJnjgFQjNVMmWHW699f2AkIH4v6MMR0T6wa6uO kNvnCMugTX2ygb6w8fysowSkmAi16p9+HOVCHUoDlDngukZamDtQ1eiO7b0CAFrgFQjj yEcGJm2AwHAsh9Oq6Olo3ygOeuAMZ3RiAIFcJEc4FHm+sTdg7D8TvBiVSGRC+8A3DYzn 4cf/5kOqxQMY/p7LF4FYRwAS2H5VMWOsO4pfbyh6P+2HnhIrhnmfZK/CUcVi7PR0pEwf 4RO7/bLJAZnNjgT31yONO6ZAJp0vMRcnNCuQeKCzKSIsHmxztyQiCuw5wdguvtF2D0By fxCg== 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=UasMerIEMkil34H/FSGb7Q8YAlqzygAF1hkYQP66Mm8=; b=zzw515ZVTflEEM4B5n62FikcTnLqbI3eX/bZrL48jzQRHgrhOZXMMqE446RYXoCKjo xwUo1hDnEMikY+zfqGlYZM5LU8Ixx1ygkLrkOMbdwLIYZLeQKyXO31hUCk3m8eqtiTEX GB581VlYYqshxJ38Dle9sIj0hEF+UgmDU6VReYNY5sZ++DEQlCCii4URIXU4j+tSxSaC 214Ebha9XqWc2hxjuUcfEUyfaL6s9vfvc/ADPM58QSTlXVyhKWld0QG8zVmOpLx9Ryms QNMi9w+PKXjNOZY2Pfeg0CegjWIZ7E18gJy9lZtzViy1spmFrm/2TaT3jNePl4pvMyIi AOUw== 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 y188si7740419pfb.59.2019.01.09.08.44.19; Wed, 09 Jan 2019 08:44:34 -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 S1726117AbfAIQ2v (ORCPT + 99 others); Wed, 9 Jan 2019 11:28:51 -0500 Received: from muru.com ([72.249.23.125]:60994 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfAIQ2u (ORCPT ); Wed, 9 Jan 2019 11:28:50 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id CB48080C5; Wed, 9 Jan 2019 16:28:55 +0000 (UTC) Date: Wed, 9 Jan 2019 08:28:46 -0800 From: Tony Lindgren To: "Rafael J. Wysocki" Cc: Vincent Guittot , "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: <20190109162846.GP5544@atomide.com> References: <20190107233833.GI5544@atomide.com> <20190108155354.GL5544@atomide.com> <20190108213743.GN5544@atomide.com> <20190109014218.GA8363@linaro.org> <20190109015124.GO5544@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 * 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? Regards, Tony