From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18B69C43387 for ; Tue, 8 Jan 2019 15:54:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8F3D21019 for ; Tue, 8 Jan 2019 15:53:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729144AbfAHPx7 (ORCPT ); Tue, 8 Jan 2019 10:53:59 -0500 Received: from muru.com ([72.249.23.125]:60710 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727840AbfAHPx6 (ORCPT ); Tue, 8 Jan 2019 10:53:58 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 19FC88080; Tue, 8 Jan 2019 15:54:04 +0000 (UTC) Date: Tue, 8 Jan 2019 07:53:54 -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: <20190108155354.GL5544@atomide.com> References: <20190107233833.GI5544@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 [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? Regards, Tony