Received: by 10.223.164.202 with SMTP id h10csp830966wrb; Mon, 6 Nov 2017 16:54:08 -0800 (PST) X-Google-Smtp-Source: ABhQp+Qt6TbZ5+jYXHgRopUelpOnfe/l0vy2bPOEKgQ8hO4E04KHjU+DYZRdcEMcXLbvEf/+KcXx X-Received: by 10.99.154.65 with SMTP id e1mr16618176pgo.18.1510016048223; Mon, 06 Nov 2017 16:54:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510016048; cv=none; d=google.com; s=arc-20160816; b=pw9k7l8Tet8/SlQWYe7EUui+gnuI6Mpx5k0m+E/xZ3AG06yy+HgWjtLUwP+NWdnz8k xTqENULbBCY9KsjCpdbnRvws6CNUGFGTszKeMaenl5osSosEBmVIrk2+tlRwdBR/j0oW Bfe9MXjNf8oe7sSWyB5s+cMefuqMFhE5ori9UZXqFGkYjUZnpadzfSh28+8fblzOum5B 8zlBhCR8gBXn8YyV3E/mybKMt6uFCJSByVY1CmOt4st1SgQj+art8LBhXiP+yH4UwTYg h5HRK2VRYUe/1ZIpQhkWa3Eyf+0coaWz6Cha0JtlXWpthm5E4iRmj3wu8t8LviAiElo8 NwLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=YfoBZXMmwPl/mCF/9cHaKNgiHrZli5uAEHQMbsT047o=; b=p2WtDNz/Xov1T+JR7zSbaPXjqb5O9ToxVKGIHg65aK6xeh392lSpzEWjv3/cFJiYsX v5z/Qlsscfr1h20LHIspTauifsDRcU1+w+/ziC/9B8lmIybItNqdl9mBpdm+/FhjL2EX TmRKYXH0kILGSOBQ05MmlsCuw7RtvA1uIDsHznE7Fws1e6QN3lIosS47KtUgJ5heC7ua MiRjOb3kqFAvlT9lbqsJneLledSmm5zD8/obycNXWRNicwvZkZYfA9fmwtkI46QJ52uo N8kET/D/8Wj9/8TnTY50PQaIZHBi55f1Kkj/wIcCns6rQKrdaOjhZK6nLRhEZKHyhpTh CHKA== 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 s12si504plj.341.2017.11.06.16.53.54; Mon, 06 Nov 2017 16:54: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 S934742AbdKGAv2 (ORCPT + 94 others); Mon, 6 Nov 2017 19:51:28 -0500 Received: from mga07.intel.com ([134.134.136.100]:54243 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932702AbdKGAv0 (ORCPT ); Mon, 6 Nov 2017 19:51:26 -0500 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 06 Nov 2017 16:51:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,355,1505804400"; d="scan'208";a="146689165" Received: from rjwysock-mobl1.ger.corp.intel.com (HELO [10.252.49.3]) ([10.252.49.3]) by orsmga004.jf.intel.com with ESMTP; 06 Nov 2017 16:51:24 -0800 Subject: Re: [PATCH 4.13 10/36] PM / QoS: Fix default runtime_pm device resume latency To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Tero Kristo References: <20171106085047.005824077@linuxfoundation.org> <20171106085047.474486973@linuxfoundation.org> From: "Rafael J. Wysocki" Organization: Intel Technology Poland Sp. z o. o., KRS 101882, ul. Slowackiego 173, 80-298 Gdansk Message-ID: <868c0cd2-fd9d-7efc-5dc2-64d7d5cfc5f1@intel.com> Date: Tue, 7 Nov 2017 01:51:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171106085047.474486973@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/2017 10:12 AM, Greg Kroah-Hartman wrote: > 4.13-stable review patch. If anyone has any objections, please let me know. Please drop this from the -stable queue, it has been reverted from the mainline. Thanks, Rafael > ------------------ > > From: Tero Kristo > > commit 2a9a86d5c81389cd9afe6a4fea42c585733cd705 upstream. > > The recent change to the PM QoS framework to introduce a proper > no constraint value overlooked to handle the devices which don't > implement PM QoS OPS. Runtime PM is one of the more severely > impacted subsystems, failing every attempt to runtime suspend > a device. This leads into some nasty second level issues like > probe failures and increased power consumption among other > things. > > Fix this by adding a proper return value for devices that don't > implement PM QoS. > > Fixes: 0cc2b4e5a020 (PM / QoS: Fix device resume latency PM QoS) > Signed-off-by: Tero Kristo > Signed-off-by: Rafael J. Wysocki > Signed-off-by: Greg Kroah-Hartman > > --- > include/linux/pm_qos.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > --- a/include/linux/pm_qos.h > +++ b/include/linux/pm_qos.h > @@ -175,7 +175,8 @@ static inline s32 dev_pm_qos_requested_f > static inline s32 dev_pm_qos_raw_read_value(struct device *dev) > { > return IS_ERR_OR_NULL(dev->power.qos) ? > - 0 : pm_qos_read_value(&dev->power.qos->resume_latency); > + PM_QOS_RESUME_LATENCY_NO_CONSTRAINT : > + pm_qos_read_value(&dev->power.qos->resume_latency); > } > #else > static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, > > From 1583307483250134635@xxx Mon Nov 06 09:14:41 +0000 2017 X-GM-THRID: 1583307483250134635 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread