Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1636618imu; Wed, 9 Jan 2019 23:51:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CHsxe+CI2eQXlBrQtM+L9sZKz8WiB2EeKU2dj+5B8FJlr0VErHO1E3krmU+1JVfDqYdwk X-Received: by 2002:a17:902:e18d:: with SMTP id cd13mr9373818plb.262.1547106709749; Wed, 09 Jan 2019 23:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547106709; cv=none; d=google.com; s=arc-20160816; b=iQ/+/3qqKR5jfNsKr5blR5uuv0ZwT4Xum37XhpCHbBw4g1jO8q99N+UMX2M2dNVnk/ GiDIId2BviU/RUBuwYw1lkHJkItKLtQyehmtYCQS2pLXmeLHJvaMosONGTIrSS0oy7/j LEuRsBzDOhNYmQ4yvlCNaM2qvBII61F/OTfBYENNppqURPh4SxpXSlgOxy+cJ51B5HV/ AYel1j5cK9PigbnezjGT2JPqcmzPzhXZuFECZXsUL25IfT48zK50V/Dph9DUeNgJVtEC R+oJ6HsGVtdHLFnOm6Mi2GdLLniyj8P7/uX727gX/q2bKgzY73sHBnoJbjGCph1GZOKV zfIQ== 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=INsuntaXfrMFs/lZatoLWmlxRSavmXUczoK2TVglobY=; b=y8hBH/bRKzvhWbKjSVNBbYlj+1nuO3n/oyHm8L/tAlW2xjh8uUdJIcL+tcu5TaKksI ImdiomP2FHxdWVeDigX8duh3QDRw7AY1wg9QlvBIFl5FEtGw0cWmfByIr69f3mOYluTf aOS0hxlXOgUxV2XzGj8D+kLZPf9n87c3qAo2rTyA5e5iQhZW5qbo6IC2lRC3A09jOYHD sNQH9nk9vQAGc5CGzS5+FB/aHI+MDtdBjA6XrbTbOomChQYnvfSsdJg8xUsff9fCffSt PpTmE0GHl3Gm9gsuwHpApKFdYrrd8GjYPhceBKTeW7D2zf0+MOVD64MaCW8os9i+44lC n1Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E7OrjCFE; 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 k5si22279788pfj.153.2019.01.09.23.51.33; Wed, 09 Jan 2019 23:51:49 -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=E7OrjCFE; 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 S1727438AbfAJHu1 (ORCPT + 99 others); Thu, 10 Jan 2019 02:50:27 -0500 Received: from mail-it1-f174.google.com ([209.85.166.174]:53055 "EHLO mail-it1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbfAJHu1 (ORCPT ); Thu, 10 Jan 2019 02:50:27 -0500 Received: by mail-it1-f174.google.com with SMTP id g76so15956197itg.2 for ; Wed, 09 Jan 2019 23:50:26 -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=INsuntaXfrMFs/lZatoLWmlxRSavmXUczoK2TVglobY=; b=E7OrjCFEJq8T8axZB71vgTBwGx0iXgPBDIbVSDnOEicYpGCoHnRxB2GkQlHfgmAgTf Bf3SME3JPZiSPVMtnzCHUCFFuBYDep6oVLjBfFEnLcTQPKG0JUlqc66nyleBmkoeHfBF h9GztOacO/FKr35cLTQyEZwv0zbGafTDRnjJo= 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=INsuntaXfrMFs/lZatoLWmlxRSavmXUczoK2TVglobY=; b=GKqh9sS6Rf+tr8BJOrQP9rmKC5vYa/TFEDRghozyMw0E0WUfMOnkP6zsueUuU2MBiM LX0H2V1MpuCHlMCyGWEo2pSUIztTaMXhstc+BbDRZkrOw/M8/L5pI2/KX60LZ4+oITj3 wXZSoANNRwAts7lNt5EWFnMycMGztZTxHGZ2VOQeSV12NE2Vp6YSnvdlFLNIfSCYeQM6 +2RllXdreQgxMidN+PKtNoJDmMdZSNGe6EG/NVyfEg0j/+YmrrsVyfykSM8qxlhgt6uN f71pnZyLdLNo67U0MrYh5vJ8lqgETwKs/sSMHGbBD2SMH4Q8+aQX8je5AnA6+PUW8Beg 61bg== X-Gm-Message-State: AJcUukfeacCkdPXovDXgxKESofHevK3012HSgCvNW4VLlJMGQ2aYMdeW 2Xr+MpUwuIoQkWq+mTfLuytKGA/vdE8qwcv+9IuxOA== X-Received: by 2002:a24:a20e:: with SMTP id j14mr6582694itf.14.1547106625983; Wed, 09 Jan 2019 23:50:25 -0800 (PST) MIME-Version: 1.0 References: <20190109115824.GA1353@lenoch> <20190109133337.GA13579@lenoch> <20190109160736.GA7416@lenoch> <20190109172623.GB1711@lenoch> <20190110074558.GA26167@lenoch> In-Reply-To: <20190110074558.GA26167@lenoch> From: Vincent Guittot Date: Thu, 10 Jan 2019 08:50:14 +0100 Message-ID: Subject: Re: Regression in v5.0-rc1 with autosuspend hrtimers To: Ladislav Michl Cc: "Rafael J. Wysocki" , Tony Lindgren , "Rafael J. Wysocki" , Ulf Hansson , "open list:THERMAL" , linux-kernel , LAK , Linux OMAP Mailing List 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 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 > Not sure if that triggers any real bug.