Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10235imu; Tue, 8 Jan 2019 13:39:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Wd2EGPS7y59/+4ZC7YDGTMt60yth9SG8UjZrwDollNff9j6lHdEfooe9OKUWrVefLVDLx X-Received: by 2002:a62:59c9:: with SMTP id k70mr3354384pfj.243.1546983548151; Tue, 08 Jan 2019 13:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546983548; cv=none; d=google.com; s=arc-20160816; b=P6Lw3HoNbtf0XnMxvXGD0jb5ZygzbTzw+6dNL8X6CBm3iLzf+E3CPbCnLh7jRYHG5L 7PH20DVoPVqgNgYJazwdXrkrLeMedyFSJC5i88m0/3UySCK6Vf0tFeV1QTcGQmvC1dft VeYK2TOqAdDmj2gEz/V30NqSi7tAy6Id0PYzGvNa7H7itffqT7Fn9UC1nxcQSQ4fS/2Z DbVGeyy4iBdOS7MmhYNJpVZ03N/hin/OVdrZ+smgGQULeZ5e8oN6KuJl7buDhA9DJs/w E1o30XD8dp9n5HCTsf7IxqoDzY+2VvrYv+8NrnTZcrrnfKyb7yy1KNbF0RwAd0FMc6sy 5JHQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nCEKf8nyMcyhCsrIvMFAWNv+1oZeyBh0wdhAS6yro8Y=; b=IxdJYk7rxaTI9HLWdDtGRd/y2jpeGNa2cxzJdptu/9TQl+aRhKD3kEYX7TLrMv3q3p zWbo4wqrOoNRr8zwcAe///t8wD6g2Hzmz/Beo/JRpC1nuTi2iN0cnGVwc9ySnoak2pc1 WVlgl+VajDQKyizv/rAJ61TtlKhfWb8NXTf1Gly6bWU6DfQaansK3UaKoRiz6NCTicGQ N3tCscIWbkpwMqgZNejWGeuDhOohRGGp4T/McAvRYD/ZWQr0MU6mN1KnYwWVo082iE2+ yTS66cuMjvkie7IJnaIViIqBBUUPvGA3OBv/MB0OCgwT9wcj8xrc/PIBqq+04xrtU5Sf gRGw== 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 q7si68738840pfa.99.2019.01.08.13.38.53; Tue, 08 Jan 2019 13:39:08 -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 S1730306AbfAHVhr (ORCPT + 99 others); Tue, 8 Jan 2019 16:37:47 -0500 Received: from muru.com ([72.249.23.125]:60758 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfAHVhq (ORCPT ); Tue, 8 Jan 2019 16:37:46 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4CEBD8080; Tue, 8 Jan 2019 21:37:52 +0000 (UTC) Date: Tue, 8 Jan 2019 13:37:43 -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: <20190108213743.GN5544@atomide.com> References: <20190107233833.GI5544@atomide.com> <20190108155354.GL5544@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 16:42]: > On Tue, 8 Jan 2019 at 16:53, Tony Lindgren wrote: > > 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. OK yeah looks like that part is working just fine. Adding some printks and debugging over ssh, looks like omap8250_runtime_resume() gets called just fine based on a wakeirq, but then omap8250_runtime_suspend() runs immediately instead of waiting for the three second timeout. Lowering the autosuspend_delay_ms to 2100 ms makes things work again. Anything higher than 2200 ms seems to somehow time out immediately now :) Regards, Tony