Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3515484imm; Fri, 25 May 2018 07:03:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZps6TlZ0bxk+VKdIyBdgtMAbTTbeCppwzHpP/KUE6pNn06tKyIByNKhBbrzHkr3ePHNp9HP X-Received: by 2002:a65:5308:: with SMTP id m8-v6mr2200174pgq.42.1527257038798; Fri, 25 May 2018 07:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527257038; cv=none; d=google.com; s=arc-20160816; b=wBhYiIk5l3HwE0VOFNfI1GlQwTWqhiRKrdAHOqWTdC09tcRjQIijEGN4Wavr25V2MR 26wO59qWHZS8BD1yRUgYZsYaY6XCSYqgswAaSZzezbUd5AzKOXjf28wxTFvAZmTSBOvX 0JbO2Pc9PGMIr3CJeWAAtbz6juRTumX4M0PJm8gs+OPob5MJ7AoIKjUKmN70+Dup6khE 976ICC/SkNOHzdkbuDGWXEgLlKUH0Dfa1m0a6sIkyEczosb8up88iNCrGF/Nst9zDny6 DB1yc3TiMRT/AJg29Dxj9PsGMVH0/V/RfIUOcVMf1isWqr+W+AEep2qvxmYjegzqza1R fWOA== 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:dkim-signature:arc-authentication-results; bh=dYKrGFWI8G+efDdDzH3lbIKB7WNQky22+6/ZH8aJEoo=; b=EhPloVC7QJHbMs+3T81cTr6BuXEzTSZhL7z3H7SaMXyoSizboC6H37h8o5PgXrozRh ivibEEjTl/X4TrNNe8AKNvzc9dwsR9Nw1dl2hdActx7StsEd5zFBHcP6Dw2wF0LZnS+e GDMJf5wEpNqqigFjGxarjdJ2hEr11D4VW5Jlh8Rh3wD7gT9IimEAwOAK23qIcf/o0pkl ozWe1StRSE+BkWwz8h18zk+Q7Dc+MU67jGfDvBgpE7yEfoCNvYZoftgpohHgcM7dAWTu m0qLubg7vKMN2+V/gdQhZJxt7+cDCqxnO3gOg0qJtY7RxvO1Ern+GQrCz3Q/PvhYLmhF GA8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nygwdnW7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t127-v6si18237092pgc.519.2018.05.25.07.03.41; Fri, 25 May 2018 07:03:58 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=nygwdnW7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936100AbeEYOC1 (ORCPT + 99 others); Fri, 25 May 2018 10:02:27 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:37682 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934496AbeEYOCW (ORCPT ); Fri, 25 May 2018 10:02:22 -0400 Received: by mail-wr0-f193.google.com with SMTP id i12-v6so9464436wrc.4; Fri, 25 May 2018 07:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dYKrGFWI8G+efDdDzH3lbIKB7WNQky22+6/ZH8aJEoo=; b=nygwdnW72AXrfKuOdn6K6lwiICXlGXKniKNVa2i/v+EBIHWKAzuXO/BYciF3MbEZHA 8QHiJ3m9HNIVAUtUhh/btsh+vz7oku0Jg5mKJdlssEg9lVrD3ZomwAvzB/tss3oTVVLs 6sq0vXAedOkpn2iw6jNZVVowkph96Of9WsSpUYg1MAQIPlgVnzOtRBtRi/s/HA0fPI+z qTTCOiufJ76bN+KATOG1BSG4Um7RWKbv6qJ6wdBIbdORzDYtuy/R33V14v2CjXvZyHZ6 TzhH0emm3wQJ8sHCSdhtJ58FXKBGEh9imZdw6kXlluhlT4inB2Xker8qIDifv1pWMILQ VYLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=dYKrGFWI8G+efDdDzH3lbIKB7WNQky22+6/ZH8aJEoo=; b=kJ7JW8Jaag5wcmx5FoRfkwRtDEXYSTq26qQQ5oJHRTyZtGBn4quVTdNcldJm7bcQGf zFlcfk6vuqA9dwmcmhETvxOcrO62E5oOLXtBxjJF1MGUq7XJKGmzevENdt9fCBpSgv8t FGtDSF8KGPasNR368XmpgjVawfG2tZmlwZmWWK1doCf5L/yezfbpXAPvKAp/dLF3AE8d FCAxsvKTKS+0mzmf11vctXqonjuKIIF0hfYWkEgN/ALs7vad+hbfY8ATu2KuM9hbPnxL HqaqXJA6Lq1yUNH42jvJwOe1jMkQk9XeYlIprE/lfPabuxtmohxEyQ4gMmh0Ne+7w6mT Dopg== X-Gm-Message-State: ALKqPwdg+cvgrQQL81dTupX71Ds3QBdbrEAE9coAyQrhnACXaohyV4dL FEt/Nul5bqgnmxG+ssAG8ok= X-Received: by 2002:a19:9dca:: with SMTP id g193-v6mr1621486lfe.65.1527256941026; Fri, 25 May 2018 07:02:21 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id h24-v6sm4010155lfc.9.2018.05.25.07.02.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 07:02:20 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fMDIL-0007kA-2T; Fri, 25 May 2018 16:02:13 +0200 Date: Fri, 25 May 2018 16:02:13 +0200 From: Johan Hovold To: Tony Lindgren Cc: Johan Hovold , Sebastian Reichel , "H. Nikolaus Schaller" , Andreas Kemnade , Mark Rutland , Arnd Bergmann , Pavel Machek , "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Greg Kroah-Hartman , Rob Herring , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-pm@vger.kernel.org, Andy Shevchenko Subject: Re: OMAP serial runtime PM and autosuspend (was: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding)) Message-ID: <20180525140213.GI30172@localhost> References: <20180508155405.GX98604@atomide.com> <20180508164904.GZ98604@atomide.com> <20180509131003.GC2285@localhost> <20180509135706.GB98604@atomide.com> <20180517100948.GI30172@localhost> <20180517171038.GL98604@atomide.com> <20180521134830.GR30172@localhost> <20180521154832.GY98604@atomide.com> <20180524091742.GZ30172@localhost> <20180524133237.GA98604@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524133237.GA98604@atomide.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 06:32:37AM -0700, Tony Lindgren wrote: > * Johan Hovold [180524 09:20]: > > On Mon, May 21, 2018 at 08:48:32AM -0700, Tony Lindgren wrote: > > > Well if you have some better mechanism in mind let's try it out. Short of > > > sprinkling pm_runtime_force_suspend/resume calls all over, I'm out of ideas > > > right now. > > > > Yeah, that would be too much of a hack and likely wouldn't work either > > (and we really should do away with those _force calls altogether). > > > > I've been thinking a bit too much about this already, but it may be > > possible to use the pm QoS framework for this. A resume latency can be > > set through sysfs where "n/a" is defined to mean "no latency accepted" > > (i.e. controller remains always-on while port is open) and "0" means > > "any latency accepted" (i.e. omap aggressive serial RPM is allowed). > > Oh yeah, PM QoS might work here! Actually, after reading a recent QoS related bug report, I realised that a resume latency request of "n/a" is actually a third way of disabling runtime PM, which similarly to the negative autosuspend would prevent also a closed port from suspending. Using a small positive resume latency for this feels like too much of a hack, but defining a new QoS flag might still work. Johan