Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2151313pxa; Mon, 24 Aug 2020 06:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrvACXPVq+JF7Ufp6U2pRehCuk46RjKoUzLTA8kPJXgv5UoYJEstPsca/7g8YF0iBlhd5T X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr5411682ejb.382.1598276493332; Mon, 24 Aug 2020 06:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598276493; cv=none; d=google.com; s=arc-20160816; b=WPKycSBTDCAcRKBDJoBssS8DOXh0O9ikU/w7beIGyFmoX0qFlEOIdc04BLv8F9iS3G 6t4ND6vC5tO/ZWagr37qBKTn5ZhphLT9zI4OonpH6C1Hnu60gMT7pl4tuWUmxJgJXHPW rXLnT7KoB9O0lUT7dSmn7p+xdzf0Ja/Y2tDIqAgbvlnr0jPumBt7+iVwL4V8g044PeT2 cGMxyK+ni1Qfko9KZwFJu9Q2Qkg9pOJKfiG69n856w0cOxk1U5KJBASb2UB71RIxWmC3 ygzkyew9Bbk8zFPkkFEq1OnyBgfiZP6f4NxBrHAC+jhbJ18fjQp2hl/o+m3QJhIlwomG Q3Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NfRR1kXaHMd2srmpKb6mFh4xY+RaCVa0rgR+lGoOsGs=; b=wce32Nz2qrJ7LRzQU9idUcWuUrmGXl0Y3LQMydbzyu6tI/eJX6m4RU8lAKTQCGyyNx Jpejq8z0ZD3UUVxV9CXpWU8sz98MiF0VyMwoRmih0P8ZCHu7zXfGHvI+AvTZzhpN6OGC ySueD9in20tckqd2PhJes+RxY1eGs1I3sVF55xF+1rbig364O+arjQVw65p6mr05aH47 1/E5z7hc7OHmaVf/cSH+99M+DR30MyOYpLzNDzzCFoooE/dk9BbO/k9tON1z4wDFZT/c CMf+mMMx6mzCEqM/K5SDrQETukk8nGUMpIoIIIM6ndKXhxWCeOx2Ubcu0QJzh4BWuP2y yYwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v25si2428066edy.530.2020.08.24.06.41.09; Mon, 24 Aug 2020 06:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbgHXNkP (ORCPT + 99 others); Mon, 24 Aug 2020 09:40:15 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:41294 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727869AbgHXNil (ORCPT ); Mon, 24 Aug 2020 09:38:41 -0400 Received: from 89-64-88-199.dynamic.chello.pl (89.64.88.199) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.459) id 650310ffad508e13; Mon, 24 Aug 2020 15:38:39 +0200 From: "Rafael J. Wysocki" To: Mika Westerberg Cc: Alan Stern , Linux PM , LKML , Linux ACPI , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH] PM: sleep: core: Fix the handling of pending runtime resume requests Date: Mon, 24 Aug 2020 15:38:39 +0200 Message-ID: <2486532.D7zGhtygOF@kreacher> In-Reply-To: <20200824083452.GX1375436@lahna.fi.intel.com> References: <7969920.MVx1BpXlEM@kreacher> <20200821193442.GA264863@rowland.harvard.edu> <20200824083452.GX1375436@lahna.fi.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, August 24, 2020 10:34:52 AM CEST Mika Westerberg wrote: > Hi, > > On Fri, Aug 21, 2020 at 03:34:42PM -0400, Alan Stern wrote: > > This means that the code could be simplified to just: > > > > pm_runtime_barrier(dev); > > > > Will this fix the reported bug? It seems likely to me that the actual > > problem with the failure scenario in the patch description was that > > turning on an ACPI power resource causes runtime-resume requests to be > > queued for all devices sharing that resource. Wouldn't it make more > > sense to resume only the device that requested it and leave the others > > in runtime suspend? > > The problem with at least PCIe devices that share ACPI power resources > is that once you turn on the power resource all the devices that shared > it will go into D0uninitialized power state and that means they lose all > wake configuration etc. so they need to be re-initialized by their > driver before they can go back to D3(cold) in order for their wakes to > still work. Plus devices in D0uninitialized may prevent the SoC from allowing package C-states to be used for the processor AFAICS. BTW, does the patch make the issue at hand go away?