Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1640232imu; Wed, 9 Jan 2019 23:57:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN4H5z/kaAR7ONocWoVs34A4XgGYNDxNrPrtx+98WJQlnNaf/wfvHDS7kBkc1DAENtvsZf2g X-Received: by 2002:a17:902:4401:: with SMTP id k1mr9405826pld.307.1547107068477; Wed, 09 Jan 2019 23:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547107068; cv=none; d=google.com; s=arc-20160816; b=vXJ2Spd/QBOhuZocXsUwJJkrXdQNW4MZcEBu6d9LLfpk3HKdxxSydRqFgt6DMl8/x9 EKRoYsR1PKY4rT/BB5h722ETqHCXvdeHWXXmoKV1xCi0zPmvQ7WDdoV5ZWOgHoPvx09+ DGoPWLPf44K/nqpc/1ga3CdsLz0Ld1VmPg3L7DGe+7JN7P7XbsNi0VQWHGaMWqRq9ah6 7WYeXghO2cJLmN1PA3aejxGIuahmuhK1W1a9LwRdmSPneaK9tKTNTBc3XcZpYYmuE7ms 7sNlezQfOZJDUhoGw4cni1st9bmM3umJoKUvfMahUzpMc4euP22ZMaG4hKc9KucskCkE bK1g== 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=z0C2Ccgn1+nWirVWe1n9wdaEF6tguYqzOdi827OGsRU=; b=oeOgqPOSJ6/1rNDUDIZ5bnIg+QwONLKHebii+rmzCtsF0i88I0XeJALFHXrFmZ0AGk 3hJbzGBwk81tmXcNxXphKkwsQ3qTLGoK4S3IVv5ek53dUhATPq0oiYkGYTrHnS/3Z469 dfrKK89rgxm9XVyt8+4MXbcHnB/gX/aNR/baNdx3N/jdIcLJxTjXyMENOwcC4E5TjiVa uL7X7TL+wpfGMigWu4doDll1KrYSoGWr18rZTFSHc21kBQLGTBEQVISV5gHbIKnwY3YL 6CCsoozfcJGcZnig3JmF+skDmlY0tJiDXgaGsgr6tASOM4H6vW3J792xT1zGPUarTgNz NuNw== 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 f23si48932148pgv.431.2019.01.09.23.57.33; Wed, 09 Jan 2019 23:57:48 -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 S1727638AbfAJHyx (ORCPT + 99 others); Thu, 10 Jan 2019 02:54:53 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:48518 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfAJHyu (ORCPT ); Thu, 10 Jan 2019 02:54:50 -0500 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990945AbfAJHysH0baQ (ORCPT + 2 others); Thu, 10 Jan 2019 08:54:48 +0100 Date: Thu, 10 Jan 2019 08:54:44 +0100 From: Ladislav Michl To: Vincent Guittot Cc: "Rafael J. Wysocki" , Tony Lindgren , "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , Linux OMAP Mailing List Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers Message-ID: <20190110075444.GA26920@lenoch> References: <20190109133337.GA13579@lenoch> <20190109160736.GA7416@lenoch> <20190109172623.GB1711@lenoch> <20190110074558.GA26167@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 08:50:14AM +0100, Vincent Guittot wrote: > On Thu, 10 Jan 2019 at 08:46, Ladislav Michl wrote: > > > > On Wed, Jan 09, 2019 at 11:06:34PM +0100, Rafael J. Wysocki wrote: > > > On Wed, Jan 9, 2019 at 7:05 PM Vincent Guittot > > > wrote: > > > > > > > > On Wed, 9 Jan 2019 at 18:26, Ladislav Michl wrote: > > > > > > > > > > On Wed, Jan 09, 2019 at 05:32:31PM +0100, Vincent Guittot wrote: > > > > > > On Wed, 9 Jan 2019 at 17:07, Ladislav Michl wrote: > > > > > > > > > > > > > > On Wed, Jan 09, 2019 at 03:12:25PM +0100, Vincent Guittot wrote: > > > > > > > > Please keep all thread list when replying :-) > > > > > > > > > > > > > > Ahh, sorry for that... > > > > > > > [snip] > > > > > > > > On Wed, 9 Jan 2019 at 14:33, Ladislav Michl wrote: > > > > > > > > > I agree, but it doea all the magic correctly, so you won't need > > > > > > > > > to touch that code is ktime_t changes (I know, unlikely..) > > > > > > > > > > > > > > > > But the current implementation doesn't care of any changes in ktime_t > > > > > > > > as it uses raw ns > > > > > > > > > > > > > > Fair enough, so let's go back to: > > > > > > > > > > > > This one looks good for me > > > > > > > > > > Lets split is for 'comments fix' patch, which was just send and 'the rest'. > > > > > Now, 'the rest' can either be v2 of your "PM/runtime: Fix autosuspend_delay on > > > > > 32bits arch" or will wait for 5.1. You decide :) > > > > > > > > I don't really mind. > > > > > > > > Rafael, > > > > Do you prefer to only take the fix for u64 casting problem or do you > > > > prefer to also take the optimization below in one single patch ? > > > > > > The casting problem is a bug and the optimization is next release > > > material in my view. Please send the optimization separately. > > > > Ok, will send that separately in a few moments... > > Btw, u64 casting problem seems to be still present in rpm_suspend while > > computing slack for autosuspend delay greater than 25% of 2^31 (2^33) ns. > > Good point. I will add it to the fix as well Another nit then, for (u64)(autosuspend_delay) is (u64)autosuspend_delay enough :) I'll wait for your v2 before sending optimization patch. > > Not sure if that triggers any real bug.