Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4941627imu; Tue, 8 Jan 2019 08:49:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN5aa8VmgjnQEf2clJk1yMK5leMEZSLb9Bw2lZcK2yk75Oxwfau33hYnjNDii5NL6QRG9Cqj X-Received: by 2002:a63:b649:: with SMTP id v9mr2165154pgt.436.1546966159207; Tue, 08 Jan 2019 08:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546966159; cv=none; d=google.com; s=arc-20160816; b=YKO9JjGMq1O5niWsxhC27YuoguM1qyc7HO6s4GbVkjTNOJo+XVjtXLY5AFSNbuFZ15 MDYsT5d9ygIot0OCUPxhz5PWbTod4MVkv/LQXKbcQRBnEzeiTYwAdJAd2PoObMoZQP0h dqfsHVKk4pDWhQPgjdL7DkGZPCq4huS0Oy/jaZGncmKzfbYL+L8brDS7qJYEFVNSx/Jo UuXyxyfTAsNihsni2sS3j8+EMIlmL8lo1bbG4SliCZ1iEp8a/dkPfe+1KJvn9taeHO9d gQ8Rr9NCXcP1vbxrubOTpensRmFwSBb0SjJiC6DYjmyRhW5S7+5kj030tADcMuqJivrB 3h4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=T77jOpgl5kT9nsJy++gxqYvIqefMlA9GSijxs1pT/Wg=; b=g38tqQP1QlwBbymdS4UJXmhtV9HNHvoouUxPOfmPe6WxxpsqMUaFRC1VVLq29DyCN/ 0t6y6nDP2htKcU//O6jBPuNVNG3EgdLr4vzEAGe53LdmW9lEA+fnd/+3eRlhNpkOgCcK E4RgnRkw8AH1SV4I19PU42cCyM5KKzjF9oe4QX9WGu1BiQm4BKYIoTj3GdirCNCuQ4X0 cDQJgW8+/jsEdL2TjmlNbULlZ1Iis6QCSIXs3jLQ+u9SfG4/XvjxN8WeXdFE5RvyRjPk h+eD9gDzm/I3uAf6YCEUywVhL/xR/93MrCZq3jG88qkFazp1Hx/V8hUILQEfP+bJPEgh 038Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UsGIUpO+; 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 v16si9564863plo.182.2019.01.08.08.49.03; Tue, 08 Jan 2019 08:49:19 -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=UsGIUpO+; 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 S1728113AbfAHQmW (ORCPT + 99 others); Tue, 8 Jan 2019 11:42:22 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:40582 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfAHQmV (ORCPT ); Tue, 8 Jan 2019 11:42:21 -0500 Received: by mail-it1-f193.google.com with SMTP id h193so6846097ita.5 for ; Tue, 08 Jan 2019 08:42:20 -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; bh=T77jOpgl5kT9nsJy++gxqYvIqefMlA9GSijxs1pT/Wg=; b=UsGIUpO+pD7kOlewF36d5G4TyyYE5FO+ZOSdX+U84B8FptCA8y9qf45KISLT6lSGay 4dWiWRMWrovQ3OLKBTsPSLwyrff2S66LvaP0lk55hunhTxMEO34/1BIL+gB8y82xFpaH gAKqC/x8LGRkTGv4XqxXcoAFae6c3ptqQ5ASo= 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; bh=T77jOpgl5kT9nsJy++gxqYvIqefMlA9GSijxs1pT/Wg=; b=o2dKTo1WMGWdMkRUwk7NRnd8QWVVR4U2SAkQA3eqF4W9LxBJQP0c6wre9D4hyog/Og UmSdGFe95qofARsXLfFzpwlbycIrsWiJGMDG4f/rrwRRBt0nwcV0B+AMh4TxUAQF9l2q AwVsJMVql79c9v7lIYkNa7jmm8FTOBs6p+Z6hcgQEfO0WVM771sVszRe3OLWirNcq4wu 4m2jp6N/QLUBKOc6cXpXo/8636eyzMJabm8kaZ/BKNimCVHwFqQRMrrpaR7hrvBXGfWz bs3OECTgwQw8SCaCJ0q7VCRifh7xIsEB4c3jQgqaDqjp1n85s9hdN/KFCCdQXDMelin6 3ItQ== X-Gm-Message-State: AJcUuke3gRYdFq5+T36I9xc+Nugf8q8o+gcC/tozs1u9TI7H/fk8Jmxx tAJEdA62K9BlyTQYHsjNo1rZQ/9Ps0kuRWeu8YSrrg== X-Received: by 2002:a05:660c:a8f:: with SMTP id m15mr1741799itk.114.1546965740395; Tue, 08 Jan 2019 08:42:20 -0800 (PST) MIME-Version: 1.0 References: <20190107233833.GI5544@atomide.com> <20190108155354.GL5544@atomide.com> In-Reply-To: <20190108155354.GL5544@atomide.com> From: Vincent Guittot Date: Tue, 8 Jan 2019 17:42:09 +0100 Message-ID: Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers To: Tony Lindgren Cc: "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , linux-omap@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019 at 16:53, Tony Lindgren wrote: > > * Vincent Guittot [190108 08:00]: > > Hi Tony, > > > > On Tue, 8 Jan 2019 at 00:38, Tony Lindgren wrote: > > > > > > Hi all, > > > > > > Looks like commit 8234f6734c5d ("PM-runtime: Switch autosuspend > > > over to using hrtimers") caused a regression on at least > > > omap5-uevm where 8250 UART rx wake no longer works. I have not > > > noticed this happening on others so far. > > > > > > The devices I've tested all are using 8250 with dedicated > > > wakeirqs configured for the rx pin. I can see the interrupt > > > increase on omap5-uevm after some one or more keypresses, > > > but then nothing. It seems that the uart just falls back > > > asleep right away or something. > > > > > > Any ideas what might be going wrong? > > > > What is the autosuspend value ? Can it be that the autosuspend is set > > to a short value but was finally greater than 10-20ms on arm32. And > > now the autosuspend happens before and this has changed the sequence ? > > It's set to 3 seconds. The difference between let's say > C-A9 pandaboard (that is working) compared to C-A15 omap5-uevm > is that the C-A15 has arch_timer in use. Other than that things > should behave more or less the same way. > > Hmm so could it be that we now rely on timers that that may > not be capable of waking up the system from idle states with > hrtimer? With nohz and hrtimer enabled, timer relies on hrtimer to generate the tick so you should use the same interrupt. > > Regards, > > Tony >